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


PHP JControllerForm::cancel方法代碼示例

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


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

示例1: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  */
 public function cancel($key = null)
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN', true));
     $app = JFactory::getApplication();
     $context = 'com_jhotelreservation.edit.extraoption';
     $result = parent::cancel();
 }
開發者ID:jmangarret,項目名稱:webtuagencia24,代碼行數:14,代碼來源:extraoption.php

示例2: cancel

 /**
  * Override parent cancel method to reset the add module state.
  */
 public function cancel($key = null)
 {
     // Initialise variables.
     $app = JFactory::getApplication();
     parent::cancel();
     $app->setUserState('com_modules.add.module.extension_id', null);
 }
開發者ID:carmerin,項目名稱:cesae-web,代碼行數:10,代碼來源:module.php

示例3: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  */
 public function cancel($key = null)
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $context = 'com_jbusinessdirectory.edit.managecompanyevent';
     $result = parent::cancel();
 }
開發者ID:benji1979,項目名稱:teszt1,代碼行數:14,代碼來源:managecompanyevent.php

示例4: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  Boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     $return = parent::cancel($key);
     // Redirect to the main page.
     $this->setRedirect(JRoute::_('index.php', false));
     return $return;
 }
開發者ID:grlf,項目名稱:eyedock,代碼行數:16,代碼來源:profile.php

示例5: cancel

 /**
  * Method to cancel an edit.
  *
  * @param     string     $key    The name of the primary key of the URL variable.
  *
  * @return    boolean            True if access level checks pass, false otherwise.
  */
 public function cancel($key = 'id')
 {
     $result = parent::cancel($key);
     // Redirect to the return page.
     $this->setRedirect($this->getReturnPage());
     return $result;
 }
開發者ID:gagnonjeanfrancois,項目名稱:Projectfork,代碼行數:14,代碼來源:form.php

示例6: cancel

 /**
  * Override parent cancel method to reset the add module state.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     $app = JFactory::getApplication();
     $result = parent::cancel();
     $app->setUserState('com_modules.add.module.extension_id', null);
     $app->setUserState('com_modules.add.module.params', null);
     return $result;
 }
開發者ID:shoffmann52,項目名稱:install-from-web-server,代碼行數:17,代碼來源:module.php

示例7: cancel

 public function cancel($key = null)
 {
     parent::cancel($key);
     $model = $this->getModel();
     if ($model->getTempId()) {
         $this->setRedirect(JRoute::_('index.php?option=com_rsmembership&view=transactions', false));
     }
 }
開發者ID:JozefAB,項目名稱:qk,代碼行數:8,代碼來源:subscriber.php

示例8: cancel

 /**
  * 
  * cancel the slide save
  */
 public function cancel($key = null)
 {
     //bypass direct saving restrictions
     $context = "{$this->option}.edit.{$this->context}";
     $recordId = JRequest::getInt("id");
     $this->holdEditId($context, $recordId);
     parent::cancel($key);
     $this->setRedirectToSlides();
 }
開發者ID:ashanrupasinghe,項目名稱:slbcv1,代碼行數:13,代碼來源:item.php

示例9: cancel

 /**
  * Override parent cancel method to reset the add module state.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     // Initialise variables.
     $app = JFactory::getApplication();
     $result = parent::cancel();
     $app->setUserState('com_modules.add.module.extension_id', null);
     $app->setUserState('com_modules.add.module.params', null);
     $this->setRedirect(JRoute::_(sprintf('index.php?option=%s&view=modules', RokSprocket_Helper::getRedirectionOption()), false));
     return $result;
 }
開發者ID:atikahmed,項目名稱:joomla-probid,代碼行數:19,代碼來源:module.php

示例10: cancel

 public function cancel($key = null)
 {
     parent::cancel($key = null);
     $app = JFactory::getApplication();
     $rootCat = JUDirectoryFrontHelperCategory::getRootCategory();
     $parent_cat_id = $app->input->getInt('parent_id', $rootCat->id);
     $cat_id = $app->input->getInt('id', 0);
     if ($cat_id) {
         $parent_cat_id = JUDirectoryHelper::getCategoryById($cat_id)->parent_id;
     }
     $this->setRedirect("index.php?option=com_judirectory&view=listcats&cat_id=" . $parent_cat_id);
 }
開發者ID:ranrolls,項目名稱:ras-full-portal,代碼行數:12,代碼來源:category.php

示例11: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
     $app = JFactory::getApplication();
     $context = 'com_menus.edit.item';
     $result = parent::cancel();
     if ($result) {
         // Clear the ancillary data from the session.
         $app->setUserState($context . '.type', null);
         $app->setUserState($context . '.link', null);
     }
 }
開發者ID:01J,項目名稱:skazkipronebo,代碼行數:21,代碼來源:item.php

示例12: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     Session::checkToken() or exit(Lang::txt('JINVALID_TOKEN'));
     // Initialise variables.
     $context = 'com_menus.edit.item';
     $result = parent::cancel();
     if ($result) {
         // Clear the ancillary data from the session.
         User::setState($context . '.type', null);
         User::setState($context . '.link', null);
     }
 }
開發者ID:mined-gatech,項目名稱:hubzero-cms,代碼行數:21,代碼來源:item.php

示例13: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     JRequest::checkToken() or jexit(JText::_('JINVALID_TOKEN', true));
     // Initialise variables.
     $app = JFactory::getApplication();
     $context = 'com_jhotelreservation.edit.room';
     $result = parent::cancel();
     if ($result) {
         // Clear the ancillary data from the session.
         $app->setUserState($context . '.type', null);
         $app->setUserState($context . '.link', null);
     }
 }
開發者ID:jmangarret,項目名稱:webtuagencia24,代碼行數:22,代碼來源:room.php

示例14: cancel

 /**
  * Override parent cancel method to reset the add module state.
  *
  * @param   string $key The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   1.6
  */
 public function cancel($key = null)
 {
     $app = JFactory::getApplication();
     $result = parent::cancel();
     $app->setUserState('com_advancedmodules.add.module.extension_id', null);
     $app->setUserState('com_advancedmodules.add.module.params', null);
     if (!JFactory::getApplication()->isAdmin()) {
         $returnUri = $this->input->post->get('return', null, 'base64');
         $returnUri = !empty($returnUri) ? base64_decode(urldecode($returnUri)) : JUri::base();
         $this->setRedirect($returnUri);
         $this->redirect();
     }
     return $result;
 }
開發者ID:jputz12,項目名稱:OneNow-Vshop,代碼行數:23,代碼來源:module.php

示例15: cancel

 /**
  * Method to cancel an edit.
  *
  * @param   string  $key  The name of the primary key of the URL variable.
  *
  * @return  boolean  True if access level checks pass, false otherwise.
  *
  * @since   12.2
  */
 public function cancel($key = null)
 {
     $result = parent::cancel();
     $data = $this->input->get("jform", array(), "array");
     $view = $data['type'];
     switch ($view) {
         case "":
             $view = $this->view_list;
             break;
         case "component.admin":
         case "component.site":
         case "table.admin":
         case "table.site":
             $view = "component";
             break;
         default:
             break;
     }
     $this->setRedirect(JRoute::_("index.php?option=com_jdeveloper&view=" . $view . "&id=" . $data["item_id"], false));
     return $result;
 }
開發者ID:joshjim27,項目名稱:jobsglobal,代碼行數:30,代碼來源:fileeditor.php


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