src/articles/classes/Controller/Admin/Content.php
protected function actionIndex(Eresus_CMS_Request $request)
    {
        /** @var Articles $plugin */
        $plugin = $this->getPlugin();

        $table = ORM::getTable($this->getPlugin(), 'Article');
        $provider = new ORM_UI_List_DataProvider($table);
        $provider->filterInclude('section', $request->query->getInt('section'));
        $provider->orderBy($plugin->settings['listSortMode'], $plugin->settings['listSortDesc']);

        $list = new UI_List($this->getPlugin(), $provider);
        $list->setPageSize($this->getPlugin()->settings['itemsPerPage']);

        $currentPage = $request->query->has('page') ? $request->query->getInt('page') : 1;
        $list->setPage($currentPage);

        $tmpl = $this->getPlugin()->templates()->admin('ArticleList.html');
        $html = $tmpl->compile(array('list' => $list, 'settings' => $plugin->settings));
        return $html;
    }
protected function actionIndex(Eresus_CMS_Request $request)
    {
        /** @var Articles $plugin */
        $plugin = $this->getPlugin();

        $table = ORM::getTable($this->getPlugin(), 'Article');
        $provider = new ORM_UI_List_DataProvider($table);
        $provider->filterInclude('section', $request->query->getInt('section'));
        $provider->orderBy($plugin->settings['listSortMode'], $plugin->settings['listSortDesc']);

        $list = new UI_List($this->getPlugin(), $provider);
        $list->setPageSize($this->getPlugin()->settings['itemsPerPage']);

        $currentPage = $request->query->has('page') ? $request->query->getInt('page') : 1;
        $list->setPage($currentPage);

        $tmpl = $this->getPlugin()->templates()->admin('ArticleList.html');
        $html = $tmpl->compile(array('list' => $list, 'settings' => $plugin->settings));
        return $html;
    }
Возвращает разметку списка статей

@param Eresus_CMS_Request $request

@return string

@since 3.01