You are here

protected function ActionUploadCommit::validateSize in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

1 call to ActionUploadCommit::validateSize()
ActionUploadCommit::validateSizes in vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCommit.php

File

vendor/edsdk/file-uploader-server-php/src/lib/action/ActionUploadCommit.php, line 26

Class

ActionUploadCommit

Namespace

EdSDK\FileUploaderServer\lib\action

Code

protected function validateSize($size, $sizeName) {
  $size->enlarge = $this
    ->validateBoolean($size->enlarge, $sizeName === "preview");
  $size->width = $this
    ->validateInteger($size->width, 0);
  $size->height = $this
    ->validateInteger($size->height, 0);
}