User management for the world wide web

Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

GenieGate_XMLImport Class Reference

This class takes XML and imports it. More...

List of all members.

Public Member Functions

 GenieGate_XMLImport (&$dbh, &$ua, &$gm, &$pm)
 Constructor.

 more ($data)
 Feed it more XML data.

 finish ()
 Finish parsing.

 error ($message=FALSE)
 Get the error messages.

 logit ($message=FALSE)
 Log a status message.

 user_count ()
 Returns the count of User elements that were processed.


Public Attributes

 $DUMMY_EMAIL = "@example.com"
 Email address assigned to users w/out an email address.


Detailed Description

This class takes XML and imports it.

Properties, Property Sections, Groups, Users can be added or updated using this package and the XML data.

Definition at line 7 of file XMLImport.php.


Constructor & Destructor Documentation

GenieGate_XMLImport &$  dbh,
&$  ua,
&$  gm,
&$  pm
 

Constructor.

Parameters:
$dbh - Database handle.
$ua - User
$gm - Groups
$pm - Properties

Definition at line 30 of file XMLImport.php.


Member Function Documentation

error message = FALSE  ) 
 

Get the error messages.

With a parameter, adds an error to the queue.

Parameters:
$message - Message to add. (may be FALSE)
Returns:
if no $message, return a list of errors.

Definition at line 74 of file XMLImport.php.

finish  ) 
 

Finish parsing.

This gives us a chance to free up the parser and determine if the XML was in fact valid. (did it have closing tags?)

Definition at line 60 of file XMLImport.php.

logit message = FALSE  ) 
 

Log a status message.

Parameters:
$message - Text of message to log.
Returns:
If no $message, return list of all logged messages.

Definition at line 85 of file XMLImport.php.

more data  ) 
 

Feed it more XML data.

This method is used to actually parse the information, you feed XML into this class by calling more() over and over until all your XML is parsed. At the end, it is important to call finish().

See also:
finish()
Parameters:
$data - XML Data to be parsed.

Definition at line 49 of file XMLImport.php.


The documentation for this class was generated from the following file:
DoxyGen Documentation generated by DoxyGen