PHP Class Contao\Hybrid

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

Protected Properties

Property Type Description
$arrData array Current record
$arrStyle array Style array
$objModel Model Model
$objParent Model | object Parent element
$strColumn string Column
$strKey string Key
$strTable string Table
$strTemplate string Template

Public Methods

Method Description
__construct ( ContentModel | ModuleModel | FormModel $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
generate ( ) : string Parse the template
getModel ( ) : Model Return the model
getParent ( ) : object Return the parent object

Protected Methods

Method Description
compile ( ) Compile the current element

Method Details

__construct() public method

Initialize the object
public __construct ( ContentModel | ModuleModel | FormModel $objElement, string $strColumn = 'main' )
$objElement ContentModel | ModuleModel | FormModel
$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 current element
abstract protected compile ( )

generate() public method

Parse the template
public generate ( ) : string
return string

getModel() public method

Return the model
public getModel ( ) : Model
return Model

getParent() public method

Return the parent object
public getParent ( ) : object
return object

Property Details

$arrData protected property

Current record
protected array $arrData
return array

$arrStyle protected property

Style array
protected array $arrStyle
return array

$objModel protected property

Model
protected Model,contao $objModel
return Model

$objParent protected property

Parent element
protected Model,contao|object $objParent
return Model | object

$strColumn protected property

Column
protected string $strColumn
return string

$strKey protected property

Key
protected string $strKey
return string

$strTable protected property

Table
protected string $strTable
return string

$strTemplate protected property

Template
protected string $strTemplate
return string