PHP Trait Nextras\Forms\Controls\Fragments\TemplateControlTrait

Author: Jan Skrasek
Inheritance: use trait ComponentControlTrait
ファイルを表示 Open project: nextras/forms

Public Properties

Property Type Description
$snippetMode boolean

Protected Properties

Property Type Description
$templateFile string

Public Methods

Method Description
getControl ( ) : Nette\Utils\Html Returns form control
getSnippetId ( $name = NULL ) : string Returns snippet HTML ID.
getTemplate ( ) : Nette\Application\UI\ITemplate
getTemplateFile ( )
invalidateControl ( $snippet = NULL )
isControlInvalid ( $snippet = NULL ) : boolean Is required to repaint the control or its snippet?
redrawControl ( $snippet = NULL, $redraw = TRUE ) : void Forces control or its snippet to repaint.
render ( ) : void Renders form control
setTemplateFactory ( Nette\Application\UI\ITemplateFactory $templateFactory ) ******************* template factory ****************d*g*
setTemplateFile ( $file )
templatePrepareFilters ( $template ) : void Descendant can override this method to customize template compile-time filters.
toString ( ) : string Returns rendered template
validateControl ( $snippet = NULL )

Protected Methods

Method Description
beforeRender ( ) : void Common render method.
createTemplate ( ) : Nette\Application\UI\ITemplate

Method Details

beforeRender() protected method

Common render method.
protected beforeRender ( ) : void
return void

createTemplate() protected method

protected createTemplate ( ) : Nette\Application\UI\ITemplate
return Nette\Application\UI\ITemplate

getControl() public method

Returns form control
public getControl ( ) : Nette\Utils\Html
return Nette\Utils\Html

getSnippetId() public method

Returns snippet HTML ID.
public getSnippetId ( $name = NULL ) : string
return string

getTemplate() public method

public getTemplate ( ) : Nette\Application\UI\ITemplate
return Nette\Application\UI\ITemplate

getTemplateFile() public method

public getTemplateFile ( )

invalidateControl() public method

Deprecation:
public invalidateControl ( $snippet = NULL )

isControlInvalid() public method

Is required to repaint the control or its snippet?
public isControlInvalid ( $snippet = NULL ) : boolean
return boolean

redrawControl() public method

Forces control or its snippet to repaint.
public redrawControl ( $snippet = NULL, $redraw = TRUE ) : void
return void

render() public method

Renders form control
public render ( ) : void
return void

setTemplateFactory() public method

******************* template factory ****************d*g*
public setTemplateFactory ( Nette\Application\UI\ITemplateFactory $templateFactory )
$templateFactory Nette\Application\UI\ITemplateFactory

setTemplateFile() public method

public setTemplateFile ( $file )

templatePrepareFilters() public method

Descendant can override this method to customize template compile-time filters.
public templatePrepareFilters ( $template ) : void
return void

toString() public method

Returns rendered template
public toString ( ) : string
return string

validateControl() public method

Deprecation:
public validateControl ( $snippet = NULL )

Property Details

$snippetMode public_oe property

public bool $snippetMode
return boolean

$templateFile protected_oe property

protected string $templateFile
return string