20 defined(
'XOOPS_ROOT_PATH') or die('Restricted access');
22 include_once XOOPS_ROOT_PATH . '/class/xml/saxparser.php';
23 include_once XOOPS_ROOT_PATH . '/class/xml/xmltaghandler.php';
27 var $tempArr = array();
28 var $themeSetData = array();
29 var $imagesData = array();
30 var $templatesData = array();
34 $this->SaxParser($input);
35 $this->addTagHandler(
new ThemeSetThemeNameHandler());
50 function setThemeSetData($name, &$value)
52 $this->themeSetData[$name] = & $value;
55 function &getThemeSetData($name = null)
58 if (isset($this->themeSetData[$name])) {
59 return $this->themeSetData[$name];
63 return $this->themeSetData;
66 function setImagesData(&$imagearr)
68 $this->imagesData[] = & $imagearr;
71 function &getImagesData()
73 return $this->imagesData;
76 function setTemplatesData(&$tplarr)
78 $this->templatesData[] = & $tplarr;
81 function &getTemplatesData()
83 return $this->templatesData;
86 function setTempArr($name, &$value, $delim =
'')
88 if (! isset($this->tempArr[$name])) {
89 $this->tempArr[$name] = & $value;
91 $this->tempArr[$name] .= $delim . $value;
97 return $this->tempArr;
100 function resetTempArr()
102 unset($this->tempArr);
103 $this->tempArr = array();
117 return 'dateCreated';
122 switch (
$parser->getParentTag()) {
124 $parser->setThemeSetData(
'date', $data);
164 return 'description';
169 switch (
$parser->getParentTag()) {
171 $parser->setTempArr(
'description', $data);
174 $parser->setTempArr(
'description', $data);
196 switch (
$parser->getParentTag()) {
198 $parser->setThemeSetData(
'generator', $data);
220 switch (
$parser->getParentTag()) {
222 $parser->setThemeSetData(
'name', $data);
225 $parser->setTempArr(
'name', $data);
247 switch (
$parser->getParentTag()) {
249 $parser->setTempArr(
'email', $data);
271 switch (
$parser->getParentTag()) {
273 $parser->setTempArr(
'link', $data);
296 $parser->setTempArr(
'name', $attributes[
'name']);
320 $parser->setTempArr(
'name', $attributes[0]);
343 switch (
$parser->getParentTag()) {
346 $parser->setTempArr(
'module', $data);
368 switch (
$parser->getParentTag()) {
370 $parser->setTempArr(
'type', $data);
392 switch (
$parser->getParentTag()) {
394 $parser->setTempArr(
'tag', $data);