You are here

FMFile.php in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

File

src/Flmngr/FlmngrServer/model/FMFile.php
View source
<?php

namespace Drupal\n1ed\Flmngr\FlmngrServer\model;


/**
 * File data structure.
 */
class FMFile {
  public $p;
  public $s;
  public $t;
  public $w;
  public $h;

  /**
   * Creates an instance.
   */
  public 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;
  }

}

Classes

Namesort descending Description
FMFile File data structure.