Subversion Repositories eFlore/Applications.cel

Rev

Rev 580 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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