Documentation du code de SPIP et de ses plugins

Sites

Compilateur

Table of Contents

Functions

boucle_SITES_dist()  : string
Compile la boucle `SITES` qui retourne la liste des sites référencés
syndic_article_raw_data_to_array()  : array<string|int, mixed>
Decoder le champ raw_data d'un article syndique en tableau de donnees utilisable
balise_RAW_DATA_dist()  : Champ
Compile la balise `#RAW_DATA` retournant le champ `raw_data`

Functions

boucle_SITES_dist()

Compile la boucle `SITES` qui retourne la liste des sites référencés

boucle_SITES_dist(string $id_boucle, array<string|int, mixed> &$boucles) : string
Parameters
$id_boucle : string

Identifiant de la boucle

$boucles : array<string|int, mixed>

AST du squelette

Return values
string

Code PHP compilé de la boucle

syndic_article_raw_data_to_array()

Decoder le champ raw_data d'un article syndique en tableau de donnees utilisable

syndic_article_raw_data_to_array(string $methode_syndication, string $raw_data, string $raw_format) : array<string|int, mixed>
Parameters
$methode_syndication : string
$raw_data : string
$raw_format : string
Return values
array<string|int, mixed>

balise_RAW_DATA_dist()

Compile la balise `#RAW_DATA` retournant le champ `raw_data`

balise_RAW_DATA_dist(Champ $p) : Champ

Utile dans une boucle SYNDIC_ARTICLES pour retourner les donnees brutes de syndication.

Parameters
$p : Champ

Pile au niveau de la balise

Tags
balise
see
table_valeur()
example
#RAW_DATA* renvoie le champ raw_data brut, au format texte
#RAW_DATA renvoie le champ raw_data au format tableau structure si il a pu etre decode par la fonction fournie par la methode de syndication
#RAW_DATA{x} renvoie #RAW_DATA|table_valeur{x},
#RAW_DATA{a/b} renvoie #RAW_DATA|table_valeur{a/b}
Return values
Champ

Pile complétée par le code à générer


        
On this page

Search results