Moodle  2.2.1
http://www.collinsharper.com
xml_database_importer Class Reference
Inheritance diagram for xml_database_importer:
Collaboration diagram for xml_database_importer:

Protected Member Functions

 get_parser ()
 tag_open ($parser, $tag, $attributes)
 tag_close ($parser, $tag)
 cdata ($parser, $cdata)

Protected Attributes

 $current_table
 $current_row
 $current_field
 $current_data
 $current_data_is_null

Detailed Description

XML format importer class (uses SAX for speed and low memory footprint). Provides logic for parsing XML data and calling appropriate callbacks. Subclasses should define XML data sources.

Definition at line 35 of file xml_database_importer.php.


Member Function Documentation

cdata ( parser,
cdata 
) [protected]

Callback function. Called by the XML parser for character data processing.

Parameters:
resource$parserXML parser resource.
string$datacharacter data to be processed
Returns:
void

Definition at line 153 of file xml_database_importer.php.

get_parser ( ) [protected]

Creates and setups a SAX parser. Subclasses should use this method to create the XML parser.

Returns:
resource XML parser resource.

Definition at line 48 of file xml_database_importer.php.

Here is the caller graph for this function:

tag_close ( parser,
tag 
) [protected]

Callback function. Called by the XML parser for closing tags processing.

Parameters:
resource$parserXML parser resource.
string$tagname of opening tag
Returns:
void

Definition at line 113 of file xml_database_importer.php.

Here is the call graph for this function:

tag_open ( parser,
tag,
attributes 
) [protected]

Callback function. Called by the XML parser for opening tags processing.

Parameters:
resource$parserXML parser resource.
string$tagname of opening tag
array$attributesset of opening tag XML attributes
Returns:
void

Definition at line 65 of file xml_database_importer.php.

Here is the call graph for this function:


Field Documentation

$current_data [protected]

Definition at line 39 of file xml_database_importer.php.

$current_data_is_null [protected]

Definition at line 40 of file xml_database_importer.php.

$current_field [protected]

Definition at line 38 of file xml_database_importer.php.

$current_row [protected]

Definition at line 37 of file xml_database_importer.php.

$current_table [protected]

Definition at line 36 of file xml_database_importer.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations