From 06f945f27840b53e57795dadbc38e76f7e11ab1c Mon Sep 17 00:00:00 2001 From: Horus3 Date: Mon, 24 Feb 2014 16:42:14 +0100 Subject: init --- .../Zend/Gdata/YouTube/Extension/Position.php | 90 ++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 zend/library/Zend/Gdata/YouTube/Extension/Position.php (limited to 'zend/library/Zend/Gdata/YouTube/Extension/Position.php') diff --git a/zend/library/Zend/Gdata/YouTube/Extension/Position.php b/zend/library/Zend/Gdata/YouTube/Extension/Position.php new file mode 100644 index 0000000..95685f9 --- /dev/null +++ b/zend/library/Zend/Gdata/YouTube/Extension/Position.php @@ -0,0 +1,90 @@ +registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); + parent::__construct(); + $this->_text = $value; + } + + /** + * Get the value for the position in the playlist + * + * @return int The 1-based position in the playlist + */ + public function getValue() + { + return $this->_text; + } + + /** + * Set the value for the position in the playlist + * + * @param int $value The 1-based position in the playlist + * @return Zend_Gdata_Extension_Visibility The element being modified + */ + public function setValue($value) + { + $this->_text = $value; + return $this; + } + + /** + * Magic toString method allows using this directly via echo + * Works best in PHP >= 4.2.0 + * + * @return string + */ + public function __toString() + { + return $this->getValue(); + } + +} + -- cgit v1.2.3