Example #1
0
 /**
  * @param $id
  * @return Video
  */
 public static function findVideoById($id)
 {
     $videoData = Request::getVideoById($id);
     $params = ['description' => $videoData->description, 'title' => $videoData->title, 'isHidden' => $videoData->is_hidden, 'categoryId' => $videoData->category->id, 'Rutuber' => $videoData];
     $video = new Video();
     $video->setAttributes($params);
     unset($videoData);
     return $video;
 }