本文整理汇总了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);
}