Class THtmlWriter
THtmlWriter class
THtmlWriter is a writer that renders valid XHTML outputs. It provides functions to render tags, their attributes and stylesheet fields. Attribute and stylesheet values will be automatically HTML-encoded if they require so. For example, the 'value' attribute in an input tag will be encoded.
A common usage of THtmlWriter is as the following sequence:
$writer->addAttribute($name1,$value1); $writer->addAttribute($name2,$value2); $writer->renderBeginTag($tagName); // ... render contents enclosed within the tag here $writer->renderEndTag();
Make sure each invocation of THtmlWriter::renderBeginTag()
is accompanied with a
THtmlWriter::renderEndTag()
and they are properly nested, like nesting tags in HTML and
XHTML.
- TComponent
-
TApplicationComponent
-
THtmlWriter implements ITextWriter
Package: System\Web\UI
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/THtmlWriter.php
Copyright: Copyright © 2005-2014 PradoSoft
License: http://www.pradosoft.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 3.0
Located at Web/UI/THtmlWriter.php
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
getApplication(),
getRequest(),
getResponse(),
getService(),
getSession(),
getUser(),
publishAsset(),
publishFilePath()
|
GLOBAL_RAISE_EVENT_LISTENER
|