Beispiel #1
0
    /**
     * Get a list of items which represents a table rowset
     *
     * Overridden to add itemid to the returned results
     */
    protected function _actionFetch(KModelContext $context)
    {
        $result = parent::_actionFetch($context);

        if ($result && $this->getState()->page)
        {
            foreach ($result as $item) {
                $item->itemid = $this->findPage($item);
            }
        }

        return $result;
    }