Core/Helper/Pagination/Pagination.php
public function getData($data = []) {
        for ($i = ((($this->_byPage * $this->_currentPage) - $this->_byPage)); $i <= (($this->_byPage * $this->_currentPage) - 1); $i++) {
            if (isset($data[$i])) {
                array_push($this->_data, $data[$i]);
            }
        }

        return $this->_data;
    }
public function getData($data = []) {
        for ($i = ((($this->_byPage * $this->_currentPage) - $this->_byPage)); $i <= (($this->_byPage * $this->_currentPage) - 1); $i++) {
            if (isset($data[$i])) {
                array_push($this->_data, $data[$i]);
            }
        }

        return $this->_data;
    }
public function getData ( $ data = [ ] ) { for ( $ i = ( ( ( $ this -> _byPage * $ this -> _currentPage ) - $ this -> _byPage ) ) ; $ i <= ( ( $ this -> _byPage * $ this -> _currentPage ) - 1 ) ; $ i ++ ) { if ( isset ( $ data [ $ i ] ) ) { array_push ( $ this -> _data , $ data [ $ i ] ) ; } } return $ this -> _data ; }
get the data to be displayed from all data
@access public
@return array
@param $data : array of data
@return array
@since 3.0
@package helper\Pagination
get the data to be displayed from all data