[ Index ]
 

Code source de PRADO 3.0.6

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/framework/Web/UI/ -> TTemplateControl.php (sommaire)

TTemplateControl class file.

Author: Qiang Xue <qiang.xue@gmail.com>
Copyright: Copyright © 2005 PradoSoft
License: http://www.pradosoft.com/license/
Version: $Id: TTemplateControl.php 1397 2006-09-07 07:55:53Z wei $
Poids: 244 lignes (7 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

TTemplateControl:: (13 méthodes):
  getTemplate()
  setTemplate()
  getIsSourceTemplateControl()
  getTemplateDirectory()
  loadTemplate()
  createChildControls()
  registerContent()
  registerContentPlaceHolder()
  getMasterClass()
  setMasterClass()
  getMaster()
  injectContent()
  initRecursive()


Classe: TTemplateControl  - X-Ref

TTemplateControl class.
TTemplateControl is 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".

getTemplate()   X-Ref
Returns the template object associated with this control object.

return: ITemplate|null the parsed template, null if none

setTemplate($value)   X-Ref
Sets the parsed template.
Note, the template will be applied to the whole control class.
This method should only be used by framework and control developers.

param: ITemplate the parsed template

getIsSourceTemplateControl()   X-Ref

return: boolean whether this control is a source template control.

getTemplateDirectory()   X-Ref

return: string the directory containing the template. Empty if no template available.

loadTemplate()   X-Ref
Loads the template associated with this control class.

return: ITemplate the parsed template structure

createChildControls()   X-Ref
Creates child controls.
This method is overriden to load and instantiate control template.
This method should only be used by framework and control developers.


registerContent($id,TContent $object)   X-Ref
Registers a content control.

param: string ID of the content
param: TContent

registerContentPlaceHolder($id,TContentPlaceHolder $object)   X-Ref
Registers a content placeholder to this template control.
This method should only be used by framework and control developers.

param: string placeholder ID
param: TContentPlaceHolder placeholder control

getMasterClass()   X-Ref

return: string master class name (in namespace form)

setMasterClass($value)   X-Ref

param: string  master control class name (in namespace form)

getMaster()   X-Ref

return: TTemplateControl|null master control associated with this control, null if none

injectContent($id,$content)   X-Ref
Injects all content controls (and their children) to the corresponding content placeholders.
This method should only be used by framework and control developers.

param: string ID of the content control
param: TContent the content to be injected

initRecursive($namingContainer=null)   X-Ref
Performs the OnInit step for the control and all its child controls.
This method overrides the parent implementation
by ensuring child controls are created first,
and if master class is set, master will be applied.
Only framework developers should use this method.

param: TControl the naming container control



Généré le : Sun Feb 25 21:07:04 2007 par Balluche grâce à PHPXref 0.7