Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/YouTube/ContactEntry.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/YouTube/UserProfileEntry.php';
00028 
00032 require_once 'Zend/Gdata/YouTube/Extension/Status.php';
00033 
00044 class Zend_Gdata_YouTube_ContactEntry extends Zend_Gdata_YouTube_UserProfileEntry
00045 {
00046 
00052     protected $_entryClassName = 'Zend_Gdata_YouTube_ContactEntry';
00053 
00059     protected $_status = null;
00060 
00068     public function __construct($element = null)
00069     {
00070         $this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces);
00071         parent::__construct($element);
00072     }
00073 
00084     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00085     {
00086         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00087         if ($this->_status != null) {
00088             $element->appendChild($this->_status->getDOM($element->ownerDocument));
00089         }
00090         return $element;
00091     }
00092 
00099     protected function takeChildFromDOM($child)
00100     {
00101         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00102         switch ($absoluteNodeName) {
00103         case $this->lookupNamespace('yt') . ':' . 'status':
00104             $status = new Zend_Gdata_YouTube_Extension_Status();
00105             $status->transferFromDOM($child);
00106             $this->_status = $status;
00107             break;
00108         default:
00109             parent::takeChildFromDOM($child);
00110             break;
00111         }
00112     }
00113 
00120     public function setStatus($status = null)
00121     {
00122         $this->_status = $status;
00123         return $this;
00124     }
00125 
00131     public function getStatus()
00132     {
00133         return $this->_status;
00134     }
00135 
00136 }
 All Data Structures Namespaces Files Functions Variables Enumerations