protected function FileCommited::getFileModification in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7
2 calls to FileCommited::getFileModification()
- FileCommited::getFileOriginal in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileCommited.php - FileCommited::getFilePreview in vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileCommited.php
File
- vendor/
edsdk/ file-uploader-server-php/ src/ lib/ file/ FileCommited.php, line 31
Class
Namespace
EdSDK\FileUploaderServer\lib\fileCode
protected function getFileModification($modificationName) {
if (!$this
->isImage() || $this->m_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->m_config, $this
->getDir(), $name);
$file->m_modificationName = $modificationName;
$file->m_mainFile = $this;
return $file;
}