n1ed-8.x-2.31/src/Flmngr/model/FMDir.php
src/Flmngr/model/FMDir.php
<?php
/**
* Flmngr Server package
* Developer: N1ED
* Website: https://n1ed.com/
* License: GNU General Public License Version 3 or later
**/
namespace Drupal\n1ed\Flmngr\model;
class FMDir {
private $path; // contains parent dir's path WITHOUT starting AND trailing "/"
private $name;
public $f;
public $d;
public $p; // property exists in PHP version only, for JSON generation
function __construct($name, $path) {
$this->path = $path;
$this->name = $name;
$this->f = 0; // legacy
$this->d = 0; // legacy
$this->p =
(strlen($this->path) > 0 ? '/' . $this->path : '') .
'/' .
$this->name;
}
}
