Procedural File: loops.php
Source Location: /lodel/scripts/loops.php
Page Details
Boucles Lodelscript prédéfinies PHP versions 4 et 5, 5
LODEL - Logiciel d'Edition ELectronique. Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot Home page: http://www.lodel.org E-Mail: lodel@lodel.org All Rights Reserved This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
| Author: | Jean Lamy |
| Author: | Ghislain Picard |
| Version: | CVS:$Id: |
| Copyright: | 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou |
| Copyright: | 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse |
| Copyright: | 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot |
| Filesource: | Source Code for this file |
Includes
require_once
("loops_local.php")
[line 46]
Boucles Lodelscript prédéfinies PHP versions 4 et 5, 5
LODEL - Logiciel d'Edition ELectronique. Copyright (c) 2001-2002, Ghislain Picard, Marin Dacos Copyright (c) 2003, Ghislain Picard, Marin Dacos, Luc Santeramo, Nicolas Nutten, Anne Gentil-Beccot Copyright (c) 2004, Ghislain Picard, Marin Dacos, Luc Santeramo, Anne Gentil-Beccot, Bruno Cénou Copyright (c) 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou Copyright (c) 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse Copyright (c) 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot Home page: http://www.lodel.org E-Mail: lodel@lodel.org All Rights Reserved This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. API Tags:
Information Tags:
| Author: | Jean Lamy |
| Author: | Ghislain Picard |
| Version: | CVS:$Id: |
| Copyright: | 2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou |
| Copyright: | 2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse |
| Copyright: | 2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot |
Functions
childCanBeInThisType [line 674]
void childCanBeInThisType(
integer $type, integer $id
)
|
|
Test si un type $type peut être appliqué à une entité $id suivant le type de ses enfants.
Cette fonction est utilisée dans loop_compatible type
Parameters:
|
integer |
$type: |
l'identifiant du type |
|
integer |
$id: |
l'identifiant de l'entité |
loop_compatible_types [line 628]
void loop_compatible_types(
&$context, string $funcname, array $arguments, array $context
)
|
|
Liste les types compatibles pour une entité. Cette boucle permet de construire la liste de modification du type d'une entité.
Elle vérifie les types que peut contenir le type parent (si on est pas à la racine). Si l'entité contient des enfants, elle vérifie aussi que les enfants peuvent contenir un type.
Parameters:
|
array |
$context: |
le contexte passé par référence |
|
string |
$funcname: |
le nom de la fonction loop |
|
array |
$arguments: |
les arguments éventuels |
|
|
&$context: |
|
void loop_errors(
&$context, $funcname, $arguments
)
|
|
loop_errors and loop_fielderror are used to show potential errors in the forms.
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_extract_images [line 131]
void loop_extract_images(
$context, $funcname, $arguments
)
|
|
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_fielderror [line 550]
void loop_fielderror(
&$context, $funcname, $arguments
)
|
|
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_field_selection_values [line 561]
void loop_field_selection_values(
&$context, $funcname, $arguments
)
|
|
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void loop_foreach(
&$context, $funcname, $arguments
)
|
|
Parcours un tableau passé en argument de la LOOP :
<LOOP NAME="foreach" ARRAY="[#MONARRAY]"> On considère que le tableau est passé par l'argument array
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void loop_mltext(
&$context, $funcname
)
|
|
function loop_mltext Display multilingual texts.
Parameters:
void loop_next(
$context, $funcname, $arguments
)
|
|
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_page_scale [line 348]
void loop_page_scale(
&$context, $funcname, $arguments
)
|
|
This loop walk on the array pages to print pages number and links
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_paragraphs [line 114]
void loop_paragraphs(
$context, $funcname, $arguments
)
|
|
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_parentsentities [line 54]
void loop_parentsentities(
&$context, string $funcname, [string $critere = ""], array $context
)
|
|
Loop parententities
Parameters:
|
array |
$context: |
the context containing all the data |
|
string |
$funcname: |
the name of the Lodelscript function to call |
|
string |
$critere: |
the criterions to select the entities |
|
|
&$context: |
|
void loop_previous(
$context, $funcname, $arguments
)
|
|
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
loop_rightonentity [line 510]
void loop_rightonentity(
&$context, $funcname, $arguments
)
|
|
loop which return the right to perform an action or not
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void loop_rss(
$context, $funcname, $arguments
)
|
|
Loop for reading RSS Flux using Magpie
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void loop_rssitem(
$context, $funcname, $arguments
)
|
|
Parameters:
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void loop_toc(
array $context, string $funcname, array $arguments
)
|
|
Loop displaying the table of contents (toc)
Parameters:
|
array |
$context: |
the context containing all the data |
|
string |
$funcname: |
the name of the Lodelscript function to call |
|
array |
$arguments: |
an array that can contain some arguments |
API Tags:
plageDeRecherche [line 445]
void plageDeRecherche(
$numPageCourante, $nbPagesTotal
)
|
|
Return an array with the first and last page taking into account the current
page and the total number of pages (from In-Extenso function)
Parameters:
|
|
$numPageCourante: |
|
|
|
$nbPagesTotal: |
|
void previousnext(
$dir, $context, $funcname, $arguments
)
|
|
Parameters:
|
|
$dir: |
|
|
|
$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
void sql_not_xor(
$a, $b
)
|
|
Parameters:
_constructPages [line 387]
void _constructPages(
&$context, $funcname, $arguments
)
|
|
Parameters:
|
|
&$context: |
|
|
|
$funcname: |
|
|
|
$arguments: |
|
Information Tags:
| Private: | construct page listing by given nbresults and currentoffset in the results |
|
|