Пример #1
0
 public function __construct($file, $baseURI, $relativePath = '', $includeVariation = false, $flatList = false, $path, $isUpload = false, $foldersOnly = false, $place = '', $paginated = false)
 {
     parent::__construct($file, $baseURI, $relativePath);
     $this->place = $place;
     // If the relativePath is empty, we would assume that the user is currently on the root folder.
     if (empty($this->relativePath)) {
         $this->baseURI = dirname($baseURI);
         $this->relativePath = DIRECTORY_SEPARATOR;
     }
     if ($relativePath == DIRECTORY_SEPARATOR) {
         $this->isDS = true;
         $this->relativePath = parent::getRelativePath();
     }
     $this->includeVariation = $includeVariation;
     $this->contents = $this->getContents($foldersOnly, $paginated);
 }