Implements interfaces:
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:
Make sure each invocation of renderBeginTag is accompanied with a renderEndTag and they are properly nested, like nesting tags in HTML and XHTML.
- $writer->addAttribute($name1,$value1);
- $writer->addAttribute($name2,$value2);
- $writer->renderBeginTag($tagName);
- // ... render contents enclosed within the tag here
- $writer->renderEndTag();
Located in /Web/UI/THtmlWriter.php (line 39)
TComponent | --TApplicationComponent | --THtmlWriter
Constructor.
Adds an attribute to be rendered.
Adds a list of attributes to be rendered.
Adds a stylesheet attribute to be rendered
Adds a list of stylesheet attributes to be rendered.
Flushes the rendering result.
This will invoke the underlying writer's flush method.
Removes the named attribute from rendering
Removes the named stylesheet attribute from rendering
Renders the openning tag.
Renders the closing tag.
Renders a string.
Renders an HTML break.
Renders a string and appends a newline to it.
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
Inherited From TComponent
TComponent::addParsedObject()
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::createdOnTemplate()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
Documentation generated on Mon, 21 Apr 2008 11:35:08 -0400 by phpDocumentor 1.3.0RC4