本文整理汇总了PHP中JController::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP JController::execute方法的具体用法?PHP JController::execute怎么用?PHP JController::execute使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JController
的用法示例。
在下文中一共展示了JController::execute方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
function execute($task)
{
if (file_exists(JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php')) {
require JPATH_COMPONENT_ADMINISTRATOR . DS . 'toolbar.countries.php';
}
parent::execute($task);
}
示例2: execute
public function execute($task)
{
if (JDEBUG) {
dumpMessage("JoopoaUserController Execute: " . $task);
}
parent::execute($task);
}
示例3: execute
public function execute($task)
{
if (JDEBUG) {
dumpMessage("JoopoaController Execute: " . $task);
}
JToolBarHelper::preferences('com_joopoa', '300', '650');
parent::execute($task);
}
示例4: execute
public function execute($task)
{
parent::execute($task);
//if error just return
if ($this->getErrors()) {
return;
}
//fire event to update editor
$this->updateEditor($this->getTask(), $this->event_args);
}
示例5: execute
function execute($task)
{
if (strpos($task, '.') !== FALSE) {
$task = explode('.', $task);
$task = $task[1];
}
if (class_exists($this->getClassName('toolbar')) && is_callable(array($this->getClassName('toolbar'), 'display'))) {
call_user_func(array($this->getClassName('toolbar'), 'display'), $task);
}
return parent::execute($task);
}
示例6: execute
public function execute($task)
{
$this->_task = $task;
// Set _task before beforeExecute
if ($this->beforeExecute($task)) {
parent::execute($task);
} else {
if (empty($this->_redirect)) {
JofeApplication::enqueueMessage('Error happened in processing ' . $task . '.', 'error');
$this->setRedirect(JRoute::_('/'));
}
}
}
示例7: execute
/**
* Overload the parent controller method to add a check for configuration variables
* when a task has been provided
*
* @param String $task Task to perform
* @return Boolean True if successful
* @access public
* @since 1.5
*/
function execute($task)
{
global $mainframe;
// Sanity check
if ( $task && ( $task != 'lang' ) && ( $task != 'removedir' ) )
{
/**
* To get past this point, a cookietest must be carried in the user's state.
* If the state is not set, then cookies are probably disabled.
**/
$goodEnoughForMe = $mainframe->getUserState('application.cookietest');
if ( ! $goodEnoughForMe )
{
$model =& $this->getModel();
$model->setError(JText::_('WARNCOOKIESNOTENABLED'));
$view =& $this->getView();
$view->error();
return false;
}
}
else
{
// Zilch the application registry - start from scratch
$session =& JFactory::getSession();
$registry =& $session->get('registry');
$registry->makeNameSpace('application');
// Set the cookie test seed
$mainframe->setUserState('application.cookietest', 1);
}
parent::execute($task);
}
示例8: execute
function execute($task)
{
$this->_task = $task;
$pattern = '/^switchOff/';
if (preg_match($pattern, $task)) {
$this->registerTask($task, 'multidobool');
}
$pattern = '/^switchOn/';
if (preg_match($pattern, $task)) {
$this->registerTask($task, 'multidobool');
}
//let the task execute in controller
//if task have failed, simply return and do not go to view
if (parent::execute($task) === false) {
return false;
}
if (JFactory::getApplication()->isAdmin() == true) {
include_once XIPT_ADMIN_PATH_VIEWS . DS . 'cpanel' . DS . 'tmpl' . DS . 'default_footermenu.php';
}
}