public function validateForInsert($propertiesToSkip = array()) { if ($this->assetId !== null) { $this->validateTimedThumbAssetId(); } parent::validateForInsert($propertiesToSkip); }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); if (!is_null($this->endTime)) { $this->validateEndTime(); } }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); $dbEntry = entryPeer::retrieveByPK($this->entryId); QuizPlugin::validateAndGetQuiz($dbEntry); if (!QuizPlugin::validateUserEntitledForQuizEdit($dbEntry)) { throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID); } }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); if ($this->text != null) { $this->validatePropertyMaxLength("text", CuePointPeer::MAX_TEXT_LENGTH); } $this->validateEndTime(); $this->validateParentId(); }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); $dbEntry = entryPeer::retrieveByPK($this->entryId); QuizPlugin::validateAndGetQuiz($dbEntry); if (!QuizPlugin::validateUserEntitledForQuizEdit($dbEntry)) { KalturaLog::debug('Update quiz questions is allowed only with admin KS or entry owner or co-editor'); throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID); } }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); $dbEntry = entryPeer::retrieveByPK($this->entryId); QuizPlugin::validateAndGetQuiz($dbEntry); $this->validateParentId(); $this->validateUserEntry(); }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); if ($this->text != null) { $this->validatePropertyMaxLength("text", CuePointPeer::MAX_TEXT_LENGTH); } $this->validateParentId(); if ($this->parentId) { $this->validateEndTime(); } if (!isset($this->isPublic) || is_null($this->isPublic)) { $this->isPublic = false; } if (!isset($this->searchableOnEntry) || is_null($this->searchableOnEntry)) { $this->searchableOnEntry = true; } }
public function validateForInsert($propertiesToSkip = array()) { parent::validateForInsert($propertiesToSkip); $this->validatePropertyNotNull("code"); $this->validateEndTime(); }