예제 #1
0
 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();
     }
 }
예제 #3
0
 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();
 }
예제 #5
0
 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);
     }
 }
예제 #6
0
 public function validateForInsert($propertiesToSkip = array())
 {
     parent::validateForInsert($propertiesToSkip);
     $dbEntry = entryPeer::retrieveByPK($this->entryId);
     QuizPlugin::validateAndGetQuiz($dbEntry);
     $this->validateParentId();
     $this->validateUserEntry();
 }
예제 #7
0
 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;
     }
 }
예제 #8
0
 public function validateForInsert($propertiesToSkip = array())
 {
     parent::validateForInsert($propertiesToSkip);
     $this->validatePropertyNotNull("code");
     $this->validateEndTime();
 }