render() public method

Render table.
public render ( ) : ArticleList
return ArticleList
 public function render()
 {
     $articlelist = new ArticleList(TRUE);
     $articlelist->setItems($this->items);
     $articlelist->setOrderBy('Reads', 'desc');
     if (!$this->isFullscreen()) {
         $articlelist->setHidden('Status');
         $articlelist->setHidden('Comments');
         $articlelist->setHidden('UseMap');
         $articlelist->setHidden('Locations');
         $articlelist->setHidden('PublishDate');
     }
     $articlelist->render();
 }
 public function render()
 {
     $articlelist = new ArticleList(TRUE);
     $articlelist->setItems($this->items);
     if (!$this->isFullscreen()) {
         $articlelist->setHidden('Comments');
         $articlelist->setHidden('Reads');
         $articlelist->setHidden('UseMap');
         $articlelist->setHidden('Locations');
         $articlelist->setHidden('CreateDate');
         $articlelist->setHidden('PublishDate');
     }
     require_once dirname(__FILE__) . '/PendingArticlesWidget.php';
     if ($this instanceof PendingArticlesWidget) {
         $articlelist->setHidden('Preview');
     }
     $articlelist->render();
 }
Beispiel #3
0
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>