function JSimpleXMLElement::__construct in Ubercart 5
Constructor, sets up all the default values
Parameters
string $name:
array $attrs:
int $parents:
Return value
File
- uc_store/
includes/ simplexml.php, line 430
Class
- JSimpleXMLElement
- SimpleXML Element
Code
function __construct($name, $attrs = array(), $level = 0) {
//Make the keys of the attr array lower case, and store the value
$this->_attributes = array_change_key_case($attrs, CASE_LOWER);
//Make the name lower case and store the value
$this->_name = strtolower($name);
//Set the level
$this->_level = $level;
}