XML_Feed_Parser
[ class tree: XML_Feed_Parser ] [ index: XML_Feed_Parser ] [ all elements ]

Source for file RSS09Element.php

Documentation is available at RSS09Element.php

  1. <?php
  2. /* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
  3.  
  4. /**
  5.  * RSS0.9 Element class for XML_Feed_Parser
  6.  *
  7.  * PHP versions 5
  8.  *
  9.  * LICENSE: This source file is subject to version 3.0 of the PHP license
  10.  * that is available through the world-wide-web at the following URI:
  11.  * http://www.php.net/license/3_0.txt.  If you did not receive a copy of
  12.  * the PHP License and are unable to obtain it through the web, please
  13.  * send a note to license@php.net so we can mail you a copy immediately.
  14.  *
  15.  * @category   XML
  16.  * @package    XML_Feed_Parser
  17.  * @author     James Stewart <james@jystewart.net>
  18.  * @copyright  2005 James Stewart <james@jystewart.net>
  19.  * @license    http://www.gnu.org/copyleft/lesser.html  GNU LGPL 2.1
  20.  * @version    CVS: $Id$
  21.  * @link       http://pear.php.net/package/XML_Feed_Parser/
  22.  */
  23.  
  24. /*
  25.  * This class provides support for RSS 0.9 entries. It will usually be called by
  26.  * XML_Feed_Parser_RSS09 with which it shares many methods.
  27.  *
  28.  * @author    James Stewart <james@jystewart.net>
  29.  * @version    Release: @package_version@
  30.  * @package XML_Feed_Parser
  31.  */
  32. {
  33.     /**
  34.      * This will be a reference to the parent object for when we want
  35.      * to use a 'fallback' rule
  36.      * @var XML_Feed_Parser_RSS09 
  37.      */
  38.     protected $parent;
  39.  
  40.     /**
  41.      * Our specific element map
  42.      * @var array 
  43.      */
  44.     protected $map = array(
  45.         'title' => array('Text'),
  46.         'link' => array('Link'));
  47.  
  48.     /**
  49.      * Store useful information for later.
  50.      *
  51.      * @param   DOMElement  $element - this item as a DOM element
  52.      * @param   XML_Feed_Parser_RSS1 $parent - the feed of which this is a member
  53.      */
  54.     function __construct(DOMElement $element$parent$xmlBase '')
  55.     {
  56.         $this->model = $element;
  57.         $this->parent = $parent;
  58.         $this->setSanitizer($parent->getSanitizer());
  59.     }
  60. }

Documentation generated on Mon, 11 Mar 2019 15:47:22 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.