当前位置: 首页>>代码示例>>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;未经允许,请勿转载。