public static function setDefaultHeight($value) { $value = intval($value); if ($value == 0) { $value = 225; } self::$player_height = $value; }
function getVideo() { $params = $this->getURLParams(); if (is_numeric($params['ID'])) { $vimeo = new VimeoService(); $video = $vimeo->getVideoById($params['ID']); return $video; } else { return false; } }