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

Class: XmlImportHandler

Source Location: /lodel/scripts/class.checkImportHandler.php

Class XmlImportHandler

Class Overview

This class define the handler used during the first part of an entity import :

the construction of a table containing all the field, the entries and the persons to check that the document was correctly parsed

Located in /lodel/scripts/class.checkImportHandler.php [line 53]



		
		
		
		

Properties

Methods

[ Top ]
Property Summary
mixed   $_contents  

[ Top ]
Method Summary
void   closeClass()  
void   contents()   the table content
void   openClass()   this function is used when an object like an entry is encountered during the XML parsing.
void   processCharacterStyles()   process the encountered character styles.
void   processData()   process the data
void   processEntryTypes()   process the differents entry fields of the entity, constructing the table and adding information on the entry.
void   processInternalStyles()   process the encountered internal styles.
void   processPersonTypes()   process the differents persons fields of the entity, constructing the table and adding information on the person.
void   processTableFields()   process the differents tablefieds of the entity, constructing the table and adding information on the field.
void   unknownCharacterStyle()   process when an unknow character style is encountered
void   unknownParagraphStyle()   process when an unknow paragraph style is encountered

[ Top ]
Properties
mixed   $_contents [line 56]

[ Top ]
Methods
closeClass  [line 110]

  void closeClass( $class, [ $multidoc = false]  )

Parameters:
   $class: 
   $multidoc: 


[ Top ]
contents  [line 57]

  void contents( )

the table content



[ Top ]
openClass  [line 105]

  void openClass( array $class, [object $obj = null]  )

this function is used when an object like an entry is encountered during the XML parsing.

Parameters:
array   $class:  an array with the name and the title of the class
object   $obj:  by default null, the object corresponding


[ Top ]
processCharacterStyles  [line 133]

  void processCharacterStyles( object $obj, string $data  )

process the encountered character styles.

Parameters:
object   $obj:  the corresponding to the character style
string   $data:  the data which use this character style


[ Top ]
processData  [line 66]

  void processData( string $data  )

process the data

Parameters:
string   $data:  the data encountered


[ Top ]
processEntryTypes  [line 95]

  void processEntryTypes( object $obj, string $data  )

process the differents entry fields of the entity, constructing the table and adding information on the entry.

Parameters:
object   $obj:  the corresponding entry object
string   $data:  the data of this field


[ Top ]
processInternalStyles  [line 142]

  void processInternalStyles( object $obj, string $data  )

process the encountered internal styles.

Parameters:
object   $obj:  the corresponding to the internal style
string   $data:  the data which use this internal style


[ Top ]
processPersonTypes  [line 124]

  void processPersonTypes( object $obj, string $data  )

process the differents persons fields of the entity, constructing the table and adding information on the person.

Parameters:
object   $obj:  the corresponding person object
string   $data:  the data of this field


[ Top ]
processTableFields  [line 77]

  void processTableFields( object $obj, string $data  )

process the differents tablefieds of the entity, constructing the table and adding information on the field.

Parameters:
object   $obj:  the corresponding field object
string   $data:  the data of this field


[ Top ]
unknownCharacterStyle  [line 165]

  void unknownCharacterStyle( string $style, string $data  )

process when an unknow character style is encountered

Parameters:
string   $style:  the name of the unknown style
string   $data:  the data contained in this style


[ Top ]
unknownParagraphStyle  [line 156]

  void unknownParagraphStyle( string $style, string $data  )

process when an unknow paragraph style is encountered

Parameters:
string   $style:  the name of the unknown style
string   $data:  the data contained in this style


[ Top ]

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