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-2010 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
25 * @see Zend_Gdata_Entry
27 require_once 'Zend/Gdata/Entry.php';
30 * Concrete class for working with Health profile list entries.
32 * @link http://code.google.com/apis/health/
37 * @copyright Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
38 * @license http://framework.zend.com/license/new-bsd New BSD License
40 class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
43 * The classname for individual profile list entry elements.
47 protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
50 * Constructs a new Zend_Gdata_Health_ProfileListEntry object.
51 * @param DOMElement $element (optional) The DOMElement on which to base this object.
53 public function __construct($element = null)
55 parent::__construct($element);
59 * Retrieves a DOMElement which corresponds to this element and all
60 * child properties. This is used to build an entry back into a DOM
61 * and eventually XML text for application storage/persistence.
63 * @param DOMDocument $doc The DOMDocument used to construct DOMElements
64 * @return DOMElement The DOMElement representing this element and all
67 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
69 $element = parent::getDOM($doc, $majorVersion, $minorVersion);
74 * Creates individual Entry objects of the appropriate type and
75 * stores them as members of this entry based upon DOM data.
77 * @param DOMNode $child The DOMNode to process
79 protected function takeChildFromDOM($child)
81 parent::takeChildFromDOM($child);
85 * Retrieves the profile ID for the entry, which is contained in <atom:content>
86 * @return string The profile id
88 public function getProfileID() {
89 return $this->getContent()->text;
93 * Retrieves the profile's title, which is contained in <atom:title>
94 * @return string The profile name
96 public function getProfileName() {
97 return $this->getTitle()->text;