Beispiel #1
0
 private function _loadFavorites($maxResults = 0, $startIndex = 0)
 {
     $this->_favorites_maxResults = $maxResults;
     $this->_favorites_startIndex = $startIndex;
     $favorites = new YouTubeVideoList($this->_developerKey);
     $favorites->load("FavoritesByUser", $this->_username, $maxResults, $startIndex);
     $this->_favorites = $favorites;
 }
Beispiel #2
0
 private function _loadVideos()
 {
     $youtube = new YouTube($this->_developerKey);
     $playlist = $youtube->getPlaylist($this->_id, $this->_maxResults, $this->_startIndex);
     //load playlist data
     $xml = new SimpleXMLElement($playlist);
     $this->_title = (string) $xml->title;
     $this->_subtitle = (string) $xml->subtitle;
     //load videos
     return parent::populate($playlist);
 }