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


PHP Component\AdminController類代碼示例

本文整理匯總了PHP中Hubzero\Component\AdminController的典型用法代碼示例。如果您正苦於以下問題:PHP AdminController類的具體用法?PHP AdminController怎麽用?PHP AdminController使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了AdminController類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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


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