[SPIP] ~v3.0.20-->v3.0.25
[lhc/web/clavette_www.git] / www / ecrire / iterateur / condition.php
1 <?php
2
3 /***************************************************************************\
4 * SPIP, Systeme de publication pour l'internet *
5 * *
6 * Copyright (c) 2001-2016 *
7 * Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
8 * *
9 * Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
10 * Pour plus de details voir le fichier COPYING.txt ou l'aide en ligne. *
11 \***************************************************************************/
12
13
14 if (!defined('_ECRIRE_INC_VERSION')) return;
15
16 include_spip('iterateur/data');
17
18 //
19 // creer une boucle sur un iterateur CONDITION
20 // annonce au compilo les "champs" disponibles
21 //
22 function iterateur_CONDITION_dist($b) {
23 $b->iterateur = 'CONDITION'; # designe la classe d'iterateur
24 $b->show = array(
25 'field' => array()
26 );
27 return $b;
28 }
29
30
31 class IterateurCONDITION extends IterateurData {
32 protected function select($command) {
33 $this->tableau = array(0=>1);
34 }
35 }