src/orm/classes/UI/List/DataProvider.php
public function getItems($limit = null, $offset = 0)
    {
        $items = array();
        $query = $this->table->createSelectQuery();
        for ($i = 0; $i < count($this->orderBy); $i += 2)
        {
            $field = $this->orderBy[$i];
            $dir = @$this->orderBy[$i + 1] ? ezcQuerySelect::DESC : ezcQuerySelect::ASC;
            $query->orderBy($field, $dir);
        }

        $this->setFilter($query);
        $entities = $this->table->loadFromQuery($query, $limit, $offset);
        foreach ($entities as $entity)
        {
            $items []= new ORM_UI_List_Item($entity);
        }

        return $items;
    }
public function getItems($limit = null, $offset = 0)
    {
        $items = array();
        $query = $this->table->createSelectQuery();
        for ($i = 0; $i < count($this->orderBy); $i += 2)
        {
            $field = $this->orderBy[$i];
            $dir = @$this->orderBy[$i + 1] ? ezcQuerySelect::DESC : ezcQuerySelect::ASC;
            $query->orderBy($field, $dir);
        }

        $this->setFilter($query);
        $entities = $this->table->loadFromQuery($query, $limit, $offset);
        foreach ($entities as $entity)
        {
            $items []= new ORM_UI_List_Item($entity);
        }

        return $items;
    }
Возвращает элементы списка

@param int $limit   максимум элементов, который следует вернуть
@param int $offset  сколько элементов пропустить

@return array

@since 1.00