You are here

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

Response about a fail. For conversion to JSON.

Hierarchy

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

Expanded class hierarchy of RespFail

3 files declare their use of RespFail
ActionError.php in src/Flmngr/FileUploaderServer/lib/action/ActionError.php
Uploader.php in src/Flmngr/FileUploaderServer/lib/Uploader.php
UploaderServlet.php in src/Flmngr/FileUploaderServer/servlet/UploaderServlet.php

File

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

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\action\resp
View source
class RespFail extends RespOk {
  public $message;

  /**
   * Creates response with a message.
   */
  public function __construct($message) {
    $this->ok = FALSE;
    $this->message = $message;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RespFail::$message public property
RespFail::__construct public function Creates response with a message.
RespOk::$ok public property