PHP 클래스 FOF30\Factory\Scaffolding\Layout\BaseErector

상속: implements FOF30\Factory\Scaffolding\Layout\ErectorInterface
파일 보기 프로젝트 열기: akeeba/fof

보호된 프로퍼티들

프로퍼티 타입 설명
$builder Builder The Builder which called us
$model FOF30\Model\DataModel The Model attached to the view we're building
$viewName string The name of our view
$xml SimpleXMLElement The XML document we're constructing

공개 메소드들

메소드 설명
__construct ( Builder $parent, DataModel $model, string $viewName ) Construct the erector object
build ( ) : void Erects a scaffold. It then uses the parent's setXml and setStrings to assign the erected scaffold and the additional language strings to the parent which will decide what to do with that.
getFieldType ( string $type ) : array Convert the database type into something we can use

보호된 메소드들

메소드 설명
addString ( string $key, string $value ) Adds a language string definition as long as it doesn't exist in the existing language file.
getFieldLabel ( string $fieldName ) : array Returns the language definition for a field. The hashed array has two keys, label and desc, each one containing the language definition for the label and description of the field. Each definition has the keys key and value with the language key and actual language string.
getLangKeyPrefix ( ) : string Returns the common language key prefix, something like "COM_EXAMPLE_MYVIEW_"
pushResults ( ) Push the form and strings to the builder

메소드 상세

__construct() 공개 메소드

Construct the erector object
public __construct ( Builder $parent, DataModel $model, string $viewName )
$parent Builder The parent builder
$model FOF30\Model\DataModel The model we're erecting a scaffold against
$viewName string The view name for this model

addString() 보호된 메소드

Adds a language string definition as long as it doesn't exist in the existing language file.
protected addString ( string $key, string $value )
$key string The language string key
$value string The language string

build() 공개 메소드

Erects a scaffold. It then uses the parent's setXml and setStrings to assign the erected scaffold and the additional language strings to the parent which will decide what to do with that.
public build ( ) : void
리턴 void

getFieldLabel() 보호된 메소드

Returns the language definition for a field. The hashed array has two keys, label and desc, each one containing the language definition for the label and description of the field. Each definition has the keys key and value with the language key and actual language string.
protected getFieldLabel ( string $fieldName ) : array
$fieldName string
리턴 array

getFieldType() 공개 정적인 메소드

Convert the database type into something we can use
public static getFieldType ( string $type ) : array
$type string The type of the database field
리턴 array

getLangKeyPrefix() 보호된 메소드

Returns the common language key prefix, something like "COM_EXAMPLE_MYVIEW_"
protected getLangKeyPrefix ( ) : string
리턴 string

pushResults() 보호된 메소드

Push the form and strings to the builder
protected pushResults ( )

프로퍼티 상세

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

The Builder which called us
protected Builder,FOF30\Factory\Scaffolding\Layout $builder
리턴 Builder

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

The Model attached to the view we're building
protected DataModel,FOF30\Model $model
리턴 FOF30\Model\DataModel

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

The name of our view
protected string $viewName
리턴 string

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

The XML document we're constructing
protected SimpleXMLElement $xml
리턴 SimpleXMLElement