ZfQueryBasedTable: readability
This commit is contained in:
parent
aca6d812f1
commit
0ea443cc84
|
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue