PHP 클래스 Contao\DataContainer

Provide methods to handle data container arrays.
상속: extends Backend
파일 보기 프로젝트 열기: contao/core-bundle 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$blnUploadable boolean True if one of the form fields is uploadable
$intId integer Current ID
$noReload boolean Reload the page after the form has been submitted
$objActiveRecord Model | FilesModel Active record
$onsubmit array Form attribute "onsubmit"
$procedure array WHERE clause of the database query
$root array IDs of all root records
$strField string Name of the current field
$strInputName string Name attribute of the current input field
$strPalette string Name of the current palette
$strTable string Name of the current table
$values array Values for the WHERE clause of the database query
$varValue mixed Value of the current field

공개 메소드들

메소드 설명
__get ( string $strKey ) : mixed Return an object property
__set ( string $strKey, mixed $varValue ) Set an object property
getPalette ( ) : string Return the name of the current palette
help ( string $strClass = '' ) : string Return the field explanation as HTML string

보호된 메소드들

메소드 설명
combiner ( array $names ) : array Generate possible palette names from an array by taking the first value and either adding or not adding the following values
generateButtons ( array $arrRow, string $strTable, array $arrRootIds = [], boolean $blnCircularReference = false, array $arrChildRecordIds = null, string $strPrevious = null, string $strNext = null ) : string Compile buttons from the table configuration array and return them as HTML
generateGlobalButtons ( ) : string Compile global buttons from the table configuration array and return them as HTML
row ( string $strPalette = null ) : string Render a row of a box and return it as HTML string
save ( mixed $varValue ) Save the current value
switchToEdit ( integer $id ) : string Return a query string that switches into edit mode

메소드 상세

__get() 공개 메소드

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

__set() 공개 메소드

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

combiner() 보호된 메소드

Generate possible palette names from an array by taking the first value and either adding or not adding the following values
protected combiner ( array $names ) : array
$names array
리턴 array

generateButtons() 보호된 메소드

Compile buttons from the table configuration array and return them as HTML
protected generateButtons ( array $arrRow, string $strTable, array $arrRootIds = [], boolean $blnCircularReference = false, array $arrChildRecordIds = null, string $strPrevious = null, string $strNext = null ) : string
$arrRow array
$strTable string
$arrRootIds array
$blnCircularReference boolean
$arrChildRecordIds array
$strPrevious string
$strNext string
리턴 string

generateGlobalButtons() 보호된 메소드

Compile global buttons from the table configuration array and return them as HTML
protected generateGlobalButtons ( ) : string
리턴 string

getPalette() 추상적인 공개 메소드

Return the name of the current palette
abstract public getPalette ( ) : string
리턴 string

help() 공개 메소드

Return the field explanation as HTML string
public help ( string $strClass = '' ) : string
$strClass string
리턴 string

row() 보호된 메소드

Render a row of a box and return it as HTML string
protected row ( string $strPalette = null ) : string
$strPalette string
리턴 string

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

Save the current value
abstract protected save ( mixed $varValue )
$varValue mixed

switchToEdit() 보호된 메소드

Return a query string that switches into edit mode
protected switchToEdit ( integer $id ) : string
$id integer
리턴 string

프로퍼티 상세

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

True if one of the form fields is uploadable
protected bool $blnUploadable
리턴 boolean

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

Current ID
protected int $intId
리턴 integer

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

Reload the page after the form has been submitted
protected bool $noReload
리턴 boolean

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

Active record
protected Model,contao|FilesModel,contao $objActiveRecord
리턴 Model | FilesModel

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

Form attribute "onsubmit"
protected array $onsubmit
리턴 array

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

WHERE clause of the database query
protected array $procedure
리턴 array

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

IDs of all root records
protected array $root
리턴 array

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

Name of the current field
protected string $strField
리턴 string

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

Name attribute of the current input field
protected string $strInputName
리턴 string

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

Name of the current palette
protected string $strPalette
리턴 string

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

Name of the current table
protected string $strTable
리턴 string

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

Values for the WHERE clause of the database query
protected array $values
리턴 array

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

Value of the current field
protected mixed $varValue
리턴 mixed