本文整理汇总了PHP中Hubzero\Component\AdminController::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::execute方法的具体用法?PHP AdminController::execute怎么用?PHP AdminController::execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hubzero\Component\AdminController
的用法示例。
在下文中一共展示了AdminController::execute方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
/**
* Executes a task
*
* @return void
*/
public function execute()
{
$this->registerTask('add', 'edit');
$this->registerTask('orderup', 'reorder');
$this->registerTask('orderdown', 'reorder');
parent::execute();
}
示例2: 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();
}
示例3: 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();
}
示例4: 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();
}
示例5: 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();
}
示例6: 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();
}
示例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
/**
* 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();
}
示例9: 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();
}
示例10: 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();
}
示例11: 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();
}
示例12: 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();
}
示例13: 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();
}
示例14: 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();
}
示例15: 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();
}