當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。