setIssue() public method

Set issue.
public setIssue ( integer $issue ) : ArticleList
$issue integer
return ArticleList
コード例 #1
0
ファイル: BlogController.php プロジェクト: nidzix/Newscoop
 public function indexAction()
 {
     $form = new Admin_Form_Blog();
     $section = $this->blogService->getSection($this->user);
     if (empty($section)) {
         $this->_forward('nosection');
         return;
     }
     $request = $this->getRequest();
     if ($request->isPost() && $form->isValid($request->getPost())) {
         $blog = $this->blogService->createBlog($form->title->getValue(), $section);
         $this->_helper->flashMessenger("Article created");
         $this->_helper->redirector->gotoUrl($this->_helper->article->getEditLink($blog));
     }
     $blogConfig = \Zend_Registry::get('container')->getParameter('blog');
     $list = new ArticleList();
     $list->setPublication($section->getPublicationId());
     $list->setIssue($section->getIssueNumber());
     $list->setSection($section->getSectionNumber());
     $list->setLanguage($section->getLanguageId());
     $list->setType($blogConfig['article_type']);
     $this->view->list = $list;
     $this->view->form = $form;
 }
コード例 #2
0
ファイル: index.php プロジェクト: sourcefabric/newscoop
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>
コード例 #3
0
ファイル: index.php プロジェクト: nistormihai/Newscoop
$f_issue_number = Input::Get('f_issue_number', 'int', 0);
$f_section_number = Input::Get('f_section_number', 'int', 0);
$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(getGS('Search'), NULL);

// set up
$articlelist = new ArticleList();
$articlelist->setPublication($f_publication_id);
$articlelist->setIssue($f_issue_id);
$articlelist->setSection($f_section_id);
$articlelist->setLanguage($f_language_id);

$articlelist->setColVis(TRUE);
$articlelist->setSearch(TRUE);

// render
$articlelist->renderFilters();
$articlelist->renderActions();
$articlelist->render();

camp_html_copyright_notice();
?>
</body>
</html>