From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- zend/library/Zend/Gdata/Extension/EventStatus.php | 101 ++++++++++++++++++++++ 1 file changed, 101 insertions(+) create mode 100644 zend/library/Zend/Gdata/Extension/EventStatus.php (limited to 'zend/library/Zend/Gdata/Extension/EventStatus.php') diff --git a/zend/library/Zend/Gdata/Extension/EventStatus.php b/zend/library/Zend/Gdata/Extension/EventStatus.php new file mode 100644 index 0000000..8b1953c --- /dev/null +++ b/zend/library/Zend/Gdata/Extension/EventStatus.php @@ -0,0 +1,101 @@ +_value = $value; + } + + public function getDOM($doc = null, $majorVersion = 1, $minorVersion = null) + { + $element = parent::getDOM($doc, $majorVersion, $minorVersion); + if ($this->_value !== null) { + $element->setAttribute('value', $this->_value); + } + return $element; + } + + protected function takeAttributeFromDOM($attribute) + { + switch ($attribute->localName) { + case 'value': + $this->_value = $attribute->nodeValue; + break; + default: + parent::takeAttributeFromDOM($attribute); + } + } + + /** + * Get the value for this element's Value attribute. + * + * @return string The requested attribute. + */ + public function getValue() + { + return $this->_value; + } + + /** + * Set the value for this element's Value attribute. + * + * @param string $value The desired value for this attribute. + * @return Zend_Gdata_Extension_Visibility The element being modified. + */ + public function setValue($value) + { + $this->_value = $value; + return $this; + } + + /** + * Magic toString method allows using this directly via echo + * Works best in PHP >= 4.2.0 + */ + public function __toString() + { + return $this->getValue(); + } + +} -- cgit v1.2.3