You are here

public static function Message::createMessage in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

25 calls to Message::createMessage()
AActionUploadId::validateUploadId in vendor/edsdk/file-uploader-server-php/src/lib/action/AActionUploadId.php
ActionUploadAddFile::run in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadAddFile.php
ActionUploadCancel::run in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCancel.php
ActionUploadCommit::run in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCommit.php
ActionUploadInit::run 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 52

Class

Message

Namespace

EdSDK\FileUploaderServer\lib\action\resp

Code

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;
}