]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - Zend/Gdata/Health/ProfileListEntry.php
Release 6.5.0
[Github/sugarcrm.git] / Zend / Gdata / Health / ProfileListEntry.php
1 <?php
2
3 /**
4  * Zend Framework
5  *
6  * LICENSE
7  *
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.
15  *
16  * @category   Zend
17  * @package    Zend_Gdata
18  * @subpackage Health
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
21
22  */
23
24 /**
25  * @see Zend_Gdata_Entry
26  */
27 require_once 'Zend/Gdata/Entry.php';
28
29 /**
30  * Concrete class for working with Health profile list entries.
31  *
32  * @link http://code.google.com/apis/health/
33  *
34  * @category   Zend
35  * @package    Zend_Gdata
36  * @subpackage 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
39  */
40 class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
41 {
42     /**
43      * The classname for individual profile list entry elements.
44      *
45      * @var string
46      */
47     protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
48
49     /**
50      * Constructs a new Zend_Gdata_Health_ProfileListEntry object.
51      * @param DOMElement $element (optional) The DOMElement on which to base this object.
52      */
53     public function __construct($element = null)
54     {
55         parent::__construct($element);
56     }
57
58     /**
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.
62      *
63      * @param DOMDocument $doc The DOMDocument used to construct DOMElements
64      * @return DOMElement The DOMElement representing this element and all
65      *          child properties.
66      */
67     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
68     {
69         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
70         return $element;
71     }
72
73     /**
74      * Creates individual Entry objects of the appropriate type and
75      * stores them as members of this entry based upon DOM data.
76      *
77      * @param DOMNode $child The DOMNode to process
78      */
79     protected function takeChildFromDOM($child)
80     {
81         parent::takeChildFromDOM($child);
82     }
83
84     /**
85      * Retrieves the profile ID for the entry, which is contained in <atom:content>
86      * @return string The profile id
87      */
88     public function getProfileID() {
89         return $this->getContent()->text;
90     }
91
92     /**
93      * Retrieves the profile's title, which is contained in <atom:title>
94      * @return string The profile name
95      */
96     public function getProfileName() {
97         return $this->getTitle()->text;
98     }
99
100 }