The order of the inclusion of the decoration into the page goes like this:
* PreTagTemplate
* PreTagText
* TWebControl Open Tag Rendered
* PreContentsText
* PreContentsTemplate
* TWebControl Children Rendered
* PostContentsTemplate
* PostContentsText
* TWebControl CloseTag Rendered
* PostTagText
* PostTagTemplate
Show file
Open project: pradosoft/prado
Method | Description | |
---|---|---|
__construct ( $control, $onlyinternal = false ) | Constructor. | |
ensureTemplateDecoration ( $sender = null, $param = null ) : boolean | This method places the templates around the open and close tag. This takes a parameter which is to specify the control to get the outer template decoration. If no outer control is specified | |
getPostContentsTemplate ( ) : TTemplate | null | ||
getPostContentsText ( ) : string | ||
getPostTagTemplate ( ) : TTemplate | null | ||
getPostTagText ( ) : string | ||
getPreContentsTemplate ( ) : TTemplate | null | ||
getPreContentsText ( ) : string | ||
getPreTagTemplate ( ) : TTemplate | null | ||
getPreTagText ( ) : string | ||
getUseState ( ) : boolean | ||
instantiate ( $outercontrol = null ) | this is a framework call. The Text decoration can't influence the object hierarchy because they are rendered into into the writer directly. | |
renderPostContentsText ( $writer ) | This method places the post contents text into the {@link TTextWriter} | |
renderPostTagText ( $writer ) | This method places the post tag text into the {@link TTextWriter} | |
renderPreContentsText ( $writer ) | This method places the pre contents text into the {@link TTextWriter} | |
renderPreTagText ( $writer ) | This method places the pre tag text into the {@link TTextWriter} | |
setPostContentsTemplate ( $value ) | ||
setPostContentsText ( $value ) | ||
setPostTagTemplate ( $value ) | ||
setPostTagText ( $value ) | ||
setPreContentsTemplate ( $value ) | ||
setPreContentsText ( $value ) | ||
setPreTagTemplate ( $value ) | ||
setPreTagText ( $value ) | ||
setUseState ( boolean $value ) |
public __construct ( $control, $onlyinternal = false ) |
public ensureTemplateDecoration ( $sender = null, $param = null ) : boolean | ||
return | boolean | returns true if the template decorations have been added |
public getPostContentsTemplate ( ) : TTemplate | null | ||
return | TTemplate | null | the template before the close tag in the TWebControl. Defaults to null. |
public getPostContentsText ( ) : string | ||
return | string | the text before the close tag in the TWebControl |
public getPostTagTemplate ( ) : TTemplate | null | ||
return | TTemplate | null | the template after the close tag in the TWebControl. Defaults to null. |
public getPostTagText ( ) : string | ||
return | string | the text before the close tag in the TWebControl |
public getPreContentsTemplate ( ) : TTemplate | null | ||
return | TTemplate | null | the template after the open tag in the TWebControl. Defaults to null. |
public getPreContentsText ( ) : string | ||
return | string | the text after the open tag in the TWebControl |
public getPreTagTemplate ( ) : TTemplate | null | ||
return | TTemplate | null | the template before the open tag in the TWebControl. Defaults to null. |
public getPreTagText ( ) : string | ||
return | string | gets the text before the open tag in the TWebControl |
public getUseState ( ) : boolean | ||
return | boolean | if the templates in this decoration need state. This defaults to false |
public instantiate ( $outercontrol = null ) |
public renderPostContentsText ( $writer ) |
public renderPostTagText ( $writer ) |
public renderPreContentsText ( $writer ) |
public renderPreTagText ( $writer ) |
public setUseState ( boolean $value ) | ||
$value | boolean | true to tell the decoration that the templates need state and should be placed in a control step before the state is saved. |