Пример #1
0
 function __construct($env, $folder, $rootItems)
 {
     parent::__construct("trash", array("name" => "trash", "path" => $folder), $this);
     $this->env = $env;
     $this->folder = $folder;
     $this->rootItems = $rootItems;
     $this->rootItemsById = array();
     foreach ($this->rootItems as $item) {
         $this->rootItemsById[$item["id"]] = $item;
     }
 }
Пример #2
0
 public function __construct($config)
 {
     $this->config = $config;
     $this->fsRemote = RemoteFilesystem::create($config);
     $this->fsLocal = LocalFilesystem::create($config);
 }