private function getPagination()
    {
        # pagination
        $this->pagination['page'] = 1;
        $this->pagination['per_page'] = Utils::findKey($this->options, 'limit', 50);
        $this->pagination['padding'] = Utils::findKey($this->options, 'padding', 0);
        $this->pagination['offset'] = Utils::findKey($this->options, 'offset', 0);

        $this->payload['size'] = $this->pagination['per_page'];
        $this->payload['from'] = $this->pagination['offset'];
    }
private function getPagination()
    {
        # pagination
        $this->pagination['page'] = 1;
        $this->pagination['per_page'] = Utils::findKey($this->options, 'limit', 50);
        $this->pagination['padding'] = Utils::findKey($this->options, 'padding', 0);
        $this->pagination['offset'] = Utils::findKey($this->options, 'offset', 0);

        $this->payload['size'] = $this->pagination['per_page'];
        $this->payload['from'] = $this->pagination['offset'];
    }
private function getPagination ( ) { # pagination $ this -> pagination [ 'page' ] = 1 ; $ this -> pagination [ 'per_page' ] = Utils :: findKey ( $ this -> options , 'limit' , 50 ) ; $ this -> pagination [ 'padding' ] = Utils :: findKey ( $ this -> options , 'padding' , 0 ) ; $ this -> pagination [ 'offset' ] = Utils :: findKey ( $ this -> options , 'offset' , 0 ) ; $ this -> payload [ 'size' ] = $ this -> pagination [ 'per_page' ] ; $ this -> payload [ 'from' ] = $ this -> pagination [ 'offset' ] ; }
Add requested pagination parameters to the payload
Add requested pagination parameters to the payload