public function validateEntry(entry $dbEntry) { parent::validateEntry($dbEntry); $this->validatePropertyNotNull('dropFolderFileId'); $dropFolderFile = DropFolderFilePeer::retrieveByPK($this->dropFolderFileId); if (!$dropFolderFile) { throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $this->dropFolderFileId); } $dropFolder = DropFolderPeer::retrieveByPK($dropFolderFile->getDropFolderId()); if (!$dropFolder) { throw new KalturaAPIException(KalturaErrors::INVALID_OBJECT_ID, $dropFolderFile->getDropFolderId()); } if ($dropFolder->getType() == DropFolderType::LOCAL) { $filePath = rtrim($dropFolder->getPath(), '\\\\/') . '/' . ltrim($dropFolderFile->getFileName(), '\\\\/'); if (!file_exists($filePath)) { $dropFolderFile->setStatus(DropFolderFileStatus::ERROR_HANDLING); $dropFolderFile->save(); throw new KalturaAPIException(KalturaErrors::FILE_DOESNT_EXIST, $filePath); } } }
public function validateEntry(entry $dbEntry) { parent::validateEntry($dbEntry); $this->validatePropertyNotNull('token'); }
public function validateEntry(entry $dbEntry) { parent::validateEntry($dbEntry); $this->validatePropertyNotNull('localFilePath'); }