Blame view

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