本文整理匯總了PHP中JControllerAdmin::reorder方法的典型用法代碼示例。如果您正苦於以下問題:PHP JControllerAdmin::reorder方法的具體用法?PHP JControllerAdmin::reorder怎麽用?PHP JControllerAdmin::reorder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類JControllerAdmin
的用法示例。
在下文中一共展示了JControllerAdmin::reorder方法的10個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: reorder
/**
* Changes the order of one or more records.
*
* Overrides JControllerAdmin::reorder to check the core.admin permission.
*
* @since 1.6
*/
public function reorder()
{
if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR'));
jexit();
}
return parent::reorder();
}
示例2: reorder
/**
* Changes the order of one or more records.
*
* Overrides JControllerAdmin::reorder to check the core.admin permission.
*
* @since 1.6
*/
public function reorder()
{
if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
jexit();
}
return parent::reorder();
}
示例3: reorder
/**
* Changes the order of one or more records.
*
* Overrides JControllerAdmin::reorder to check the core.admin permission.
*
* @since 1.6
*/
public function reorder()
{
if (!User::authorise('core.admin', $this->option)) {
App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR'));
exit;
}
return parent::reorder();
}
示例4: reorder
public function reorder()
{
$cid = JRequest::getVar('cid', null, 'get', 'array');
JArrayHelper::toInteger($cid);
JRequest::setVar('cid', $cid, 'post');
JFactory::getApplication()->input->post->set('cid', $cid);
JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post');
JFactory::getApplication()->input->post->set(JRequest::getCmd('formtoken'), 1);
if (!igGeneralHelper::authorise('core.igalleryfront.edit.state', (int) $cid[0])) {
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
parent::reorder();
}
示例5: reorder
public function reorder()
{
// Check for request forgeries.
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
$extra_id = JFactory::getApplication()->input->get('extra_id', 0, 'int');
$extra_id_url = !empty($extra_id) ? '&extra_id=' . $extra_id : '';
$return = parent::reorder();
if ($return === false) {
// Reorder failed.
$message = JText::sprintf('JLIB_APPLICATION_ERROR_REORDER_FAILED', $model->getError());
$this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . $extra_id_url, false), $message, 'error');
return false;
} else {
// Reorder succeeded.
$message = JText::_('JLIB_APPLICATION_SUCCESS_ITEM_REORDERED');
$this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . $extra_id_url, false), $message);
return true;
}
}
示例6: reorder
public function reorder()
{
parent::reorder();
$app = JFactory::getApplication();
$cat_id = $app->input->getInt('cat_id', 1);
$this->setRedirect("index.php?option=com_judirectory&view=listcats&cat_id={$cat_id}");
}
示例7: reorder
public function reorder()
{
$app = JFactory::getApplication();
$documentid = $app->input->post->get('documentid', array(), 'array');
$app->input->post->set('cid', $documentid);
$_POST['cid'] = $documentid;
$rootCat = JUDownloadFrontHelperCategory::getRootCategory();
$cat_id = $app->input->getInt('cat_id', $rootCat->id);
parent::reorder();
$this->setRedirect("index.php?option=com_judownload&view=listcats&cat_id={$cat_id}");
}
示例8: reorder
public function reorder()
{
parent::reorder();
$this->setRedirectToSlides();
}
示例9: reorder
function reorder()
{
$cid = JRequest::getVar('cid', array(), '', 'array');
if (!igGeneralHelper::authorise('core.edit.state', null, (int) $cid[0])) {
return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
}
$this->view_list = 'images&catid=' . JRequest::getInt('catid');
parent::reorder();
}
示例10: reorder
function reorder()
{
parent::reorder();
$this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid') . $this->_anchor);
}