[ Index ]
 

Code source de PRADO 3.0.6

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

title

Body

[fermer]

/framework/Web/UI/WebControls/ -> TLiteral.php (sommaire)

TLiteral class file

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

Définit 1 class

TLiteral:: (5 méthodes):
  getText()
  setText()
  getEncode()
  setEncode()
  render()


Classe: TLiteral  - X-Ref

TLiteral class

TLiteral displays a static text on the Web page.
TLiteral is similar to the TLabel control, except that the TLiteral
control does not have style properties (e.g. BackColor, Font, etc.)
You can programmatically control the text displayed in the control by setting
the {@link setText Text} property. The text displayed may be HTML-encoded
if the {@link setEncode Encode} property is set true (defaults to false).

TLiteral will render the contents enclosed within its component tag
if {@link setText Text} is empty.

Note, if {@link setEncode Encode} is false, make sure {@link setText Text}
does not contain unwanted characters that may bring security vulnerabilities.

getText()   X-Ref

return: string the static text of the TLiteral

setText($value)   X-Ref
Sets the static text of the TLiteral

param: string the text to be set

getEncode()   X-Ref

return: boolean whether the rendered text should be HTML-encoded. Defaults to false.

setEncode($value)   X-Ref

param: boolean  whether the rendered text should be HTML-encoded.

render($writer)   X-Ref
Renders the literal control.

param: THtmlWriter the writer used for the rendering purpose



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