public function checkin() { parent::checkin(); if (!$this->getError()) { $app = JFactory::getApplication(); $link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . (int) $app->input->get('filter_project') . '&filter_album=' . (int) $app->input->get('filter_album') . '&id=' . (int) $app->input->get('id') . '&revision=' . (int) $app->input->get('revision'); $this->setRedirect(JRoute::_($link, false)); return true; } return false; }
public function checkin() { $app = JFactory::getApplication(); parent::checkin(); $rootCat = JUDirectoryFrontHelperCategory::getRootCategory(); $cat_id = $app->input->getInt('cat_id', $rootCat->id); if ($app->input->getString('view', 'listcats') == 'treestructure') { $this->setRedirect("index.php?option=com_judirectory&view=treestructure"); } else { $this->setRedirect("index.php?option=com_judirectory&view={$this->view_list}&cat_id={$cat_id}"); } }
/** * Check in of one or more records. * * Overrides JControllerAdmin::checkin to check the core.admin permission. * * @since 1.6 */ public function checkin() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { throw new Exception(JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::checkin(); }
/** * Check in of one or more records. * * Overrides JControllerAdmin::checkin to check the core.admin permission. * * @since 1.6 */ public function checkin() { if (!JFactory::getUser()->authorise('core.admin', $this->option)) { JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR')); jexit(); } return parent::checkin(); }
public function checkin() { $app = JFactory::getApplication(); $documentid = $app->input->post->get('documentid', array(), 'array'); $app->input->post->set('cid', $documentid); $_POST['cid'] = $documentid; parent::checkin(); $rootCat = JUDownloadFrontHelperCategory::getRootCategory(); $cat_id = $app->input->getInt('cat_id', $rootCat->id); $this->setRedirect("index.php?option=com_judownload&view={$this->view_list}&cat_id={$cat_id}"); }
public function checkin() { parent::checkin(); }
/** * Check in of one or more records. * * Overrides JControllerAdmin::checkin to redirect to URL with extension. * * @return boolean True on success * * @since 3.6.0 */ public function checkin() { // Process parent checkin method. $result = parent::checkin(); // Overrride the redirect Uri. $redirectUri = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&extension=' . $this->input->get('extension', '', 'CMD'); $this->setRedirect(JRoute::_($redirectUri, false), $this->message, $this->messageType); return $result; }
/** * Check in of one or more records. * * Overrides JControllerAdmin::checkin to check the core.admin permission. * * @since 1.6 */ public function checkin() { if (!User::authorise('core.admin', $this->option)) { App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR')); exit; } return parent::checkin(); }