You are here

class RespUploadInit in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Response about upload initialization. For conversion to JSON.

Hierarchy

  • class \Drupal\n1ed\Flmngr\FileUploaderServer\lib\action\resp\RespOk
    • class \Drupal\n1ed\Flmngr\FileUploaderServer\lib\action\resp\RespUploadInit

Expanded class hierarchy of RespUploadInit

1 file declares its use of RespUploadInit
ActionUploadInit.php in src/Flmngr/FileUploaderServer/lib/action/ActionUploadInit.php

File

src/Flmngr/FileUploaderServer/lib/action/resp/RespUploadInit.php, line 9

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\action\resp
View source
class RespUploadInit extends RespOk {
  public $uploadId;
  public $settings;

  /**
   * Creates a request.
   */
  public function __construct($uploadId, $config) {
    $this->uploadId = $uploadId;
    $this->settings = new Settings();
    $this->settings->maxImageResizeWidth = $config
      ->getMaxImageResizeWidth();
    $this->settings->maxImageResizeHeight = $config
      ->getMaxImageResizeHeight();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RespOk::$ok public property
RespUploadInit::$settings public property
RespUploadInit::$uploadId public property
RespUploadInit::__construct public function Creates a request.