Subversion Repositories Applications.papyrus

Rev

Rev 1527 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1527 Rev 1919
Line 15... Line 15...
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: Type.php,v 1.2 2007-07-25 15:05:34 jp_milcent Exp $
20
 * @version    CVS: $Id: Type.php,v 1.3 2008-09-30 15:21:39 alexandre_tb Exp $
21
 * @link       http://pear.php.net/package/XML_Feed_Parser/
21
 * @link       http://pear.php.net/package/XML_Feed_Parser/
22
 */
22
 */
Line 23... Line 23...
23
 
23
 
24
/**
24
/**
Line 193... Line 193...
193
            if ($entries->length > $offset) {
193
            if ($entries->length > $offset) {
194
                $xmlBase = $entries->item($offset)->baseURI;
194
                $xmlBase = $entries->item($offset)->baseURI;
195
                $this->entries[$offset] = new $this->itemClass(
195
                $this->entries[$offset] = new $this->itemClass(
196
                    $entries->item($offset), $this, $xmlBase);
196
                    $entries->item($offset), $this, $xmlBase);
197
                if ($id = $this->entries[$offset]->id) {
197
                if ($id = $this->entries[$offset]->id) {
-
 
198
                    $id_mappings = $this->idMappings;
198
                    $this->idMappings[$id] = $this->entries[$offset];
199
                    $id_mappings[$id] = $this->entries[$offset];
-
 
200
                    $this->idMappings = $id_mappings;
199
                }
201
                }
200
            } else {
202
            } else {
201
                throw new XML_Feed_Parser_Exception('No entries found');
203
                throw new XML_Feed_Parser_Exception('No entries found');
202
            }
204
            }
203
        }
205
        }