|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00027 require_once 'Zend/Gdata/Entry.php'; 00028 00032 require_once 'Zend/Gdata/Extension/Who.php'; 00033 00055 class Zend_Gdata_Gapps_EmailListRecipientEntry extends Zend_Gdata_Entry 00056 { 00057 00058 protected $_entryClassName = 'Zend_Gdata_Gapps_EmailListRecipientEntry'; 00059 00067 protected $_who = null; 00068 00075 public function __construct($element = null) 00076 { 00077 $this->registerAllNamespaces(Zend_Gdata_Gapps::$namespaces); 00078 parent::__construct($element); 00079 } 00080 00090 public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) 00091 { 00092 $element = parent::getDOM($doc, $majorVersion, $minorVersion); 00093 if ($this->_who !== null) { 00094 $element->appendChild($this->_who->getDOM($element->ownerDocument)); 00095 } 00096 return $element; 00097 } 00098 00105 protected function takeChildFromDOM($child) 00106 { 00107 $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; 00108 00109 switch ($absoluteNodeName) { 00110 case $this->lookupNamespace('gd') . ':' . 'who'; 00111 $who = new Zend_Gdata_Extension_Who(); 00112 $who->transferFromDOM($child); 00113 $this->_who = $who; 00114 break; 00115 default: 00116 parent::takeChildFromDOM($child); 00117 break; 00118 } 00119 } 00120 00127 public function getWho() 00128 { 00129 return $this->_who; 00130 } 00131 00140 public function setWho($value) 00141 { 00142 $this->_who = $value; 00143 return $this; 00144 } 00145 00146 }