You are here

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

Hierarchy

  • class \EdSDK\FileUploaderServer\lib\Actions

Expanded class hierarchy of Actions

1 file declares its use of Actions
UploaderServlet.php in vendor/edsdk/file-uploader-server-php/src/servlet/UploaderServlet.php

File

vendor/edsdk/file-uploader-server-php/src/lib/Actions.php, line 19

Namespace

EdSDK\FileUploaderServer\lib
View source
class Actions {
  protected $m_actions = [];
  public function __construct() {
    $this->m_actions[] = new ActionError();
    $this->m_actions[] = new ActionUploadInit();
    $this->m_actions[] = new ActionUploadAddFile();
    $this->m_actions[] = new ActionUploadRemoveFile();
    $this->m_actions[] = new ActionUploadCommit();
    $this->m_actions[] = new ActionUploadCancel();
  }
  public function getActionError() {
    return $this
      ->getAction("error");
  }
  public function getAction($name) {
    for ($i = 0; $i < count($this->m_actions); $i++) {
      if ($this->m_actions[$i]
        ->getName() === $name) {
        return $this->m_actions[$i];
      }
    }
    return null;
  }

}

Members