Implements interfaces:
TTemplate implements PRADO template parsing logic.
A TTemplate object represents a parsed PRADO control template. It can instantiate the template as child controls of a specified control. The template format is like HTML, with the following special tags introduced,
Tags other than the above are not required to be well-formed.
A TTemplate object represents a parsed PRADO template. To instantiate the template for a particular control, call instantiateIn($control), which will create and intialize all components specified in the template and set their parent as $control.
Located in /Web/UI/TTemplateManager.php (line 169)
TComponent | --TApplicationComponent | --TTemplate
Configures a property of a non-control component.
Configures a property/event of a control.
Configures an event for a control.
Configures a simple property for a component.
Configures a subproperty for a component.
Constructor.
The template will be parsed after construction.
Handles template parsing exception.
This method rethrows the exception caught during template parsing. It adjusts the error location by giving out correct error line number and source file.
Instantiates the template.
Content in the template will be instantiated as components and text strings and passed to the specified parent control.
Parses a template string.
This template parser recognizes five types of data: regular string, well-formed component tags, well-formed property tags, directives, and expressions.
The parsing result is returned as an array. Each array element can be of three types:
Note, attribute names are treated as case-insensitive and will be turned into lower cases. Component and directive types are case-sensitive. Container index is the index to the array element that stores the container object. If an object has no container, its container index is -1.
Parses a single attribute.
Parses the attributes of a tag from a string.
Preprocesses the template string by including external templates
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()
Different configurations of component property/event/attribute
'<!--.*?--!>' - template comments
'<!--.*?-->' - HTML comments '<\/?com:([\w\.]+)((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?"|\s*[\w\.]+\s*=\s*<%.*?%>)*)\s*\/?>' - component tags '<\/?prop:([\w\.]+)\s*>' - property tags '<%@\s*((?:\s*[\w\.]+\s*=\s*\'.*?\'|\s*[\w\.]+\s*=\s*".*?")*)\s*%>' - directives '<%[%#~\\$=\\[](.*?)%>' - expressions '<prop:([\w\.]+)((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?"|\s*[\w\.]+=<%.*?%>)*)\s*\/>' - group subproperty tags
Documentation generated on Mon, 21 Apr 2008 11:36:32 -0400 by phpDocumentor 1.3.0RC4