8 * This source file is subject to the new BSD license that is bundled
9 * with this package in the file LICENSE.txt.
10 * It is also available through the world-wide-web at this URL:
11 * http://framework.zend.com/license/new-bsd
12 * If you did not receive a copy of the license and are unable to
13 * obtain it through the world-wide-web, please send an email
14 * to license@zend.com so we can send you a copy immediately.
19 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
24 * @see Zend_Gdata_Entry
26 require_once 'Zend/Gdata/Entry.php';
29 * Concrete class for working with Health profile list entries.
31 * @link http://code.google.com/apis/health/
36 * @copyright Copyright (c) 2005-2008 Zend Technologies USA Inc. (http://www.zend.com)
37 * @license http://framework.zend.com/license/new-bsd New BSD License
39 class Zend_Gdata_Health_ProfileListEntry
extends Zend_Gdata_Entry
42 * The classname for individual profile list entry elements.
46 protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
49 * Constructs a new Zend_Gdata_Health_ProfileListEntry object.
50 * @param DOMElement $element (optional) The DOMElement on which to base this object.
52 public function __construct($element = null)
54 parent
::__construct($element);
58 * Retrieves a DOMElement which corresponds to this element and all
59 * child properties. This is used to build an entry back into a DOM
60 * and eventually XML text for application storage/persistence.
62 * @param DOMDocument $doc The DOMDocument used to construct DOMElements
63 * @return DOMElement The DOMElement representing this element and all
66 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
68 $element = parent
::getDOM($doc, $majorVersion, $minorVersion);
73 * Creates individual Entry objects of the appropriate type and
74 * stores them as members of this entry based upon DOM data.
76 * @param DOMNode $child The DOMNode to process
78 protected function takeChildFromDOM($child)
80 parent
::takeChildFromDOM($child);
84 * Retrieves the profile ID for the entry, which is contained in <atom:content>
85 * @return string The profile id
87 public function getProfileID() {
88 return $this->getContent()->text
;
92 * Retrieves the profile's title, which is contained in <atom:title>
93 * @return string The profile name
95 public function getProfileName() {
96 return $this->getTitle()->text
;