src/Grid.php
public function setIpp($ipp, $label = 'Item per pages:')
    {
        if (is_array($ipp)) {
            $this->addItemsPerPageSelector($ipp, $label);
            if (@$_GET['ipp']) {
                $this->ipp = $_GET['ipp'];
            } else {
                $this->ipp = $ipp[0];
            }
        } else {
            $this->ipp = $ipp;
        }
    }
public function setIpp($ipp, $label = 'Item per pages:')
    {
        if (is_array($ipp)) {
            $this->addItemsPerPageSelector($ipp, $label);
            if (@$_GET['ipp']) {
                $this->ipp = $_GET['ipp'];
            } else {
                $this->ipp = $ipp[0];
            }
        } else {
            $this->ipp = $ipp;
        }
    }
public function setIpp ( $ ipp , $ label = 'Item per pages:' ) { if ( is_array ( $ ipp ) ) { $ this -> addItemsPerPageSelector ( $ ipp , $ label ) ; if ( @ $ _GET [ 'ipp' ] ) { $ this -> ipp = $ _GET [ 'ipp' ] ; } else { $ this -> ipp = $ ipp [ 0 ] ; } } else { $ this -> ipp = $ ipp ; } }
Set item per page value.

if an array is passed, it will also add an ItemPerPageSelector to paginator.

@param int|array $ipp
@param string    $label

@throws Exception
Set item per page value .