layout = 'edit'; } protected function allowAdd($data = array()) { $user = Factory::getUser(); $allow = null; $allow = $user->authorise('core.create', 'com_phocadownload'); if ($allow === null) { return parent::allowAdd($data); } else { return $allow; } } protected function allowEdit($data = array(), $key = 'id') { $user = Factory::getUser(); $allow = null; $allow = $user->authorise('core.edit', 'com_phocadownload'); if ($allow === null) { return parent::allowEdit($data, $key); } else { return $allow; } } function edit($key = NULL, $urlVar = NULL) { $this->setRedirect(Route::_('index.php?option='.$this->option.'&view='.$this->view_list.'&layout='.$this->layout.'&manager=filemultiple', false)); } function cancel($key = NULL) { $this->setRedirect( 'index.php?option=com_phocadownload&view=phocadownloadfiles' ); } } ?>