function XMLArrayInstance::end in Campaign Monitor 5.2
File
- lib/
CMBase.php, line 640
Class
- XMLArrayInstance
- XMLArrayInstance, xml2array() and array2xml() will be used to convert data between XML and Array. We're using a class because that is the only way we can safely use xml_parse() and other related functions (the alternative is to use $GLOBALS to…
Code
function end($parser, $ele) {
if ($this->data_buffer[$this->stack_path] != '') {
$this
->setArrValue($this->data_buffer[$this->stack_path]);
}
array_pop($this->stack);
$this->stack_path = '/' . implode('/', $this->stack);
$this->stack_sz--;
}