public function LatestYouTubeVideos() { return YouTubeVideo::get()->filter('ThumbnailID:GreaterThan', 0)->sort(array('SortOrder' => 'ASC', 'Created' => 'ASC')); }
/** * Looks up YouTubeVideo objects by VideoID, returns the first result * * @param $videoID * @return bool|DataList */ public static function getExisting($videoID) { $video = YouTubeVideo::get()->filter('VideoID', $videoID)->first(); return $video ? $video : false; }