Zend_Gdata_YouTube_Extension_Position

Data model class to represent a playlist item's position in the list (yt:position).

Defined (1)

The class is defined in the following location(s).

/inc/VideoUploader/includes/Zend/Gdata/YouTube/Extension/Position.php  
  1. class Zend_Gdata_YouTube_Extension_Position extends Zend_Gdata_Extension 
  2.  
  3. protected $_rootElement = 'position'; 
  4. protected $_rootNamespace = 'yt'; 
  5.  
  6. /** 
  7. * Constructs a new Zend_Gdata_YouTube_Extension_Position object. 
  8. * @param string $value (optional) The 1-based position in the playlist 
  9. */ 
  10. public function __construct($value = null) 
  11. $this->registerAllNamespaces(Zend_Gdata_YouTube::$namespaces); 
  12. parent::__construct(); 
  13. $this->_text = $value; 
  14.  
  15. /** 
  16. * Get the value for the position in the playlist 
  17. * @return int The 1-based position in the playlist 
  18. */ 
  19. public function getValue() 
  20. return $this->_text; 
  21.  
  22. /** 
  23. * Set the value for the position in the playlist 
  24. * @param int $value The 1-based position in the playlist 
  25. * @return Zend_Gdata_Extension_Visibility The element being modified 
  26. */ 
  27. public function setValue($value) 
  28. $this->_text = $value; 
  29. return $this; 
  30.  
  31. /** 
  32. * Magic toString method allows using this directly via echo 
  33. * Works best in PHP >= 4.2.0 
  34. * @return string 
  35. */ 
  36. public function __toString() 
  37. return $this->getValue(); 
  38.