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