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 146)
TComponent | --TApplicationComponent | --TTemplate
REGEX_RULES = '/<!--.*?--!>|<!--.*?-->|<\/?com:([\w\.]+)((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?"|\s*[\w\.]+=<%.*?%>)*)\s*\/?>|<\/?prop:([\w\.]+)\s*>|<%@\s*((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?")*)\s*%>|<%[%#~\\$=\\[](.*?)%>/msS'
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.
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.
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
Inherited From TComponent
TComponent::attachEventHandler()
TComponent::canGetProperty()
TComponent::canSetProperty()
TComponent::detachEventHandler()
TComponent::evaluateExpression()
TComponent::evaluateStatements()
TComponent::getEventHandlers()
TComponent::getSubProperty()
TComponent::hasEvent()
TComponent::hasEventHandler()
TComponent::hasProperty()
TComponent::raiseEvent()
TComponent::setSubProperty()
TComponent::__get()
TComponent::__set()
CONFIG_ASSET
= 2
(line 163)
CONFIG_DATABIND
= 0
(line 161)
Different configurations of component property/event/attribute
CONFIG_EXPRESSION
= 1
(line 162)
CONFIG_LOCALIZATION
= 4
(line 165)
CONFIG_PARAMETER
= 3
(line 164)
CONFIG_TEMPLATE
= 5
(line 166)
REGEX_RULES
= '/<!--.*?--!>|<!--.*?-->|<\/?com:([\w\.]+)((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?"|\s*[\w\.]+=<%.*?%>)*)\s*\/?>|<\/?prop:([\w\.]+)\s*>|<%@\s*((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?")*)\s*%>|<%[%#~\\$=\\[](.*?)%>/msS'
(line 156)
'<!--.*?--!>' - template comments
'<!--.*?-->' - HTML comments '<\/?com:([\w\.]+)((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?"|\s*[\w\.]+=<%.*?%>)*)\s*\/?>' - component tags '<\/?prop:([\w\.]+)\s*>' - property tags '<%@\s*((?:\s*[\w\.]+=\'.*?\'|\s*[\w\.]+=".*?")*)\s*%>' - directives '<%[%#~\\$=\\[](.*?)%>' - expressions
Documentation generated on Sun, 04 Jun 2006 19:00:30 -0400 by phpDocumentor 1.3.0RC4