com-tecnick-tcexam-admin

# Class: XMLUserImporter Source Location: /admin/code/tce_import_xml_users.php
### Class Overview
This PHP Class imports users and groups data directly from a XML file. #### Author(s): Nicola Asuni [www.tecnick.com] #### Version: 1.0.000 #### Copyright: Copyright (c) 2004-2010 - Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) - Via della Pace n.11 - 09044 Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com | ### Variables $current_data $current_element $group_data $user_data $user_id $xmlfile | ### Methods __construct __destruct endElementHandler segContentHandler startElementHandler
### Class Details [line 158] This PHP Class imports users and groups data directly from a XML file. #### Tags:
author: | Nicola Asuni [www.tecnick.com]
version: | 1.0.000
copyright: | Copyright (c) 2004-2010 - Nicola Asuni - Tecnick.com S.r.l (www.tecnick.com) - Via della Pace n.11 - 09044 Quartucciu (CA) - ITALY - www.tecnick.com - info@tecnick.com
abstract: | XML users and groups importer
name: | XMLUserImporter
license: | GPL
[ Top ] ### Class Variables #### $current_data = '' [line 170] #### Tags:
var: | Current data value.
access: | private
Type: | string
[ Top ] #### $current_element = '' [line 164] #### Tags:
var: | Current data element.
access: | private
Type: | string
[ Top ] #### $group_data = array() [line 182] #### Tags:
var: | Array for storing user's group data.
access: | private
Type: | array
[ Top ] #### $user_data = array() [line 176] #### Tags:
var: | Array for storing user data.
access: | private
Type: | array
[ Top ] #### $user_id = 0 [line 188] #### Tags:
var: | ID of last inserted user (counter)
access: | private
Type: | int
[ Top ] #### $xmlfile = '' [line 194] #### Tags:
var: | XML file
access: | private
Type: | string
[ Top ] ### Class Methods ### constructor __construct [line 200]
`XMLUserImporter __construct( string $xmlfile)`
Class constructor. #### Tags:
access: | public
#### Parameters:
string | $xmlfile | XML file name
[ Top ] ### destructor __destruct [line 226]
`void __destruct( )`
Class destructor; #### Tags:
access: | public
[ Top ] ### method endElementHandler [line 281]
`void endElementHandler( resource $parser, string $name)`
Sets the end element handler function for the XML parser parser.end_element_handler. #### Tags:
access: | private
#### Parameters:
resource | $parser | The first parameter, parser, is a reference to the XML parser calling the handler.
string | $name | 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.
[ Top ] ### method segContentHandler [line 487]
`void segContentHandler( resource $parser, string $data)`
Sets the character data handler function for the XML parser parser.handler. #### Tags:
access: | private
#### Parameters:
resource | $parser | The first parameter, parser, is a reference to the XML parser calling the handler.
string | $data | The second parameter, data, contains the character data as a string.
[ Top ] ### method startElementHandler [line 238]
`void startElementHandler( resource $parser, string $name, array $attribs)`
Sets the start element handler function for the XML parser parser.start_element_handler. #### Tags:
access: | private
#### Parameters:
resource | $parser | The first parameter, parser, is a reference to the XML parser calling the handler.
string | $name | 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.
array | $attribs | 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.
[ Top ] Documentation generated on Mon, 06 Dec 2010 12:03:06 +0100 by phpDocumentor 1.4.3