source: trunk/www.guidonia.net/wp/wp-content/plugins/webtv/Drivers/Zend/Gdata/Health/ProfileListEntry.php@ 44

Last change on this file since 44 was 44, checked in by luciano, 14 years ago
File size: 3.0 KB
Line 
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-2008 Zend Technologies USA Inc. (http://www.zend.com)
20 * @license http://framework.zend.com/license/new-bsd New BSD License
21 */
22
23/**
24 * @see Zend_Gdata_Entry
25 */
26require_once 'Zend/Gdata/Entry.php';
27
28/**
29 * Concrete class for working with Health profile list entries.
30 *
31 * @link http://code.google.com/apis/health/
32 *
33 * @category Zend
34 * @package Zend_Gdata
35 * @subpackage 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
38 */
39class Zend_Gdata_Health_ProfileListEntry extends Zend_Gdata_Entry
40{
41 /**
42 * The classname for individual profile list entry elements.
43 *
44 * @var string
45 */
46 protected $_entryClassName = 'Zend_Gdata_Health_ProfileListEntry';
47
48 /**
49 * Constructs a new Zend_Gdata_Health_ProfileListEntry object.
50 * @param DOMElement $element (optional) The DOMElement on which to base this object.
51 */
52 public function __construct($element = null)
53 {
54 parent::__construct($element);
55 }
56
57 /**
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.
61 *
62 * @param DOMDocument $doc The DOMDocument used to construct DOMElements
63 * @return DOMElement The DOMElement representing this element and all
64 * child properties.
65 */
66 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
67 {
68 $element = parent::getDOM($doc, $majorVersion, $minorVersion);
69 return $element;
70 }
71
72 /**
73 * Creates individual Entry objects of the appropriate type and
74 * stores them as members of this entry based upon DOM data.
75 *
76 * @param DOMNode $child The DOMNode to process
77 */
78 protected function takeChildFromDOM($child)
79 {
80 parent::takeChildFromDOM($child);
81 }
82
83 /**
84 * Retrieves the profile ID for the entry, which is contained in <atom:content>
85 * @return string The profile id
86 */
87 public function getProfileID() {
88 return $this->getContent()->text;
89 }
90
91 /**
92 * Retrieves the profile's title, which is contained in <atom:title>
93 * @return string The profile name
94 */
95 public function getProfileName() {
96 return $this->getTitle()->text;
97 }
98
99}
Note: See TracBrowser for help on using the repository browser.