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; } }
public function __construct($config) { $this->config = $config; $this->fsRemote = RemoteFilesystem::create($config); $this->fsLocal = LocalFilesystem::create($config); }