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

Class: XMLDB

Source Location: /lodel/scripts/xmldbfunc.php

Class XMLDB

Class Overview

Classe XMLDB

Located in /lodel/scripts/xmldbfunc.php [line 57]



		
				Author(s):
		
  • Jean Lamy
  • Ghislain Picard
Information Tags:
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
Since:  Classe ajoutée depuis la version 0.8

Properties

Methods

[ Top ]
Descendants
Child Class Description
XMLDB_Translations Classe de gestion des traductions.

[ Top ]
Property Summary
array   $currentrecord   Enregistrement courant
array   $data   ?
string   $documentroot   Element racine
string   $header   L'en-tête
array   $joinfieldvaluestack   Pile des champs de jointures
array   $rows   ?
?   $state   Etat du parser ?
array   $tables   Les tables à inclure et les informations sur les relations, elements, tags
array   $tablestack   Pile des tables (pour le parser XML)
string   $tp   Préfix des tables

[ Top ]
Method Summary
XMLDB   XMLDB()   Constructeur
void   addAttr()   Add attribut First argument is the tablename Others arguments are elements. If argument is an array, it contains the field and the element name.
void   addElement()   Add Element First argument is the tablename Others arguments are elements. If argument is an array, it contains the field and the element name.
void   addHeader()   Définition d'un header XML
void   addJoin()   Ajoute une jointure entre une table parent et une table enfant
void   addTable()   Ajout d'une table
void   addWhere()   Ajoute une condition where sur une table
void   characterData()   ??
void   endElement()  
void   exporttable()   Exportation d'une table dans le fichier XML
void   insertRow()   Insertion d'une ligne
void   readFromFile()   Lecture d'un fichier XML (depuis un fichier)
void   readFromString()   Lecture d'un fichier XML (depuis une chaîne)
void   saveToFile()   Ecrire le XML dans un fichier
string   saveToString()   Ecrire le XML dans une chaine de caractère
void   setRowtag()   Définit un tag pour une ligne
void   startElement()  
void   _endrecord()  
void   _endrow()  
void   _endtable()  
void   _initparser()   Initialisation du parser XML
void   _newrecord()  
void   _newtable()  
void   _write()   Ecriture d'une chaine dans le fichier XML

[ Top ]
Properties
array   $currentrecord [line 101]

Enregistrement courant

API Tags:
Access:  private


[ Top ]
array   $data [line 113]

?

API Tags:
Access:  private


[ Top ]
string   $documentroot [line 77]

Element racine

API Tags:
Access:  private


[ Top ]
string   $header [line 83]

L'en-tête

API Tags:
Access:  private


[ Top ]
array   $joinfieldvaluestack [line 119]

Pile des champs de jointures

API Tags:
Access:  private


[ Top ]
array   $rows [line 107]

?

API Tags:
Access:  private


[ Top ]
?   $state [line 89]

Etat du parser ?

API Tags:
Access:  private


[ Top ]
array   $tables [line 71]

Les tables à inclure et les informations sur les relations, elements, tags

API Tags:
Access:  private


[ Top ]
array   $tablestack [line 95]

Pile des tables (pour le parser XML)

API Tags:
Access:  private


[ Top ]
string   $tp [line 66]

Préfix des tables

API Tags:
Access:  private


[ Top ]
Methods
Constructor XMLDB  [line 129]

  XMLDB XMLDB( [string $documentroot = ''], [string $tableprefix = '']  )

Constructeur

Parameters:
string   $documentroot:  l'élement racine
string   $tableprefix:  le prefix des tables


[ Top ]
addAttr  [line 195]

  void addAttr( )

Add attribut First argument is the tablename Others arguments are elements. If argument is an array, it contains the field and the element name.

If argument is a string, both element and field have the same name



[ Top ]
addElement  [line 174]

  void addElement( )

Add Element First argument is the tablename Others arguments are elements. If argument is an array, it contains the field and the element name.

If argument is a string, both element and field have the same name



[ Top ]
addHeader  [line 228]

  void addHeader( string $xml  )

Définition d'un header XML

Parameters:
string   $xml:  le header XML


[ Top ]
addJoin  [line 217]

  void addJoin( string $tableparent, string $parentfield, string $tablechild, string $childfield  )

Ajoute une jointure entre une table parent et une table enfant

Parameters:
string   $tableparent:  nom de la table parente
string   $parentfield:  nom du champ parent
string   $tablechild:  nom de la table enfant
string   $childfield:  nom du champ enfant


[ Top ]
addTable  [line 138]

  void addTable( )

Ajout d'une table



[ Top ]
addWhere  [line 159]

  void addWhere( )

Ajoute une condition where sur une table



[ Top ]
characterData  [line 629]

  void characterData( object $parser, string $data  )

??

Parameters:
object   $parser: 
string   $data: 


[ Top ]
endElement  [line 510]

  void endElement( $parser, $name  )

Parameters:
   $parser: 
   $name: 


[ Top ]
exporttable  [line 279]

  void exporttable( string $table, string $info, [string $joinfieldvalue = ""]  )

Exportation d'une table dans le fichier XML

Parameters:
string   $table:  le nom de la table
string   $info: 
string   $joinfieldvalue: 


[ Top ]
insertRow  [line 428]

  void insertRow( $currentable, array $rows, string $currenttable  )

Insertion d'une ligne

Cette fonction est abstraite. Elle doit être définie dans une classe dérivée.

Parameters:
string   $currenttable:  la table courante
array   $rows:  les données à insérer
   $currentable: 


Redefined in descendants as:

[ Top ]
readFromFile  [line 387]

  void readFromFile( string $filename  )

Lecture d'un fichier XML (depuis un fichier)

Parameters:
string   $filename:  le fichier contenant le XML


[ Top ]
readFromString  [line 371]

  void readFromString( string $xml  )

Lecture d'un fichier XML (depuis une chaîne)

Parameters:
string   $xml:  la chaîne contenant le XML


[ Top ]
saveToFile  [line 244]

  void saveToFile( string $filename  )

Ecrire le XML dans un fichier

Write the XML into a file

Parameters:
string   $filename:  le nom du fichier XML


[ Top ]
saveToString  [line 257]

  string saveToString( )

Ecrire le XML dans une chaine de caractère


API Tags:
Return:  le XML


[ Top ]
setRowtag  [line 151]

  void setRowtag( string $table, string $rowtag  )

Définit un tag pour une ligne

Parameters:
string   $table:  le nom de la table
string   $rowtag:  ??


[ Top ]
startElement  [line 438]

  void startElement( $parser, $name, $attrs  )

Parameters:
   $parser: 
   $name: 
   $attrs: 

API Tags:
Internal:  XML Parser handler


[ Top ]
_endrecord  [line 592]

  void _endrecord( string $name  )

Parameters:
string   $name:  fin de l'enregistrement

API Tags:
Access:  private


[ Top ]
_endrow  [line 600]

  void _endrow( )


API Tags:
Access:  private


[ Top ]
_endtable  [line 619]

  void _endtable( )


API Tags:
Access:  private


[ Top ]
_initparser  [line 406]

  void _initparser( )

Initialisation du parser XML


API Tags:
Access:  private


[ Top ]
_newrecord  [line 582]

  void _newrecord( string $name  )

Parameters:
string   $name:  nom du nouvel enregistrement

API Tags:
Access:  private


[ Top ]
_newtable  [line 608]

  void _newtable( $table  )

Parameters:
   $table: 

API Tags:
Access:  private


[ Top ]
_write  [line 357]

  void _write( string $string  )

Ecriture d'une chaine dans le fichier XML

generic output function

Parameters:
string   $string:  la chaîne à écrire

API Tags:
Access:  private


[ Top ]

Documentation generated on Wed, 29 Aug 2007 14:30:06 +0200 by phpDocumentor 1.4.0a2