Esempio n. 1
0
 /**  
  * Factory method for youtube search
  *
  * @return Eden_Google_Youtube_Search
  */
 public function search()
 {
     return Eden_Google_Youtube_Search::i($this->_token);
 }
Esempio n. 2
0
if(!class_exists('Eden_Google_Youtube')){class Eden_Google_Youtube extends Eden_Google_Base{public static function i(){return self::_getMultiple(__CLASS__);}public function __construct($token,$developerId){Eden_Google_Error::i()->argument(1,'string')->argument(2,'string');$this->_token=$token;$this->_developerId=$developerId;}public function activity(){return Eden_Google_Youtube_Activity::i($this->_token,$this->_developerId);}public function channel(){return Eden_Google_Youtube_Channel::i($this->_token);}public function comment(){return Eden_Google_Youtube_Comment::i($this->_token,$this->_developerId);}public function contacts(){return Eden_Google_Youtube_Contacts::i($this->_token,$this->_developerId);}public function favorites(){return Eden_Google_Youtube_Favorites::i($this->_token,$this->_developerId);}public function history(){return Eden_Google_Youtube_History::i($this->_token,$this->_developerId);}public function message(){return Eden_Google_Youtube_Message::i($this->_token,$this->_developerId);}public function playlist(){return Eden_Google_Youtube_Playlist::i($this->_token,$this->_developerId);}public function profile(){return Eden_Google_Youtube_Profile::i($this->_token,$this->_developerId);}public function ratings(){return Eden_Google_Youtube_Ratings::i($this->_token,$this->_developerId);}public function search(){return Eden_Google_Youtube_Search::i($this->_token);}public function subscription(){return Eden_Google_Youtube_Subscription::i($this->_token,$this->_developerId);}public function upload(){return Eden_Google_Youtube_Upload::i($this->_token,$this->_developerId);}public function video(){return Eden_Google_Youtube_Video::i($this->_token);}}}