/** * Handles the "display" task, which displays a folder and file list * */ function display() { parent::display(); }
function edit() { JRequest::setVar('hidemainmenu', 1); JRequest::setVar('layout', 'default_edit'); parent::display(); }
function remove() { $cid = JRequest::getVar('cid', array(), 'default', 'array'); $id = JRequest::getString('id'); if (empty($id)) { if (!empty($cid) && is_array($cid)) { foreach ($cid as $id) { $result = $this->_remove($id); if (!$result) { $this->setRedirect(JURI::base() . 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view') . '&tpl=' . JRequest::getCmd('tpl'), JText::_('FILTER_ERROR_INVALIDID'), 'error'); $this->redirect(); return; } } } else { $this->setRedirect(JURI::base() . 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view') . '&tpl=' . JRequest::getCmd('tpl'), JText::_('FILTER_ERROR_INVALIDID'), 'error'); $this->redirect(); return; } } else { $result = $this->_remove($id); if (!$result) { $this->setRedirect(JURI::base() . 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view') . '&tpl=' . JRequest::getCmd('tpl'), $this->getError(), 'error'); $this->redirect(); return; } } $this->setRedirect(JURI::base() . 'index.php?option=com_joomlapack&view=' . JRequest::getCmd('view') . '&tpl=' . JRequest::getCmd('tpl'), JText::_('FILTER_MSG_DELETED')); parent::display(); }