Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Gdata/Gapps/NicknameEntry.php
Go to the documentation of this file.
00001 <?php
00002 
00027 require_once 'Zend/Gdata/Entry.php';
00028 
00032 require_once 'Zend/Gdata/Gapps/Extension/Login.php';
00033 
00037 require_once 'Zend/Gdata/Gapps/Extension/Nickname.php';
00038 
00059 class Zend_Gdata_Gapps_NicknameEntry extends Zend_Gdata_Entry
00060 {
00061 
00062     protected $_entryClassName = 'Zend_Gdata_Gapps_NicknameEntry';
00063 
00070     protected $_login = null;
00071 
00077     protected $_nickname = null;
00078 
00085     public function __construct($element = null)
00086     {
00087         $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces);
00088         parent::__construct($element);
00089     }
00090 
00100     public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null)
00101     {
00102         $element = parent::getDOM($doc, $majorVersion, $minorVersion);
00103         if ($this->_login !== null) {
00104             $element->appendChild($this->_login->getDOM($element->ownerDocument));
00105         }
00106         if ($this->_nickname !== null) {
00107             $element->appendChild($this->_nickname->getDOM($element->ownerDocument));
00108         }
00109         return $element;
00110     }
00111 
00118     protected function takeChildFromDOM($child)
00119     {
00120         $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
00121 
00122         switch ($absoluteNodeName) {
00123             case $this->lookupNamespace('apps') . ':' . 'login';
00124                 $login = new Zend_Gdata_Gapps_Extension_Login();
00125                 $login->transferFromDOM($child);
00126                 $this->_login = $login;
00127                 break;
00128             case $this->lookupNamespace('apps') . ':' . 'nickname';
00129                 $nickname = new Zend_Gdata_Gapps_Extension_Nickname();
00130                 $nickname->transferFromDOM($child);
00131                 $this->_nickname = $nickname;
00132                 break;
00133             default:
00134                 parent::takeChildFromDOM($child);
00135                 break;
00136         }
00137     }
00138 
00145     public function getLogin()
00146     {
00147         return $this->_login;
00148     }
00149 
00158     public function setLogin($value)
00159     {
00160         $this->_login = $value;
00161         return $this;
00162     }
00163 
00170     public function getNickname()
00171     {
00172         return $this->_nickname;
00173     }
00174 
00183     public function setNickname($value)
00184     {
00185         $this->_nickname = $value;
00186         return $this;
00187     }
00188 
00189 }
 All Data Structures Namespaces Files Functions Variables Enumerations