sites_fonctions.php
Déclarations de fonctions pour le 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
Return values
Champ —Pile complétée par le code à générer