Render actions.
public renderActions ( ) : ArticleList | ||
Résultat | ArticleList |
require_once LIBS_DIR . '/ArticleList/ArticleList.php'; $translator = \Zend_Registry::get('container')->getService('translator'); $f_publication_id = Input::Get('f_publication_id', 'int', null); $f_issue_number = Input::Get('f_issue_number', 'int', null); $f_section_number = Input::Get('f_section_number', 'int', null); $f_language_id = Input::Get('f_language_id', 'int', 1); if (isset($_SESSION['f_language_selected'])) { $f_old_language_selected = (int) $_SESSION['f_language_selected']; } else { $f_old_language_selected = 0; } $f_language_selected = (int) camp_session_get('f_language_selected', 0); camp_html_content_top($translator->trans('Search'), NULL); $controller->view->headTitle($translator->trans('Search') . ' - Newscoop Admin', 'SET'); // set up $articlelist = new ArticleList(); $articlelist->setPublication($f_publication_id); $articlelist->setIssue($f_issue_number); $articlelist->setSection($f_section_number); $articlelist->setLanguage($f_language_id); $articlelist->setColVis(TRUE); $articlelist->setSearch(TRUE); // render $articlelist->renderFilters(); $articlelist->renderActions(); $articlelist->render(); camp_html_copyright_notice(); ?> </body> </html>
/** * Render actions. * @return ArticleList */ public function renderActions() { $this->beforeRender(); include dirname(__FILE__) . '/actions.php'; self::$renderActions = true; return $this; }