當前位置: 首頁>>代碼示例>>PHP>>正文


PHP JControllerAdmin::saveorder方法代碼示例

本文整理匯總了PHP中JControllerAdmin::saveorder方法的典型用法代碼示例。如果您正苦於以下問題:PHP JControllerAdmin::saveorder方法的具體用法?PHP JControllerAdmin::saveorder怎麽用?PHP JControllerAdmin::saveorder使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在JControllerAdmin的用法示例。


在下文中一共展示了JControllerAdmin::saveorder方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: saveorder

 public function saveorder()
 {
     parent::saveorder();
     $extra_id = JFactory::getApplication()->input->get('extra_id', 0, 'int');
     $extra_id_url = !empty($extra_id) ? '&extra_id=' . $extra_id : '';
     $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . $extra_id_url, false));
 }
開發者ID:JozefAB,項目名稱:qk,代碼行數:7,代碼來源:extravalues.php

示例2: saveorder

 /**
  * Save the manual order inputs from the terms list page.
  *
  * @return	void
  * @since	1.6
  */
 public function saveorder()
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     // Get the arrays from the Request
     $order = JFactory::getApplication()->input->get('order', array(), 'array');
     $cids = JFactory::getApplication()->input->get('cid', array(), 'array');
     parent::saveorder();
 }
開發者ID:JozefAB,項目名稱:qk,代碼行數:14,代碼來源:terms.php

示例3: saveorder

 function saveorder()
 {
     $cid = JRequest::getVar('cid', array(), '', 'array');
     JArrayHelper::toInteger($cid);
     for ($i = 0; $i < count($cid); $i++) {
         if (!igGeneralHelper::authorise('core.edit.state', $cid[$i])) {
             return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
         }
     }
     parent::saveorder();
 }
開發者ID:iFactoryDigital,項目名稱:gympieradiology,代碼行數:11,代碼來源:categories.php

示例4: saveorder

 public function saveorder()
 {
     JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $order = $app->input->post->get('order', null, 'array');
     $originalOrder = explode(',', $app->input->post->get('original_order_values', null, 'string'));
     if (!($order === $originalOrder)) {
         parent::saveorder();
     } else {
         $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false));
         return true;
     }
 }
開發者ID:ranrolls,項目名稱:ras-full-portal,代碼行數:13,代碼來源:comments.php

示例5: saveorder

 /**
  * Save the manual order inputs from the categories list page.
  *
  * @return	void
  * @since	1.6
  */
 public function saveorder()
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     // Get the arrays from the Request
     $order = JRequest::getVar('order', null, 'post', 'array');
     $originalOrder = explode(',', JRequest::getString('original_order_values'));
     // Make sure something has changed
     if (!($order === $originalOrder)) {
         parent::saveorder();
     } else {
         // Nothing to reorder
         $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false));
         return true;
     }
 }
開發者ID:jimyb3,項目名稱:mathematicalteachingsite,代碼行數:21,代碼來源:categories.php

示例6: saveorder

 /**
  * Save the manual order inputs from the menu items list view
  * 
  * @return      void
  * 
  * @see         JControllerAdmin::saveorder()
  * @deprecated  4.0
  */
 public function saveorder()
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     JLog::add('MenusControllerItems::saveorder() is deprecated. Function will be removed in 4.0', JLog::WARNING, 'deprecated');
     // Get the arrays from the Request
     $order = $this->input->post->get('order', null, 'array');
     $originalOrder = explode(',', $this->input->getString('original_order_values'));
     // Make sure something has changed
     if (!($order === $originalOrder)) {
         parent::saveorder();
     } else {
         // Nothing to reorder
         $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false));
         return true;
     }
 }
開發者ID:01J,項目名稱:skazkipronebo,代碼行數:24,代碼來源:items.php

示例7: saveorder

 function saveorder()
 {
     $cid = JRequest::getVar('cid', array(), '', 'array');
     JArrayHelper::toInteger($cid);
     JRequest::setVar('cid', $cid, 'post');
     JFactory::getApplication()->input->post->set('cid', $cid);
     $order = JRequest::getVar('order', null, 'get', 'array');
     JArrayHelper::toInteger($order);
     JRequest::setVar('order', $order, 'post');
     JFactory::getApplication()->input->post->set('order', $order);
     JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post');
     JFactory::getApplication()->input->post->set(JRequest::getCmd('formtoken'), 1);
     for ($i = 0; $i < count($cid); $i++) {
         if (!igGeneralHelper::authorise('core.igalleryfront.edit.state', $cid[$i])) {
             return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
         }
     }
     parent::saveorder();
 }
開發者ID:iFactoryDigital,項目名稱:gympieradiology,代碼行數:19,代碼來源:categories.php

示例8: saveorder

 public function saveorder()
 {
     JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $order = $app->input->post->get('order', null, 'array');
     $originalOrder = explode(',', $app->input->post->get('original_order_values', null, 'string'));
     if (!($order === $originalOrder)) {
         parent::saveorder();
     }
     $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,代碼行數:12,代碼來源:categories.php

示例9: saveorder

 /**
  * Method to save the submitted ordering values for records.
  *
  * Overrides JControllerAdmin::saveorder to check the core.admin permission.
  *
  * @since   1.6
  */
 public function saveorder()
 {
     if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
         throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
         jexit();
     }
     return parent::saveorder();
 }
開發者ID:joomlatools,項目名稱:joomla-platform,代碼行數:15,代碼來源:groups.php

示例10: saveorder

 /**
  * Method to save the submitted ordering values for records.
  *
  * Overrides JControllerAdmin::saveorder to check the core.admin permission.
  *
  * @since   1.6
  */
 public function saveorder()
 {
     if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
         JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR'));
         jexit();
     }
     return parent::saveorder();
 }
開發者ID:01J,項目名稱:topm,代碼行數:15,代碼來源:groups.php

示例11: saveorder

 public function saveorder()
 {
     $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::saveorder();
     $this->setRedirect("index.php?option=com_judownload&view={$this->view_list}&cat_id={$cat_id}");
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:11,代碼來源:documents.php

示例12: saveorder

 public function saveorder()
 {
     parent::saveorder();
     $this->setRedirectToSlides();
 }
開發者ID:DanyCan,項目名稱:wisten.github.io,代碼行數:5,代碼來源:items.php

示例13: saveorder

 /**
  * Logic to saver order of multiple categories at once
  *
  * @access public
  * @return void
  * @since 1.0
  */
 function saveorder()
 {
     // Check for request forgeries
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     // Get the arrays from the Request
     $order = JRequest::getVar('order', null, 'post', 'array');
     $originalOrder = explode(',', JRequest::getString('original_order_values'));
     // Make sure something has changed
     if (!($order === $originalOrder)) {
         parent::saveorder();
     } else {
         // Nothing to reorder
         $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list, false), 'Nothing to reorder');
     }
     // clean cache
     $cache = JFactory::getCache('com_flexicontent');
     $cache->clean();
     $catscache = JFactory::getCache('com_flexicontent_cats');
     $catscache->clean();
 }
開發者ID:kosmosby,項目名稱:medicine-prof,代碼行數:27,代碼來源:categories.php

示例14: saveorder

 /**
  * Method to save the submitted ordering values for records.
  *
  * Overrides JControllerAdmin::saveorder to check the core.admin permission.
  *
  * @since	1.6
  */
 public function saveorder()
 {
     if (!User::authorise('core.admin', $this->option)) {
         App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR'));
         exit;
     }
     return parent::saveorder();
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:15,代碼來源:groups.php

示例15: saveorder

 function saveorder()
 {
     parent::saveorder();
     $this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid'));
 }
開發者ID:sansandeep143,項目名稱:av,代碼行數:5,代碼來源:files.php


注:本文中的JControllerAdmin::saveorder方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。