public function Uploader::run in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ Uploader.php, line 26
Class
Namespace
EdSDK\FileUploaderServer\libCode
public function run($req) {
$actionName = $req->action;
$action = $this->m_actions
->getAction($actionName);
if ($action === null) {
$action = $this->m_actions
->getActionError();
$req = ReqError::createReqError(Message::createMessage(Message::ACTION_NOT_FOUND));
}
$action
->setConfig($this->m_config);
$resp = null;
try {
$resp = $action
->run($req);
} catch (MessageException $e) {
$resp = new RespFail($e
->getFailMessage());
}
return $resp;
}