Tags
Table of Contents
- $current_data : mixed
- String Current data value.
- $current_element : mixed
- String Current data element.
- $group_data : mixed
- Array for storing user's group data.
- $user_data : mixed
- Array Array for storing user data.
- $user_id : mixed
- Int ID of last inserted user (counter)
- $xmlfile : mixed
- String XML file
- __construct() : mixed
- Class constructor.
- __destruct() : mixed
- Class destructor;
- endElementHandler() : mixed
- Sets the end element handler function for the XML parser parser.end_element_handler.
- segContentHandler() : mixed
- Sets the character data handler function for the XML parser parser.handler.
- startElementHandler() : mixed
- Sets the start element handler function for the XML parser parser.start_element_handler.
Properties
$current_data
String Current data value.
private mixed $current_data = ''
Tags
$current_element
String Current data element.
private mixed $current_element =
''
Tags
$group_data
Array for storing user's group data.
private mixed $group_data = array()
Tags
$user_data
Array Array for storing user data.
private mixed $user_data = array()
Tags
$user_id
Int ID of last inserted user (counter)
private mixed $user_id = 0
Tags
$xmlfile
String XML file
private mixed $xmlfile = ''
Tags
Methods
__construct()
Class constructor.
public __construct( $xmlfile)
: mixed
Parameters
Return values
mixed —__destruct()
Class destructor;
public __destruct()
: mixed
Return values
mixed —endElementHandler()
Sets the end element handler function for the XML parser parser.end_element_handler.
private endElementHandler( $parser,
$name)
: mixed
Parameters
- $parser :
-
(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
- $name :
-
(string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
Tags
Return values
mixed —segContentHandler()
Sets the character data handler function for the XML parser parser.handler.
private segContentHandler( $parser,
$data)
: mixed
Parameters
- $parser :
-
(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
- $data :
-
(string) The second parameter, data, contains the character data as a string.
Tags
Return values
mixed —startElementHandler()
Sets the start element handler function for the XML parser parser.start_element_handler.
private startElementHandler( $parser,
$name,
$attribs)
: mixed
Parameters
- $parser :
-
(resource) The first parameter, parser, is a reference to the XML parser calling the handler.
- $name :
-
(string) The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters.
- $attribs :
-
(array) The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on.