Pimcore\Model\Document\Listing::getItems PHP Method

getItems() public method

Returns the listing based on defined offset and limit as parameters.
public getItems ( integer $offset, integer $itemCountPerPage ) : Listing
$offset integer
$itemCountPerPage integer
return Listing
    public function getItems($offset, $itemCountPerPage)
    {
        $this->setOffset($offset);
        $this->setLimit($itemCountPerPage);
        return $this->load();
    }