Class \Prado\Web\UI\TTemplateControlInheritable
TTemplateControlInheritable class.
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.
Class hierarchy
- \Prado\Web\UI\TTemplateControlInheritable
- \Prado\Web\UI\TTemplateControl
- \Prado\Web\UI\TCompositeControl implements INamingContainer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Author: Kyle Caine
Since: 3.1.8
public
|
createChildControls() : mixed
Creates child controls.
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
|
doCreateChildControlsFor(string $parentClass) : mixed
This method creates the cild controls for the given class
|
public
|
doTemplateForClass(string $parentClass) : mixed
This method creates the template object for the given class
|
public
|
getIsSourceTemplateControl() : bool
A source template control loads its template from external storage,
such as file, db, rather than from within another template.
|