You are here

AAction.php in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

File

vendor/edsdk/file-uploader-server-php/src/lib/action/AAction.php
View source
<?php

/**
 * File Uploader Server package
 * Developer: N1ED
 * Website: https://n1ed.com/
 * License: GNU General Public License Version 3 or later
 **/
namespace EdSDK\FileUploaderServer\lib\action;

abstract class AAction {
  protected $m_config;
  public function setConfig($config) {
    $this->m_config = $config;
  }
  public abstract function getName();
  public abstract function run($req);
  protected function validateBoolean($b, $defaultValue) {
    return $b === null ? $defaultValue : $b;
  }
  protected function validateInteger($i, $defaultValue) {
    return $i === null ? $defaultValue : $i;
  }
  protected function validateString($s, $defaultValue) {
    return $s === null ? $defaultValue : $s;
  }

}

Classes

Namesort descending Description
AAction