Ejemplo n.º 1
0
 /**
  * Handles the "display" task, which displays a folder and file list
  *
  */
 function display()
 {
     parent::display();
 }
Ejemplo n.º 2
0
 function edit()
 {
     JRequest::setVar('hidemainmenu', 1);
     JRequest::setVar('layout', 'default_edit');
     parent::display();
 }
Ejemplo n.º 3
0
 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();
 }