PHP Class Contao\ContentElement

Inheritance: extends Frontend
Afficher le fichier Open project: contao/core-bundle Class Usage Examples

Protected Properties

Свойство Type Description
$arrData array Current record
$arrProcessed array Processed folders
$arrStyle array Style array
$objModel ContentModel Model
$strColumn string Column
$strTemplate string Template

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
compile ( ) Compile the content element

Method Details

__construct() public méthode

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

__get() public méthode

Return an object property
public __get ( string $strKey ) : mixed
$strKey string
Résultat mixed

__isset() public méthode

Check whether a property is set
public __isset ( string $strKey ) : boolean
$strKey string
Résultat boolean

__set() public méthode

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

compile() abstract protected méthode

Compile the content element
abstract protected compile ( )

findClass() public static méthode

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
Résultat string The class name

generate() public méthode

Parse the template
public generate ( ) : string
Résultat string

getModel() public méthode

Return the model
public getModel ( ) : Model
Résultat Model

Property Details

$arrData protected_oe property

Current record
protected array $arrData
Résultat array

$arrProcessed protected_oe property

Processed folders
protected array $arrProcessed
Résultat array

$arrStyle protected_oe property

Style array
protected array $arrStyle
Résultat array

$objModel protected_oe property

Model
protected ContentModel,contao $objModel
Résultat ContentModel

$strColumn protected_oe property

Column
protected string $strColumn
Résultat string

$strTemplate protected_oe property

Template
protected string $strTemplate
Résultat string