本文整理匯總了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');
}
}