web/lib/Zend/Feed/Reader/FeedSet.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    12  * obtain it through the world-wide-web, please send an email
    12  * obtain it through the world-wide-web, please send an email
    13  * to license@zend.com so we can send you a copy immediately.
    13  * to license@zend.com so we can send you a copy immediately.
    14  *
    14  *
    15  * @category   Zend
    15  * @category   Zend
    16  * @package    Zend_Feed_Reader
    16  * @package    Zend_Feed_Reader
    17  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    17  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    18  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    19  * @version    $Id: FeedSet.php 22662 2010-07-24 17:37:36Z mabe $
    19  * @version    $Id: FeedSet.php 24593 2012-01-05 20:35:02Z matthew $
    20  */
    20  */
    21 
    21 
    22 /**
    22 /**
    23  * @see Zend_Feed_Reader
    23  * @see Zend_Feed_Reader
    24  */
    24  */
    30 require_once 'Zend/Uri.php';
    30 require_once 'Zend/Uri.php';
    31 
    31 
    32 /**
    32 /**
    33  * @category   Zend
    33  * @category   Zend
    34  * @package    Zend_Feed_Reader
    34  * @package    Zend_Feed_Reader
    35  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    35  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    36  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    37  */
    37  */
    38 class Zend_Feed_Reader_FeedSet extends ArrayObject
    38 class Zend_Feed_Reader_FeedSet extends ArrayObject
    39 {
    39 {
    40 
    40 
    79                 'type' => $link->getAttribute('type'),
    79                 'type' => $link->getAttribute('type'),
    80                 'href' => $this->_absolutiseUri(trim($link->getAttribute('href')), $uri),
    80                 'href' => $this->_absolutiseUri(trim($link->getAttribute('href')), $uri),
    81             ));
    81             ));
    82         }
    82         }
    83     }
    83     }
    84     
    84 
    85     /**
    85     /**
    86      *  Attempt to turn a relative URI into an absolute URI
    86      *  Attempt to turn a relative URI into an absolute URI
    87      */
    87      */
    88     protected function _absolutiseUri($link, $uri = null)
    88     protected function _absolutiseUri($link, $uri = null)
    89     {
    89     {
   101                 }
   101                 }
   102             }
   102             }
   103         }
   103         }
   104         return $link;
   104         return $link;
   105     }
   105     }
   106     
   106 
   107     /**
   107     /**
   108      *  Canonicalize relative path
   108      *  Canonicalize relative path
   109      */
   109      */
   110     protected function _canonicalizePath($path)
   110     protected function _canonicalizePath($path)
   111     {
   111     {