• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Component\AdminController类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Hubzero\Component\AdminController的典型用法代码示例。如果您正苦于以下问题:PHP AdminController类的具体用法?PHP AdminController怎么用?PHP AdminController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



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

示例1: execute

 /**
  * Determine task and execute it
  *
  * @return  void
  */
 public function execute()
 {
     if (!Permissions::getActions('component')->get('core.admin')) {
         App::redirect(Route::url('index.php?option=com_members', false), Lang::txt('Not authorized'), 'warning');
     }
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:12,代码来源:import.php


示例2: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     Lang::load($this->_option . '.notes', dirname(__DIR__));
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:12,代码来源:notes.php


示例3: execute

 /**
  * Executes a task
  *
  * @return  void
  */
 public function execute()
 {
     $this->registerTask('add', 'edit');
     $this->registerTask('orderup', 'reorder');
     $this->registerTask('orderdown', 'reorder');
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:12,代码来源:licenses.php


示例4: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     $this->banking = Component::params('com_members')->get('bankAccounts');
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:12,代码来源:items.php


示例5: __construct

 /**
  * Constructor
  *
  * @param   array  $config  Optional configurations to be used
  * @return  void
  */
 public function __construct($config = array())
 {
     parent::__construct($config);
     $this->registerTask('unpublish', 'publish');
     $this->registerTask('close', 'open');
     $this->registerTask('apply', 'save');
     $this->registerTask('add', 'edit');
 }
开发者ID:sumudinie,项目名称:hubzero-cms,代码行数:14,代码来源:polls.php


示例6: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     define('WIKI_SUBPAGE_SEPARATOR', $this->config->get('subpage_separator', '/'));
     define('WIKI_MAX_PAGENAME_LENGTH', $this->config->get('max_pagename_length', 100));
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:13,代码来源:revisions.php


示例7: execute

 /**
  * Determine task and execute it
  *
  * @return  void
  */
 public function execute()
 {
     if (!Permissions::getActions('component')->get('core.admin')) {
         App::redirect(Route::url('index.php?option=com_members', false), Lang::txt('Not authorized'), 'warning');
     }
     Lang::load($this->_option . '.export', dirname(__DIR__));
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:13,代码来源:exports.php


示例8: execute

 /**
  * Determine task and execute it
  *
  * @return  void
  */
 public function execute()
 {
     if (!User::authorize('core.manage', $this->_option)) {
         App::redirect(Route::url('index.php?option=' . $this->_option, false));
         return;
     }
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:13,代码来源:membership.php


示例9: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     $this->registerTask('publish', 'state');
     $this->registerTask('unpublish', 'state');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:13,代码来源:applications.php


示例10: execute

 /**
  * Executes a task
  *
  * @return     void
  */
 public function execute()
 {
     // Publishing enabled?
     $this->_publishing = Plugin::isEnabled('projects', 'publications') ? 1 : 0;
     // Include scripts
     $this->_includeScripts();
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:13,代码来源:projects.php


示例11: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     $this->registerTask('accesspublic', 'access');
     $this->registerTask('accessregistered', 'access');
     $this->registerTask('accessspecial', 'access');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:14,代码来源:pages.php


示例12: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     Lang::load($this->_option . '.passwords', dirname(__DIR__));
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     $this->registerTask('orderup', 'order');
     $this->registerTask('orderdown', 'order');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:14,代码来源:passwordrules.php


示例13: execute

 /**
  * Determine task and execute it
  *
  * @return  void
  */
 public function execute()
 {
     if (!User::authorize('core.manage', $this->_option)) {
         App::redirect(Route::url('index.php?option=' . $this->_option, false));
     }
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:14,代码来源:roles.php


示例14: execute

 /**
  * Determines task being called and attempts to execute it
  *
  * @return	void
  */
 public function execute()
 {
     if (!$this->config->get('zones')) {
         App::redirect(Route::url('index.php?option=' . $this->_option, false));
         return;
     }
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:15,代码来源:zones.php


示例15: execute

 /**
  * Determines task being called and attempts to execute it
  *
  * @return	void
  */
 public function execute()
 {
     $task = Request::getVar('task', '');
     $plugin = Request::getVar('plugin', '');
     if ($plugin && $task && $task != 'manage') {
         Request::setVar('action', $task);
         Request::setVar('task', 'manage');
     }
     $this->_folder = 'members';
     parent::execute();
 }
开发者ID:mined-gatech,项目名称:hubzero-cms,代码行数:16,代码来源:plugins.php


示例16: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     Lang::load($this->_option . '.members', dirname(__DIR__));
     $this->registerTask('modal', 'display');
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     $this->registerTask('confirm', 'state');
     $this->registerTask('unconfirm', 'state');
     $this->registerTask('applyprofile', 'saveprofile');
     $this->registerTask('unblock', 'block');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:17,代码来源:members.php


示例17: execute

 /**
  * Executes a task
  *
  * @return  void
  */
 public function execute()
 {
     $this->registerTask('applyDescription', 'saveDescription');
     $this->registerTask('applydescription', 'savedescription');
     $this->registerTask('accesspublic', 'access');
     $this->registerTask('accessprivate', 'access');
     // Publishing enabled?
     $this->_publishing = Plugin::isEnabled('projects', 'publications') ? 1 : 0;
     // Include scripts
     $this->_includeScripts();
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:17,代码来源:projects.php


示例18: execute

 /**
  * Override Execute Method
  *
  * @return 	void
  */
 public function execute()
 {
     // Incoming
     $this->gid = Request::getVar('gid', '');
     // Ensure we have a group ID
     if (!$this->gid) {
         App::redirect(Route::url('index.php?option=' . $this->_option . '&controller=manage', false), Lang::txt('COM_GROUPS_MISSING_ID'), 'error');
         return;
     }
     $this->group = Group::getInstance($this->gid);
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:17,代码来源:modules.php


示例19: execute

 /**
  * Execute a task
  *
  * @return  void
  */
 public function execute()
 {
     // Here we're aliasing the task 'add' to 'edit'. When examing
     // this controller, you should not find any method called 'addTask'.
     // Instead, we're telling the controller to execute the 'edit' task
     // whenever a task of 'add' is called.
     $this->registerTask('add', 'edit');
     $this->registerTask('apply', 'save');
     // Call the parent execute() method. Important! Otherwise, the
     // controller will never actually execute anything.
     parent::execute();
 }
开发者ID:hubzero,项目名称:PressForward,代码行数:17,代码来源:feeds.php


示例20: execute

 /**
  * Determine task and execute it
  *
  * @return  void
  */
 public function execute()
 {
     // Value = 0
     $this->registerTask('unpublish', 'publish');
     // Value = 2
     $this->registerTask('archive', 'publish');
     // Value = -2
     $this->registerTask('trash', 'publish');
     $this->registerTask('apply', 'save');
     $this->registerTask('save2new', 'save');
     $this->registerTask('save2copy', 'save');
     parent::execute();
 }
开发者ID:kevinwojo,项目名称:hubzero-cms,代码行数:18,代码来源:links.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Component\SiteController类代码示例发布时间:2022-05-23
下一篇:
PHP Httpful\Request类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap