class ActionUploadRemoveFile in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
Hierarchy
- class \EdSDK\FileUploaderServer\lib\action\AAction
- class \EdSDK\FileUploaderServer\lib\action\AActionUploadId
- class \EdSDK\FileUploaderServer\lib\action\ActionUploadRemoveFile
- class \EdSDK\FileUploaderServer\lib\action\AActionUploadId
Expanded class hierarchy of ActionUploadRemoveFile
1 file declares its use of ActionUploadRemoveFile
- Actions.php in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ Actions.php
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ action/ ActionUploadRemoveFile.php, line 17
Namespace
EdSDK\FileUploaderServer\lib\actionView source
class ActionUploadRemoveFile extends AActionUploadId {
public function getName() {
return "uploadRemoveFile";
}
public function run($req) {
$this
->validateUploadId($req);
$file = new FileUploaded($this->m_config, $req->uploadId, $req->name, $req->name);
$file
->checkForErrors(true);
if ($file
->getErrors()
->size() > 0) {
throw new MessageException(Message::createMessageByFile(Message::UNABLE_TO_DELETE_UPLOAD_DIR, $file
->getData()));
}
$file
->delete();
return new RespOk();
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
AAction:: |
protected | property | ||
AAction:: |
public | function | ||
AAction:: |
protected | function | ||
AAction:: |
protected | function | ||
AAction:: |
protected | function | ||
AActionUploadId:: |
protected | function | ||
ActionUploadRemoveFile:: |
public | function |
Overrides AAction:: |
|
ActionUploadRemoveFile:: |
public | function |
Overrides AAction:: |