$value) { if(in_array($key, $this->intVal)){ $value = intval($value); } @$this->$key = $value; //$this->properties[$key] = $value; } return true; } static protected function getFromVideoDb($videos_id) { global $global; if (!static::isTableInstalled()) { return false; } /** * * @var array $global * @var object $global['mysqli'] */ $videos_id = intval($videos_id); return Video::getVideoLight($videos_id); } static function isVR360Enabled($videos_id){ $vr = new VideosVR360(0); $vr->loadFromVideo($videos_id); return !empty($vr->getActive()); } static function toogleVR360($videos_id){ if(!User::canUpload()){ return false; } $vr = new VideosVR360(0); $vr->loadFromVideo($videos_id); $vr->setVideos_id($videos_id); $vr->setActive(intval(!$vr->getActive())); $vr->save(); return $vr->getActive(); } static function toogleVR360ByVideoCleanTitle($clean_title){ $video = Video::getVideoFromCleanTitle($clean_title); return self::toogleVR360($video['id']); } function getId() { return $this->id; } function getVideos_id() { return $this->videos_id; } function getClickAndDrag() { return $this->clickAndDrag; } function getShowNotice() { return $this->showNotice; } function getInitLat() { return $this->initLat; } function getInitLon() { return $this->initLon; } function getBackToVerticalCenter() { return $this->backToVerticalCenter; } function getVideoType() { return $this->videoType; } function getActive() { return $this->active; } function setId($id) { $this->id = $id; } function setVideos_id($videos_id) { $this->videos_id = intval($videos_id); } function setClickAndDrag($clickAndDrag) { $this->clickAndDrag = intval($clickAndDrag); } function setShowNotice($showNotice) { $this->showNotice = intval($showNotice); } function setInitLat($initLat) { $this->initLat = intval($initLat); } function setInitLon($initLon) { $this->initLon = intval($initLon); } function setBackToVerticalCenter($backToVerticalCenter) { $this->backToVerticalCenter = intval($backToVerticalCenter); } function setVideoType($videoType) { $this->videoType = $videoType; } function setActive($active) { $this->active = intval($active); } }