PHP Class Prado\Web\UI\TTemplateControlInheritable

TTemplateControlInheritable is an extension to the base class for all controls that use templates. By default, a control template is assumed to be in a file under the same directory with the control class file. They have the same file name and different extension name. For template file, the extension name is ".tpl". If a TTemplateControlInheritable is inherited it uses the base class template unless the inheriting control defines an own.
Since: 3.1.8
Author: Schlaue-Kids.net ([email protected])
Author: Kyle Caine
Inheritance: extends TTemplateControl
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
createChildControls ( ) : void Creates child controls.
doCreateChildControlsFor ( string $parentClass ) : void This method creates the cild controls for the given class
doTemplateForClass ( $parentClass ) : void This method creates the template object for the given class
getIsSourceTemplateControl ( ) : boolean A source template control loads its template from external storage, such as file, db, rather than from within another template.

Method Details

createChildControls() public méthode

This method is overridden to load and instantiate control template. This method should only be used by framework and control developers. Uses the controls template if available or the base class template otherwise.
public createChildControls ( ) : void
Résultat void

doCreateChildControlsFor() public méthode

This method creates the cild controls for the given class
public doCreateChildControlsFor ( string $parentClass ) : void
$parentClass string The class to generate the child controls for
Résultat void

doTemplateForClass() public méthode

This method creates the template object for the given class
public doTemplateForClass ( $parentClass ) : void
Résultat void

getIsSourceTemplateControl() public méthode

A source template control loads its template from external storage, such as file, db, rather than from within another template.
public getIsSourceTemplateControl ( ) : boolean
Résultat boolean whether the current control is a source template control