/** * Display a list of files * * @return void */ public function listTask() { // Incoming $listdir = Request::getInt('dir', 0, 'get'); if (!$listdir) { $this->setError(Lang::txt('COM_COLLECTIONS_NO_ID')); } $this->view->item = Item::getInstance($listdir); if (!$this->view->item->exists()) { $this->setError(Lang::txt('COM_COLLECTIONS_NO_ID')); } $this->view->config = $this->config; $this->view->listdir = $listdir; foreach ($this->getErrors() as $error) { $this->view->setError($error); } $this->view->display(); }