public function addPaginator($rows = 25, $options = null, $class = null)
    {
        // add only once
        // @todo decide, maybe we should destroy and recreate to keep last one
        if ($this->paginator) {
            return $this->paginator;
        }

        $this->paginator = $this->add($class ?: $this->paginator_class, $options);
        /** @type Paginator $this->paginator */
        $this->paginator->setRowsPerPage($rows);

        return $this->paginator;
    }
public function addPaginator($rows = 25, $options = null, $class = null)
    {
        // add only once
        // @todo decide, maybe we should destroy and recreate to keep last one
        if ($this->paginator) {
            return $this->paginator;
        }

        $this->paginator = $this->add($class ?: $this->paginator_class, $options);
        /** @type Paginator $this->paginator */
        $this->paginator->setRowsPerPage($rows);

        return $this->paginator;
    }
public function addPaginator ( $ rows = 25 , $ options = null , $ class = null ) { // add only once // @todo decide, maybe we should destroy and recreate to keep last one if ( $ this -> paginator ) { return $ this -> paginator ; } $ this -> paginator = $ this -> add ( $ class ? : $ this -> paginator_class , $ options ) ; /** @type Paginator $this->paginator */ $ this -> paginator -> setRowsPerPage ( $ rows ) ; return $ this -> paginator ; }
Adds paginator to the grid.

@param int    $rows    row count per page
@param array  $options optional options array
@param string $class   optional paginator class name

@return Paginator

@todo decide, maybe we need to add $spot optional template spot like in addQuickSearch()
Adds paginator to the grid .