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


PHP JControllerAdmin::checkin方法代码示例

本文整理汇总了PHP中JControllerAdmin::checkin方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerAdmin::checkin方法的具体用法?PHP JControllerAdmin::checkin怎么用?PHP JControllerAdmin::checkin使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在JControllerAdmin的用法示例。


在下文中一共展示了JControllerAdmin::checkin方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkin

 public function checkin()
 {
     parent::checkin();
     if (!$this->getError()) {
         $app = JFactory::getApplication();
         $link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . (int) $app->input->get('filter_project') . '&filter_album=' . (int) $app->input->get('filter_album') . '&id=' . (int) $app->input->get('id') . '&revision=' . (int) $app->input->get('revision');
         $this->setRedirect(JRoute::_($link, false));
         return true;
     }
     return false;
 }
开发者ID:MrJookie,项目名称:pm,代码行数:11,代码来源:revisions.php

示例2: checkin

 public function checkin()
 {
     $app = JFactory::getApplication();
     parent::checkin();
     $rootCat = JUDirectoryFrontHelperCategory::getRootCategory();
     $cat_id = $app->input->getInt('cat_id', $rootCat->id);
     if ($app->input->getString('view', 'listcats') == 'treestructure') {
         $this->setRedirect("index.php?option=com_judirectory&view=treestructure");
     } else {
         $this->setRedirect("index.php?option=com_judirectory&view={$this->view_list}&cat_id={$cat_id}");
     }
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:12,代码来源:categories.php

示例3: checkin

 /**
  * Check in of one or more records.
  *
  * Overrides JControllerAdmin::checkin to check the core.admin permission.
  *
  * @since   1.6
  */
 public function checkin()
 {
     if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
         throw new Exception(JText::_('JERROR_ALERTNOAUTHOR'));
         jexit();
     }
     return parent::checkin();
 }
开发者ID:joomlatools,项目名称:joomla-platform,代码行数:15,代码来源:groups.php

示例4: checkin

 /**
  * Check in of one or more records.
  *
  * Overrides JControllerAdmin::checkin to check the core.admin permission.
  *
  * @since   1.6
  */
 public function checkin()
 {
     if (!JFactory::getUser()->authorise('core.admin', $this->option)) {
         JError::raiseError(500, JText::_('JERROR_ALERTNOAUTHOR'));
         jexit();
     }
     return parent::checkin();
 }
开发者ID:01J,项目名称:topm,代码行数:15,代码来源:groups.php

示例5: checkin

 public function checkin()
 {
     $app = JFactory::getApplication();
     $documentid = $app->input->post->get('documentid', array(), 'array');
     $app->input->post->set('cid', $documentid);
     $_POST['cid'] = $documentid;
     parent::checkin();
     $rootCat = JUDownloadFrontHelperCategory::getRootCategory();
     $cat_id = $app->input->getInt('cat_id', $rootCat->id);
     $this->setRedirect("index.php?option=com_judownload&view={$this->view_list}&cat_id={$cat_id}");
 }
开发者ID:kosmosby,项目名称:medicine-prof,代码行数:11,代码来源:documents.php

示例6: checkin

 public function checkin()
 {
     parent::checkin();
 }
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:4,代码来源:items.php

示例7: checkin

 /**
  * Check in of one or more records.
  *
  * Overrides JControllerAdmin::checkin to redirect to URL with extension.
  *
  * @return  boolean  True on success
  *
  * @since   3.6.0
  */
 public function checkin()
 {
     // Process parent checkin method.
     $result = parent::checkin();
     // Overrride the redirect Uri.
     $redirectUri = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&extension=' . $this->input->get('extension', '', 'CMD');
     $this->setRedirect(JRoute::_($redirectUri, false), $this->message, $this->messageType);
     return $result;
 }
开发者ID:adjaika,项目名称:J3Base,代码行数:18,代码来源:categories.php

示例8: checkin

 /**
  * Check in of one or more records.
  *
  * Overrides JControllerAdmin::checkin to check the core.admin permission.
  *
  * @since	1.6
  */
 public function checkin()
 {
     if (!User::authorise('core.admin', $this->option)) {
         App::abort(500, Lang::txt('JERROR_ALERTNOAUTHOR'));
         exit;
     }
     return parent::checkin();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:15,代码来源:groups.php


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