web/lib/Zend/Gdata/Health/ProfileFeed.php
changeset 807 877f952ae2bd
parent 207 621fa6caec0c
child 1230 68c69c656a2c
equal deleted inserted replaced
805:5e7a0fedabdf 807:877f952ae2bd
    14  * to license@zend.com so we can send you a copy immediately.
    14  * to license@zend.com so we can send you a copy immediately.
    15  *
    15  *
    16  * @category   Zend
    16  * @category   Zend
    17  * @package    Zend_Gdata
    17  * @package    Zend_Gdata
    18  * @subpackage Health
    18  * @subpackage Health
    19  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    19  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    20  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    21  * @version    $Id: ProfileFeed.php 20096 2010-01-06 02:05:09Z bkarwin $
    21  * @version    $Id: ProfileFeed.php 24779 2012-05-08 19:13:59Z adamlundrigan $
    22  */
    22  */
       
    23 
       
    24 /**
       
    25  * @see Zend_Exception
       
    26  */
       
    27 require_once 'Zend/Exception.php';
    23 
    28 
    24 /**
    29 /**
    25  * @see Zend_Gdata_Feed
    30  * @see Zend_Gdata_Feed
    26  */
    31  */
    27 require_once 'Zend/Gdata/Feed.php';
    32 require_once 'Zend/Gdata/Feed.php';
    32  * @link http://code.google.com/apis/health/
    37  * @link http://code.google.com/apis/health/
    33  *
    38  *
    34  * @category   Zend
    39  * @category   Zend
    35  * @package    Zend_Gdata
    40  * @package    Zend_Gdata
    36  * @subpackage Health
    41  * @subpackage Health
    37  * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
    42  * @copyright  Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
    38  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    43  * @license    http://framework.zend.com/license/new-bsd     New BSD License
    39  */
    44  */
    40 class Zend_Gdata_Health_ProfileFeed extends Zend_Gdata_Feed
    45 class Zend_Gdata_Health_ProfileFeed extends Zend_Gdata_Feed
    41 {
    46 {
    42     /**
       
    43      * The class name for individual profile feed elements.
       
    44      *
       
    45      * @var string
       
    46      */
       
    47     protected $_entryClassName = 'Zend_Gdata_Health_ProfileEntry';
       
    48 
       
    49     /**
    47     /**
    50      * Creates a Health Profile feed, representing a user's Health profile
    48      * Creates a Health Profile feed, representing a user's Health profile
    51      *
    49      *
    52      * @param DOMElement $element (optional) DOMElement from which this
    50      * @param DOMElement $element (optional) DOMElement from which this
    53      *          object should be constructed.
    51      *          object should be constructed.
    54      */
    52      */
    55     public function __construct($element = null)
    53     public function __construct($element = null)
    56     {
    54     {
    57         foreach (Zend_Gdata_Health::$namespaces as $nsPrefix => $nsUri) {
    55         throw new Zend_Exception(
    58             $this->registerNamespace($nsPrefix, $nsUri);
    56             'Google Health API has been discontinued by Google and was removed'
    59         }
    57             . ' from Zend Framework in 1.12.0.  For more information see: '
    60         parent::__construct($element);
    58             . 'http://googleblog.blogspot.ca/2011/06/update-on-google-health-and-google.html'
    61     }
    59         );
    62 
       
    63     public function getEntries()
       
    64     {
       
    65         return $this->entry;
       
    66     }
    60     }
    67 }
    61 }