phpDocumentor lodel
[ class tree: lodel ] [ index: lodel ] [ all elements ]

Procedural File: entitiesfunc.php

Source Location: /lodel/scripts/entitiesfunc.php

Page Details

Fichier utilitaire pour les entités

PHP versions 4 et 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:  Sophie Malafosse
Author:  Ghislain Picard
Author:  Jean Lamy
Version:  CVS:$Id:
Copyright:  2005, Ghislain Picard, Marin Dacos, Luc Santeramo, Gautier Poupeau, Jean Lamy, Bruno Cénou
Copyright:  2007, Marin Dacos, Bruno Cénou, Sophie Malafosse, Pierre-Alain Mignot
Copyright:  2006, Marin Dacos, Luc Santeramo, Bruno Cénou, Jean Lamy, Mikaël Cixous, Sophie Malafosse
Filesource:  Source Code for this file
Functions
checkTypesCompatibility  [line 58]

la checkTypesCompatibility( integer $id, integer $idparent, [integer $idtype = 0]  )

Vérifie que le type de $id peut être associé au type du parent $idparent

Check that the type of $id can be in the type of $idparent. if $id=0 (creation of entites), use $idtype

Parameters:
integer   $id:  l'identifiant
integer   $idparent:  l'identifant du parent
integer   $idtype:  le type que l'on souhaite tester (utile si $id=0). Par défaut = 0

API Tags:
Return:  condition de compatibilité entre les deux types.


[ Top ]
cleanEntities  [line 115]

void cleanEntities( )

Suppression des entités à -64 dont la dernière modification remonte à + de 12 h. Cette fonction est appelée dans index.php (côté édition), lorsqu'il n'y a ni $do, ni $lo dans la requete (lorsque le controler n'est pas appelé).

Cette fonction appelle l'action delete de la logique des entités.


API Tags:
See:  class.entities.php


[ Top ]
isChild  [line 92]

boolean isChild( integer $idref, integer $idcurrent  )

Teste si l'entité pointée par $idcurrent n'est pas une descendante de $idref

Parameters:
integer   $idref:  Identifiant de l'entité de référence
integer   $idcurrent:  Identifiant de l'entité courante

API Tags:
Return:  false si $idcurrent est une descendante de $idref


[ Top ]


Documentation generated on Thu, 10 Jul 2008 05:07:28 +0200 by phpDocumentor 1.4.0a2