/** * Display * * @return void */ public function displayTask() { // Set the default view name and format from the Request. $vName = Request::getCmd('view', 'cache'); $data = $this->model->data(); $client = $this->model->client(); $pagination = $this->model->pagination(); $state = $this->model->state(); // Check for errors. if (count($errors = $this->model->getErrors())) { App::abort(500, implode("\n", $errors)); } Helper::addSubmenu($vName); $this->view->set('data', $data)->set('client', $client)->set('state', $state)->set('pagination', $pagination)->setLayout($vName)->display(); }
} 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\Helper::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 }