Controller\Larfi::getList PHP Метод

getList() публичный Метод

public getList ( controller\Base $f3, array $param )
$f3 controller\Base
$param array
    public function getList(\Base $f3, $param)
    {
        $this->response->data['SUBPART'] = 'larfi_list.html';
        $page = \Pagination::findCurrentPage();
        if ($this->response instanceof \View\Backend) {
            // backend view
            $records = $this->resource->paginate($page - 1, 10, null, array('order' => 'id desc'));
        } else {
            // frontend view
            $records = $this->resource->paginate($page - 1, 10, null, array('order' => 'id desc'));
        }
        $this->response->data['content'] = $records;
    }