作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:mined-gatec
项目:hubzero-cm
/**
* Executes a task
*
* @return void
*/
public function execute()
{
$this->registerTask('add', 'edit');
$this->registerTask('orderup', 'reorder');
$this->registerTask('orderdown', 'reorder');
parent::execute();
}
作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:sumudini
项目:hubzero-cm
/**
* 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');
}
作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:mined-gatec
项目:hubzero-cm
/**
* Executes a task
*
* @return void
*/
public function execute()
{
// Publishing enabled?
$this->_publishing = Plugin::isEnabled('projects', 'publications') ? 1 : 0;
// Include scripts
$this->_includeScripts();
parent::execute();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:mined-gatec
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}
作者:hubzer
项目:PressForwar
/**
* 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();
}
作者:kevinwoj
项目:hubzero-cm
/**
* 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();
}