31 if (!defined(
'XOOPS_ROOT_PATH')) {
32 die(
"XOOPS root path not defined");
34 require_once XOOPS_ROOT_PATH.
'/class/xml/saxparser.php';
35 require_once XOOPS_ROOT_PATH.
'/class/xml/xmltaghandler.php';
200 if (is_array($value)) {
201 settype($this->_tempValue,
'array');
202 foreach ($value as $k => $v) {
203 $this->_tempValue[$k] = $v;
205 } elseif (is_string($value)) {
206 if (isset($this->_tempValue)) {
207 if (is_string($this->_tempValue)) {
208 $this->_tempValue .= $value;
211 $this->_tempValue = $value;
214 $this->_tempValue = $value;
243 unset($this->_tempValue);
313 return $this->_workingLevel[count($this->_workingLevel) - 1];
327 array_pop($this->_workingLevel);
426 $this->_methodName = $methodName;
454 $this->_param[] = $value;
519 return array(
'int',
'i4');
533 $parser->setTempValue(intval($data));
565 $data = (float)$data;
598 $data = (boolean)$data;
631 $parser->setTempValue(strval($data));
649 return 'dateTime.iso8601';
664 if (!preg_match(
"/^([0-9]{4})([0-9]{2})([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})$/", $data, $matches)) {
667 $parser->setTempValue(gmmktime($matches[4], $matches[5], $matches[6], $matches[2], $matches[3], $matches[1]));
700 $parser->setTempValue(base64_decode($data));
732 switch (
$parser->getParentTag()) {
771 switch (
$parser->getParentTag()) {
809 switch (
$parser->getCurrentTag()) {
868 $member =&
$parser->getTempMember();
869 $parser->releaseWorkingLevel();
870 $parser->setTempStruct($member);
918 $parser->releaseWorkingLevel();
966 $parser->releaseWorkingLevel();