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

Procedural File: generate.php

Source Location: /lodel/install/generate.php

Page Details

Fichier utilitaire pour la génération des fichiers de DAO et de Logic

Ce fichier permet de regénérer les fichier du répertoire lodel/scripts/dao et ceux du répertoire lodel/scripts/logic. Les modifications ne sont pas perdus car seul les parties entre les blocs "// begin{publicfields} automatic generation //" et "// end{publicfields} automatic generation //" sont régénérés (pour les logiques).

Ce script est à lancer en ligne de commande

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:  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 ('generatefunc.php') [line 54]

Fichier utilitaire pour la génération des fichiers de DAO et de Logic

Ce fichier permet de regénérer les fichier du répertoire lodel/scripts/dao et ceux du répertoire lodel/scripts/logic. Les modifications ne sont pas perdus car seul les parties entre les blocs "// begin{publicfields} automatic generation //" et "// end{publicfields} automatic generation //" sont régénérés (pour les logiques).

Ce script est à lancer en ligne de commande

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.

API Tags:
Filesource:  Source Code for this file

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
[ Top ]


Functions
buildDAO  [line 169]

void buildDAO( )

Construction des fichiers de DAO.

Pour chaque table du fichier XML init-site.xml, un fichier contenant la classe VO et la classe DAO de la table est créé.



[ Top ]
buildLogic  [line 264]

void buildLogic( )

Construction des logics des classes

Pour chaque table du fichier XML init-site.xml, les fichiers de logic sont modifiés pour mettre à jour les fonctions _publicfields et _uniquefields



[ Top ]
endElement  [line 123]

void endElement( object $parser, string $name  )

Cette méthode est appélée quand le parser XML rencontre la fin de l'élément.

lorsque on détecte la fin d'un élément table alors on génère la DAO et la logic associée

Parameters:
object   $parser:  le parser XML
string   $name:  le nom de l'élement qui débute


[ Top ]
getnotice  [line 317]

void getnotice( string $table  )

Texte de la notice pour les fichiers DAO

Parameters:
string   $table:  le nom de la table


[ Top ]
startElement  [line 73]

void startElement( object $parser, string $name, array $attrs  )

Cette méthode est appélée quand le parser XML rencontre le début d'un élément.

Récupère la liste des champs, leurs propriétés pour tous les éléments table

Parameters:
object   $parser:  le parser XML
string   $name:  le nom de l'élement qui débute
array   $attrs:  les attributs de l'élément


[ Top ]


Documentation generated on Thu, 19 Jun 2008 05:07:45 +0200 by phpDocumentor 1.4.0a2