protected function FileCommited::getFileModification in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2
Gets specified file modification.
2 calls to FileCommited::getFileModification()
- FileCommited::getFileOriginal in src/
Flmngr/ FileUploaderServer/ lib/ file/ FileCommited.php - Gets original file modification.
- FileCommited::getFilePreview in src/
Flmngr/ FileUploaderServer/ lib/ file/ FileCommited.php - Gets a preview for file.
File
- src/
Flmngr/ FileUploaderServer/ lib/ file/ FileCommited.php, line 33
Class
- FileCommited
- Commited file (data structure about the file of finished upload transaction). Has method for resizing images (applying sizes when finishing transaction).
Namespace
Drupal\n1ed\Flmngr\FileUploaderServer\lib\fileCode
protected function getFileModification($modificationName) {
if (!$this
->isImage() || $this->mainFile != NULL) {
throw new Exception("Unable to get modification for not image or main image");
}
$name = $this
->getNameWithoutExt() . "-" . $modificationName . "." . $this
->getExt();
$file = new FileCommited($this->config, $this
->getDir(), $name);
$file->modificationName = $modificationName;
$file->mainFile = $this;
return $file;
}