public function getData() {
        if ($this->toSort && !empty($this->getOrder())) {
            $this->sortData();
        }

        if ($this->getLimit()) {
            return array_slice($this->data, $this->getOffset(), $this->getLimit());
        } else {
            return $this->data;
        }
    }
public function getData() {
        if ($this->toSort && !empty($this->getOrder())) {
            $this->sortData();
        }

        if ($this->getLimit()) {
            return array_slice($this->data, $this->getOffset(), $this->getLimit());
        } else {
            return $this->data;
        }
    }
public function getData ( ) { if ( $ this -> toSort && ! empty ( $ this -> getOrder ( ) ) ) { $ this -> sortData ( ) ; } if ( $ this -> getLimit ( ) ) { return array_slice ( $ this -> data , $ this -> getOffset ( ) , $ this -> getLimit ( ) ) ; } else { return $ this -> data ; } }
Get the underlying data array.

@return array Returns the data.
Get the underlying data array .