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

Creates an automatic XML form definition to render a view based on the database fields you've got in the model. This is not designed for production; it's designed to give you a way to quickly add some test data to your component and get started really fast with FOF development.
파일 보기 프로젝트 열기: akeeba/fof 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$container The container we belong to
$saveScaffolding Should I save the scaffolding results?
$strings Language string definitions we need to add to the component's language file
$xml The form we will be returning to the caller

공개 메소드들

메소드 설명
__construct ( Container $c ) Create the scaffolding builder instance
getContainer ( ) : Container Gets the container this builder belongs to
make ( string $requestedFilename, string $viewName ) : string | null Make a new scaffolding document
setStrings ( array $strings ) Set the additional strings array
setXml ( SimpleXMLElement $xml ) Set the XML form document

보호된 메소드들

메소드 설명
applyStrings ( ) Load the strings array in Joomla!'s JLanguage object
saveStrings ( string $targetFilename = null ) Saves the language strings, merged with any old ones, to a Joomla! INI language file
saveXml ( string $requestedFilename, string $viewName ) Save the XML form as a file

메소드 상세

__construct() 공개 메소드

Create the scaffolding builder instance
public __construct ( Container $c )
$c FOF30\Container\Container

applyStrings() 보호된 메소드

Load the strings array in Joomla!'s JLanguage object
protected applyStrings ( )

getContainer() 공개 메소드

Gets the container this builder belongs to
public getContainer ( ) : Container
리턴 FOF30\Container\Container

make() 공개 메소드

Make a new scaffolding document
public make ( string $requestedFilename, string $viewName ) : string | null
$requestedFilename string The requested filename, e.g. form.default.xml
$viewName string The name of the view this form will be used to render
리턴 string | null The XML source or null if we can't make a scaffolding XML

saveStrings() 보호된 메소드

Saves the language strings, merged with any old ones, to a Joomla! INI language file
protected saveStrings ( string $targetFilename = null )
$targetFilename string The full path to the INI file, leave blank for auto-detection

saveXml() 보호된 메소드

Save the XML form as a file
protected saveXml ( string $requestedFilename, string $viewName )
$requestedFilename string The requested filename, e.g. form.default.xml
$viewName string The name of the view this form will be used to render

setStrings() 공개 메소드

Set the additional strings array
public setStrings ( array $strings )
$strings array The strings array to set

setXml() 공개 메소드

Set the XML form document
public setXml ( SimpleXMLElement $xml )
$xml SimpleXMLElement The XML document to set

프로퍼티 상세

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

The container we belong to
protected $container

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

Should I save the scaffolding results?
protected $saveScaffolding

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

Language string definitions we need to add to the component's language file
protected $strings

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

The form we will be returning to the caller
protected $xml