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


PHP JControllerAdmin::publish方法代码示例

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


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

示例1: publish

 public function publish()
 {
     parent::publish();
     if (!file_exists(JPATH_ADMINISTRATOR . '/components/com_jhackguard/data/.rules_need_update')) {
         file_put_contents(JPATH_ADMINISTRATOR . '/components/com_jhackguard/data/.rules_need_update', "1");
     }
 }
开发者ID:ejailesb,项目名称:repo_empr,代码行数:7,代码来源:inputfilters.php

示例2: publish

 public function publish()
 {
     parent::publish();
     $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

示例3: publish

 /**
  * Method to publish a list of items
  *
  * @return  void
  */
 public function publish()
 {
     parent::publish();
     $project = JRequest::getUInt('filter_project');
     $topic = JRequest::getUInt('filter_topic');
     $link = 'index.php?option=' . $this->option . '&view=' . $this->view_list . '&filter_project=' . $project . '&filter_topic=' . $topic;
     $this->setRedirect(JRoute::_($link, false));
 }
开发者ID:gagnonjeanfrancois,项目名称:Projectfork,代码行数:13,代码来源:replies.php

示例4: publish

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

示例5: publish

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

示例6: publish

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

示例7: publish

 public function publish()
 {
     parent::publish();
     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

示例8: publish

 function publish()
 {
     $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::publish();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:11,代码来源:categories.php

示例9: publish

 public function publish()
 {
     parent::publish();
     $app = JFactory::getApplication();
     $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=listcats&cat_id=" . $cat_id);
     }
 }
开发者ID:ranrolls,项目名称:ras-full-portal,代码行数:12,代码来源:categories.php

示例10: publish

 function publish()
 {
     $cid = JRequest::getVar('cid', array(), '', 'array');
     JArrayHelper::toInteger($cid);
     JFactory::getApplication()->input->post->set('cid', $cid);
     JRequest::setVar('cid', $cid, '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'));
         }
     }
     JRequest::setVar(JRequest::getCmd('formtoken'), 1, 'post');
     parent::publish();
 }
开发者ID:iFactoryDigital,项目名称:gympieradiology,代码行数:15,代码来源:categories.php

示例11: publish

 /**
  * function to publish a single file/multiple files
  *
  */
 function publish()
 {
     parent::publish();
     $this->setRedirect('index.php?option=com_eventgallery&view=files&folderid=' . JRequest::getVar('folderid') . $this->_anchor);
 }
开发者ID:sansandeep143,项目名称:av,代码行数:9,代码来源:files.php

示例12: publish

 public function publish()
 {
     $return = parent::publish();
     $this->setRedirect(JRoute::_('index.php?option=' . $this->option . '&view=' . $this->view_list . '&context=' . $this->input->getCmd('context', 'com_content.article'), false));
     return $return;
 }
开发者ID:beingsane,项目名称:DPFields,代码行数:6,代码来源:fields.php

示例13: publish

 /**
  * Method to publish a list of items
  *
  * @return  void
  *
  */
 public function publish()
 {
     global $jlistConfig;
     require_once JPATH_COMPONENT_SITE . '/helpers/jdownloadshelper.php';
     // Check for request forgeries
     JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
     // Get items to publish from the request.
     $cid = JFactory::getApplication()->input->get('cid', array(), 'array');
     $data = array('publish' => 1, 'unpublish' => 0);
     $task = $this->getTask();
     $state = JArrayHelper::getValue($data, $task, 0, 'int');
     if (empty($cid)) {
         JLog::add(JText::_('JGLOBAL_NO_ITEM_SELECTED'), JLog::WARNING, 'jerror');
         $this->setRedirect(JRoute::_('index.php?option=com_jdownloads&view=downloads', false));
     } else {
         if ($state == 1 && $jlistConfig['use.alphauserpoints']) {
             // load the model
             $model = $this->getModel();
             foreach ($cid as $id) {
                 // load the items data
                 $item = $model->getItem($id);
                 // add the AUP points
                 JDHelper::setAUPPointsUploads($item->submitted_by, $item->file_title);
             }
         }
         parent::publish();
     }
 }
开发者ID:ashanrupasinghe,项目名称:dnp,代码行数:34,代码来源:downloads.php

示例14: publish

 public function publish()
 {
     $app = JFactory::getApplication();
     $documentid = $app->input->post->get('documentid', array(), 'array');
     $app->input->set('cid', $documentid);
     $_POST['cid'] = $documentid;
     parent::publish();
     $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

示例15: publish

 /**
  * set redirect after all functions.
  * 
  */
 public function publish()
 {
     parent::publish();
     $this->setRedirectToSlides();
 }
开发者ID:DanyCan,项目名称:wisten.github.io,代码行数:9,代码来源:items.php


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