本文整理汇总了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();
}
示例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();
}
示例3: execute
/**
* Executes a task
*
* @return void
*/
public function execute()
{
$this->registerTask('add', 'edit');
$this->registerTask('orderup', 'reorder');
$this->registerTask('orderdown', 'reorder');
parent::execute();
}
示例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();
}
示例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');
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}