PHP Class Contao\ContentElement

Inheritance: extends Frontend
Mostra file Open project: contao/core-bundle Class Usage Examples

Protected Properties

Property Type Description
$arrData array Current record
$arrProcessed array Processed folders
$arrStyle array Style array
$objModel ContentModel Model
$strColumn string Column
$strTemplate string Template

Public Methods

Method Description
__construct ( ContentModel $objElement, string $strColumn = 'main' ) Initialize the object
__get ( string $strKey ) : mixed Return an object property
__isset ( string $strKey ) : boolean Check whether a property is set
__set ( string $strKey, mixed $varValue ) Set an object property
findClass ( string $strName ) : string Find a content element in the TL_CTE array and return the class name
generate ( ) : string Parse the template
getModel ( ) : Model Return the model

Protected Methods

Method Description
compile ( ) Compile the content element

Method Details

__construct() public method

Initialize the object
public __construct ( ContentModel $objElement, string $strColumn = 'main' )
$objElement ContentModel
$strColumn string

__get() public method

Return an object property
public __get ( string $strKey ) : mixed
$strKey string
return mixed

__isset() public method

Check whether a property is set
public __isset ( string $strKey ) : boolean
$strKey string
return boolean

__set() public method

Set an object property
public __set ( string $strKey, mixed $varValue )
$strKey string
$varValue mixed

compile() abstract protected method

Compile the content element
abstract protected compile ( )

findClass() public static method

Find a content element in the TL_CTE array and return the class name
public static findClass ( string $strName ) : string
$strName string The content element name
return string The class name

generate() public method

Parse the template
public generate ( ) : string
return string

getModel() public method

Return the model
public getModel ( ) : Model
return Model

Property Details

$arrData protected_oe property

Current record
protected array $arrData
return array

$arrProcessed protected_oe property

Processed folders
protected array $arrProcessed
return array

$arrStyle protected_oe property

Style array
protected array $arrStyle
return array

$objModel protected_oe property

Model
protected ContentModel,contao $objModel
return ContentModel

$strColumn protected_oe property

Column
protected string $strColumn
return string

$strTemplate protected_oe property

Template
protected string $strTemplate
return string