本文整理汇总了PHP中JControllerForm::execute方法的典型用法代码示例。如果您正苦于以下问题:PHP JControllerForm::execute方法的具体用法?PHP JControllerForm::execute怎么用?PHP JControllerForm::execute使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类JControllerForm
的用法示例。
在下文中一共展示了JControllerForm::execute方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: execute
/**
* Execute.
*
* @param string $task An optional associative array of configuration settings.
*
* @return void
*
* @since 1.7.0
*/
public function execute($task)
{
if ($task != 'run') {
$task = 'browse';
}
parent::execute($task);
}
示例2: execute
/**
* Override the execute method to clear the modules cache for non-display tasks.
*
* @param string The task to perform.
* @return mixed|false The value returned by the called method, false in error case.
* @since 1.6
*/
public function execute($task)
{
parent::execute($task);
// Clear the component's cache
if ($task != 'edit' && $task != 'cancel' && $task != 'add') {
$cache = JFactory::getCache('com_modules');
$cache->clean();
}
}
示例3: execute
public function execute($task)
{
parent::execute($task);
// Clear the component's cache
if ($task != 'display') {
$cache = JFactory::getCache('com_phocadownload');
$cache->clean();
}
}
示例4: execute
/**
* Proxy for execute.
*
* If the task is an action which modifies data, the component cache is cleared.
*
* @since 1.6
*/
public function execute($task)
{
parent::execute($task);
// Clear the component's cache
if (!in_array($task, array('display', 'edit', 'cancel'))) {
$cache = JFactory::getCache();
$cache->clean('com_templates');
$cache->clean('_system');
}
}
示例5: execute
/**
* Proxy for execute.
*
* If the task is an action which modifies data, the component cache is cleared.
*
* @since 1.6
*/
public function execute($task)
{
switch ($task) {
case 'cancel':
$this->cancel();
break;
case 'save':
$this->save();
break;
default:
parent::execute($task);
break;
}
// Clear the component's cache
if (!in_array($task, array('display', 'edit', 'cancel'))) {
$cache = JFactory::getCache();
$cache->clean('com_gantry');
}
}