You are here

function FMFile::__construct in N1ED - Visual editor as CKEditor plugin with Bootstrap support 7

File

vendor/edsdk/flmngr-server-php/src/model/FMFile.php, line 21

Class

FMFile

Namespace

EdSDK\FlmngrServer\model

Code

function __construct($path, $name, $size, $timeModification, $imageInfo) {
  $this->p = "/" . $path . "/" . $name;
  $this->s = $size;
  $this->t = $timeModification;
  $this->w = $imageInfo->width == 0 ? null : $imageInfo->width;
  $this->h = $imageInfo->height == 0 ? null : $imageInfo->height;
}