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
Datei anzeigen Open project: pradosoft/prado

Public Methods

Method 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 method

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
return void

doCreateChildControlsFor() public method

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
return void

doTemplateForClass() public method

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

getIsSourceTemplateControl() public method

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