PHP 클래스 Contao\Module

Parent class for front end modules.
상속: extends Frontend
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$arrData array Current record
$arrStyle array Style array
$objModel ModuleModel Model
$strColumn string Column
$strTemplate string Template

공개 메소드들

메소드 설명
__construct ( ModuleModel $objModule, 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 front end module in the FE_MOD array and return the class name
generate ( ) : string Parse the template
getModel ( ) : Model Return the model

보호된 메소드들

메소드 설명
compile ( ) Compile the current element
renderNavigation ( integer $pid, integer $level = 1, string $host = null, string $language = null ) : string Recursively compile the navigation menu and return it as HTML string

메소드 상세

__construct() 공개 메소드

Initialize the object
public __construct ( ModuleModel $objModule, string $strColumn = 'main' )
$objModule ModuleModel
$strColumn string

__get() 공개 메소드

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

__isset() 공개 메소드

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

__set() 공개 메소드

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

compile() 추상적인 보호된 메소드

Compile the current element
abstract protected compile ( )

findClass() 공개 정적인 메소드

Find a front end module in the FE_MOD array and return the class name
public static findClass ( string $strName ) : string
$strName string The front end module name
리턴 string The class name

generate() 공개 메소드

Parse the template
public generate ( ) : string
리턴 string

getModel() 공개 메소드

Return the model
public getModel ( ) : Model
리턴 Model

renderNavigation() 보호된 메소드

Recursively compile the navigation menu and return it as HTML string
protected renderNavigation ( integer $pid, integer $level = 1, string $host = null, string $language = null ) : string
$pid integer
$level integer
$host string
$language string
리턴 string

프로퍼티 상세

$arrData 보호되어 있는 프로퍼티

Current record
protected array $arrData
리턴 array

$arrStyle 보호되어 있는 프로퍼티

Style array
protected array $arrStyle
리턴 array

$objModel 보호되어 있는 프로퍼티

Model
protected ModuleModel,contao $objModel
리턴 ModuleModel

$strColumn 보호되어 있는 프로퍼티

Column
protected string $strColumn
리턴 string

$strTemplate 보호되어 있는 프로퍼티

Template
protected string $strTemplate
리턴 string