You are here

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

Hierarchy

  • class \EdSDK\FileUploaderServer\lib\action\resp\Message

Expanded class hierarchy of Message

15 files declare their use of Message
AActionUploadId.php in vendor/edsdk/file-uploader-server-php/src/lib/action/AActionUploadId.php
ActionUploadAddFile.php in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadAddFile.php
ActionUploadCancel.php in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCancel.php
ActionUploadCommit.php in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCommit.php
ActionUploadInit.php in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadInit.php

... See full list

File

vendor/edsdk/file-uploader-server-php/src/lib/action/resp/Message.php, line 12

Namespace

EdSDK\FileUploaderServer\lib\action\resp
View source
class Message {
  const FILE_ERROR_SYNTAX = -1;

  // args: name
  const FILE_ERROR_DOES_NOT_EXIST = -2;
  const FILE_ERROR_INCORRECT_IMAGE_EXT_CHANGE = -3;

  // args: oldExt, newExt
  const ACTION_NOT_FOUND = 0;
  const UNABLE_TO_CREATE_UPLOAD_DIR = 1;
  const UPLOAD_ID_NOT_SET = 2;
  const UPLOAD_ID_INCORRECT = 3;
  const MALFORMED_REQUEST = 4;
  const NO_FILE_UPLOADED = 5;
  const FILE_SIZE_EXCEEDS_LIMIT = 6;

  // args: name, size, maxSize
  const INCORRECT_EXTENSION = 7;

  // args: name, allowedExtsStr
  const WRITING_FILE_ERROR = 8;

  // args: name
  const UNABLE_TO_DELETE_UPLOAD_DIR = 9;
  const UNABLE_TO_DELETE_FILE = 10;

  // args: name
  const DIR_DOES_NOT_EXIST = 11;

  // args: name
  const FILES_NOT_SET = 12;
  const FILE_IS_NOT_IMAGE = 13;
  const DUPLICATE_NAME = 14;
  const FILE_ALREADY_EXISTS = 15;

  // args: name
  const FILES_ERRORS = 16;

  // files args: filesWithErrors
  const UNABLE_TO_COPY_FILE = 17;

  // args: name, dstName
  const IMAGE_PROCESS_ERROR = 18;
  const MAX_RESIZE_WIDTH_EXCEEDED = 19;

  // args: width, maxWidth, name
  const MAX_RESIZE_HEIGHT_EXCEEDED = 20;

  // args: height, maxHeight, name
  const UNABLE_TO_WRITE_IMAGE_TO_FILE = 21;

  // args: name
  const INTERNAL_ERROR = 22;
  const DOWNLOAD_FAIL_CODE = 23;

  // args: httpCode
  const DOWNLOAD_FAIL_IO = 24;

  // args: IO_Exceptions_text
  const DOWNLOAD_FAIL_HOST_DENIED = 25;

  // args: host name
  const DOWNLOAD_FAIL_INCORRECT_URL = 26;

  // args: url
  public $code;
  public $args;
  public $files;
  private function __construct() {
  }
  public static function createMessage($code, $arg1 = null, $arg2 = null, $arg3 = null) {
    $msg = new Message();
    $msg->code = $code;
    if ($arg1 != null) {
      $msg->args = [];
      $msg->args[] = $arg1;
      if ($arg2 != null) {
        $msg->args[] = $arg2;
        if ($arg3 != null) {
          $msg->args[] = $arg3;
        }
      }
    }
    return $msg;
  }
  public static function createMessageByFiles($code, $files) {
    $msg = new Message();
    $msg->code = $code;
    $msg->files = $files;
    return $msg;
  }
  public static function createMessageByFile($code, $file) {
    $msg = new Message();
    $msg->code = $code;
    $msg->files = [];
    $msg->files[] = $file;
    return $msg;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
Message::$args public property
Message::$code public property
Message::$files public property
Message::ACTION_NOT_FOUND constant
Message::createMessage public static function
Message::createMessageByFile public static function
Message::createMessageByFiles public static function
Message::DIR_DOES_NOT_EXIST constant
Message::DOWNLOAD_FAIL_CODE constant
Message::DOWNLOAD_FAIL_HOST_DENIED constant
Message::DOWNLOAD_FAIL_INCORRECT_URL constant
Message::DOWNLOAD_FAIL_IO constant
Message::DUPLICATE_NAME constant
Message::FILES_ERRORS constant
Message::FILES_NOT_SET constant
Message::FILE_ALREADY_EXISTS constant
Message::FILE_ERROR_DOES_NOT_EXIST constant
Message::FILE_ERROR_INCORRECT_IMAGE_EXT_CHANGE constant
Message::FILE_ERROR_SYNTAX constant
Message::FILE_IS_NOT_IMAGE constant
Message::FILE_SIZE_EXCEEDS_LIMIT constant
Message::IMAGE_PROCESS_ERROR constant
Message::INCORRECT_EXTENSION constant
Message::INTERNAL_ERROR constant
Message::MALFORMED_REQUEST constant
Message::MAX_RESIZE_HEIGHT_EXCEEDED constant
Message::MAX_RESIZE_WIDTH_EXCEEDED constant
Message::NO_FILE_UPLOADED constant
Message::UNABLE_TO_COPY_FILE constant
Message::UNABLE_TO_CREATE_UPLOAD_DIR constant
Message::UNABLE_TO_DELETE_FILE constant
Message::UNABLE_TO_DELETE_UPLOAD_DIR constant
Message::UNABLE_TO_WRITE_IMAGE_TO_FILE constant
Message::UPLOAD_ID_INCORRECT constant
Message::UPLOAD_ID_NOT_SET constant
Message::WRITING_FILE_ERROR constant
Message::__construct private function