You are here

abstract class AActionUploadId in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

Hierarchy

Expanded class hierarchy of AActionUploadId

File

vendor/edsdk/file-uploader-server-php/src/lib/action/AActionUploadId.php, line 15

Namespace

EdSDK\FileUploaderServer\lib\action
View source
abstract class AActionUploadId extends AAction {
  protected function validateUploadId($req) {
    if ($req->uploadId === null) {
      throw new MessageException(Message::createMessage(Message::UPLOAD_ID_NOT_SET));
    }
    $dir = $this->m_config
      ->getTmpDir() . "/" . $req->uploadId;
    if (!file_exists($dir) || !is_dir($dir)) {
      throw new MessageException(Message::createMessage(Message::UPLOAD_ID_INCORRECT));
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
AAction::$m_config protected property
AAction::getName abstract public function 6
AAction::run abstract public function 6
AAction::setConfig public function
AAction::validateBoolean protected function
AAction::validateInteger protected function
AAction::validateString protected function
AActionUploadId::validateUploadId protected function