public function getItems($offset, $limit, $sort = null)
    {
        $items = [];
        $cnt = count($this->rawData);
        for ($i = $offset; $i < $offset + $limit && $i < $cnt; $i++) {
            $items[] = $this->rawData[$i];
        }

        return $items;
    }
public function getItems($offset, $limit, $sort = null)
    {
        $items = [];
        $cnt = count($this->rawData);
        for ($i = $offset; $i < $offset + $limit && $i < $cnt; $i++) {
            $items[] = $this->rawData[$i];
        }

        return $items;
    }
public function getItems ( $ offset , $ limit , $ sort = null ) { $ items = [ ] ; $ cnt = count ( $ this -> rawData ) ; for ( $ i = $ offset ; $ i < $ offset + $ limit && $ i < $ cnt ; $ i ++ ) { $ items [ ] = $ this -> rawData [ $ i ] ; } return $ items ; }
This method return an collection of items for a page.

@param  integer $offset
@param  integer $limit
@param \Cmf\System\Sort $sort
@return array
This method return an collection of items for a page .