PHP Class Contao\ModuleArticle

Provides methodes to handle articles.
Inheritance: extends Module
显示文件 Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$blnNoMarkup boolean No markup
$strTemplate string Template

Public Methods

Method Description
generate ( boolean $blnNoMarkup = false ) : string Check whether the article is published
generatePdf ( ) Print an article as PDF and stream it to the browser

Protected Methods

Method Description
compile ( ) Generate the module

Method Details

compile() protected method

Generate the module
protected compile ( )

generate() public method

Check whether the article is published
public generate ( boolean $blnNoMarkup = false ) : string
$blnNoMarkup boolean
return string

generatePdf() public method

Print an article as PDF and stream it to the browser
public generatePdf ( )

Property Details

$blnNoMarkup protected_oe property

No markup
protected bool $blnNoMarkup
return boolean

$strTemplate protected_oe property

Template
protected string $strTemplate
return string