Exemplo n.º 1
0
    /**
     * Replaces the limiter by a simple count if the records are displayed as a tree.
     */
    protected function render_controls()
    {
        if ($this->mode !== 'tree') {
            return parent::render_controls();
        }
        $count = $this->t(':count pages', array(':count' => $this->count));
        # A `SELECT` element is added to have the same height as the jobs element.
        return <<<EOT
<div class="listview-controls">
\t{$count}
</div>
EOT;
    }