PHP 클래스 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.
부터: 3.1.8
저자: Schlaue-Kids.net ([email protected])
저자: Kyle Caine
상속: extends TTemplateControl
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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.

메소드 상세

createChildControls() 공개 메소드

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
리턴 void

doCreateChildControlsFor() 공개 메소드

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
리턴 void

doTemplateForClass() 공개 메소드

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

getIsSourceTemplateControl() 공개 메소드

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