Provides methodes to handle articles.
Inheritance: extends Module
コード例 #1
0
ファイル: ModuleArticle.php プロジェクト: AgentCT/tags
 /**
  * Generate the module
  */
 protected function compile()
 {
     \Contao\ModuleArticle::compile();
     $this->Template->show_tags = $this->tags_showtags;
     if ($this->tags_showtags) {
         $this->Template->tags = $this->getTagsForArticle($this->tags_max_tags, $this->tags_relevance, $this->tags_jumpto);
     }
 }
コード例 #2
0
 /**
  * Print an article as PDF and stream it to the browser
  *
  * @param \ModuleModel $objArticle An article object
  *
  * @deprecated Deprecated since Contao 4.0, to be removed in Contao 5.0.
  *             Use ModuleArticle->generatePdf() instead.
  */
 protected function printArticleAsPdf($objArticle)
 {
     trigger_error('Using Controller::printArticleAsPdf() has been deprecated and will no longer work in Contao 5.0. Use ModuleArticle->generatePdf() instead.', E_USER_DEPRECATED);
     $objArticle = new \ModuleArticle($objArticle);
     $objArticle->generatePdf();
 }