PHP Class Contao\ContentTeaser

Inheritance: extends ContentElement
显示文件 Open project: contao/core-bundle

Protected Properties

Property Type Description
$objArticle ArticleModel Article object
$objParent PageModel Parent page object
$strTemplate string Template

Public Methods

Method Description
generate ( ) : string Check whether the target page and the article are published

Protected Methods

Method Description
compile ( ) Generate the content element

Method Details

compile() protected method

Generate the content element
protected compile ( )

generate() public method

Check whether the target page and the article are published
public generate ( ) : string
return string

Property Details

$objArticle protected_oe property

Article object
protected ArticleModel,contao $objArticle
return ArticleModel

$objParent protected_oe property

Parent page object
protected PageModel,contao $objParent
return PageModel

$strTemplate protected_oe property

Template
protected string $strTemplate
return string