public function getPaginator() { if ($this->paginator === NULL) { $this->paginator = new Paginator(); $this->paginator->setItemsPerPage($this->getPerPage())->setGrid($this); } return $this->paginator; }