|
Moodle
2.2.1
http://www.collinsharper.com
|
00001 <?php 00002 00027 require_once 'Zend/Gdata/Extension.php'; 00028 00038 class Zend_Gdata_YouTube_Extension_Position extends Zend_Gdata_Extension 00039 { 00040 00041 protected $_rootElement = 'position'; 00042 protected $_rootNamespace = 'yt'; 00043 00049 public function __construct($value = null) 00050 { 00051 $this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); 00052 parent::__construct(); 00053 $this->_text = $value; 00054 } 00055 00061 public function getValue() 00062 { 00063 return $this->_text; 00064 } 00065 00072 public function setValue($value) 00073 { 00074 $this->_text = $value; 00075 return $this; 00076 } 00077 00084 public function __toString() 00085 { 00086 return $this->getValue(); 00087 } 00088 00089 } 00090