ZfQueryBasedTable: readability

This commit is contained in:
Thomas Gelf 2017-07-13 11:51:03 +02:00
parent aca6d812f1
commit 0ea443cc84
1 changed files with 3 additions and 5 deletions

View File

@ -182,14 +182,12 @@ abstract class ZfQueryBasedTable extends Table
public function renderTo(ControlsAndContent $controller) public function renderTo(ControlsAndContent $controller)
{ {
$url = $controller->url(); $url = $controller->url();
$c = $controller->content();
$this->initializeOptionalQuickSearch($controller); $this->initializeOptionalQuickSearch($controller);
$controller->content()->add([ $c->add([$this->getPaginator($url), $this]);
$this->getPaginator($url),
$this
]);
if ($url->getParam('format') === 'sql') { if ($url->getParam('format') === 'sql') {
$controller->content()->prepend($this->dumpSqlQuery($url)); $c->prepend($this->dumpSqlQuery($url));
} }
} }
} }