/**
  * Display
  *
  * @return  void
  */
 public function displayTask()
 {
     // Set the default view name and format from the Request.
     $vName = Request::getCmd('view', 'cache');
     // Get and render the view.
     switch ($vName) {
         case 'purge':
             break;
         case 'cache':
         default:
             $this->view->model = $this->model;
             $this->view->data = $this->model->getData();
             $this->view->client = $this->model->getClient();
             $this->view->pagination = $this->model->getPagination();
             $this->view->state = $this->model->getState();
             // Check for errors.
             if (count($errors = $this->model->getErrors())) {
                 throw new Exception(implode("\n", $errors), 500);
             }
             break;
     }
     Helper::addSubmenu($vName);
     $this->view->setName($vName)->setLayout('default')->display();
 }
Exemple #2
0
}
Toolbar::divider();
Toolbar::help('clear');
$listOrder = $this->escape($this->state->get('list.ordering'));
$listDirn = $this->escape($this->state->get('list.direction'));
?>

<form action="<?php 
echo Route::url('index.php?option=com_cache');
?>
" method="post" name="adminForm" id="adminForm">
	<fieldset id="filter-bar">
		<div class="filter-select">
			<select name="filter_client_id" class="inputbox" onchange="this.form.submit()">
				<?php 
foreach (\Components\Cache\Helpers\Cache::getClientOptions() as $option) {
    ?>
					<option value="<?php 
    echo $option->value;
    ?>
"<?php 
    if ($option->value == $this->state->get('clientId')) {
        echo ' selected="selected"';
    }
    ?>
><?php 
    echo $this->escape($option->text);
    ?>
</option>
				<?php 
}