当前位置: 首页>>代码示例>>PHP>>正文


PHP JControllerAdmin::reorder方法代码示例

本文整理汇总了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();
 }
开发者ID:01J,项目名称:topm,代码行数:15,代码来源:groups.php

示例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();
 }
开发者ID:joomlatools,项目名称:joomla-platform,代码行数:15,代码来源:groups.php

示例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();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:15,代码来源:groups.php

示例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();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:13,代码来源:categories.php

示例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;
     }
 }
开发者ID:JozefAB,项目名称:qk,代码行数:19,代码来源:extravalues.php

示例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}");
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:7,代码来源:categories.php

示例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}");
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:11,代码来源:documents.php

示例8: reorder

 public function reorder()
 {
     parent::reorder();
     $this->setRedirectToSlides();
 }
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:5,代码来源:items.php

示例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();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:9,代码来源:images.php

示例10: reorder

 function reorder()
 {
     parent::reorder();
     $this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid') . $this->_anchor);
 }
开发者ID:sansandeep143,项目名称:av,代码行数:5,代码来源:files.php


注:本文中的JControllerAdmin::reorder方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。