You are here

function XMLTag::XMLTag in Asset 6

Same name in this branch
  1. 6 asset_youtube/xmlparser.class.php \XMLTag::XMLTag()
  2. 6 asset_youtube/inc/xmlparser.class.php \XMLTag::XMLTag()
Same name and namespace in other branches
  1. 5 asset_youtube/xmlparser.class.php \XMLTag::XMLTag()

Constructor, sets up all the default values

Parameters

string $name:

array $attrs:

int $parents:

Return value

XMLTag

File

asset_youtube/xmlparser.class.php, line 261

Class

XMLTag
XML Tag Object (php4)

Code

function XMLTag($name, $attrs = array(), $parents = 0) {

  //Make the keys of the attr array lower case, and store the value
  $this->tagAttrs = array_change_key_case($attrs, CASE_LOWER);

  //Make the name lower case and store the value
  $this->tagName = strtolower($name);

  //Set the number of parents
  $this->tagParents = $parents;

  //Set the types for children and data
  $this->tagChildren = array();
  $this->tagData = '';
}