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');
75 if (!isset($this->_channelData[$name])) {
76 $this->_channelData[$name] =& $value;
78 $this->_channelData[$name] .= $value;
85 if (isset($this->_channelData[$name])) {
86 return $this->_channelData[$name];
95 $this->_imageData[$name] =& $value;
101 if (isset($this->_imageData[$name])) {
102 return $this->_imageData[$name];
112 $this->_items[] =& $itemarr;
122 if (!isset($this->_tempArr[$name])) {
123 $this->_tempArr[$name] =& $value;
125 $this->_tempArr[$name] .= $delim.$value;
136 unset($this->_tempArr);
137 $this->_tempArr = array();
170 switch (
$parser->getParentTag()) {
172 $parser->setChannelData(
'title', $data);
175 $parser->setImageData(
'title', $data);
179 $parser->setTempArr(
'title', $data);
202 switch (
$parser->getParentTag()) {
204 $parser->setChannelData(
'link', $data);
207 $parser->setImageData(
'link', $data);
211 $parser->setTempArr(
'link', $data);
229 return 'description';
234 switch (
$parser->getParentTag()) {
236 $parser->setChannelData(
'description', $data);
239 $parser->setImageData(
'description', $data);
243 $parser->setTempArr(
'description', $data);
266 switch (
$parser->getParentTag()) {
268 $parser->setChannelData(
'generator', $data);
291 switch (
$parser->getParentTag()) {
293 $parser->setChannelData(
'copyright', $data);
316 switch (
$parser->getParentTag()) {
318 $parser->setTempArr(
'name', $data);
336 return 'managingEditor';
341 switch (
$parser->getParentTag()) {
343 $parser->setChannelData(
'editor', $data);
366 switch (
$parser->getParentTag()) {
368 $parser->setChannelData(
'language', $data);
391 switch (
$parser->getParentTag()) {
393 $parser->setChannelData(
'webmaster', $data);
416 switch (
$parser->getParentTag()) {
418 $parser->setChannelData(
'docs', $data);
441 switch (
$parser->getParentTag()) {
443 $parser->setChannelData(
'ttl', $data);
485 return 'lastBuildDate';
490 switch (
$parser->getParentTag()) {
492 $parser->setChannelData(
'lastbuilddate', $data);
528 if (
$parser->getParentTag() ==
'image') {
529 $parser->setImageData(
'url', $data);
549 if (
$parser->getParentTag() ==
'image') {
550 $parser->setImageData(
'width', $data);
569 if (
$parser->getParentTag() ==
'image') {
570 $parser->setImageData(
'height', $data);
595 $items =&
$parser->getTempArr();
615 switch (
$parser->getParentTag()) {
617 $parser->setChannelData(
'category', $data);
620 $parser->setTempArr(
'category', $data,
', ');
642 if (
$parser->getParentTag() ==
'item') {
643 $parser->setTempArr(
'comments', $data);
663 switch (
$parser->getParentTag()) {
665 $parser->setChannelData(
'pubdate', $data);
668 $parser->setTempArr(
'pubdate', $data);
691 if (
$parser->getParentTag() ==
'item') {
692 $parser->setTempArr(
'guid', $data);
712 if (
$parser->getParentTag() ==
'item') {
713 $parser->setTempArr(
'author', $data);
733 if (
$parser->getParentTag() ==
'item') {
734 $parser->setTempArr(
'source_url', $attributes[
'url']);
740 if (
$parser->getParentTag() ==
'item') {
741 $parser->setTempArr(
'source', $data);