| [ Index ] |
PHP Cross Reference of Limb3 |
[Source view] [Print] [Project Stats]
Acts on the WactCompileTreeRootNode in response to events within the WactSourceFileParser When adding an open tag to the tree, call pushExpectedTag(). When closing a tag, call popExpectedTag(), which ensures the tree is balanced.
| Version: | $Id: WactTreeBuilder.class.php 5945 2007-06-06 08:31:43Z pachanga $ |
| File Size: | 345 lines (11 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| __construct($compiler, $tag_dictionary, $property_dictionary, $filter_dictionary) X-Ref |
| Stack of tags pushed onto the tree builder, may also contain components |
| getCursor() X-Ref |
| Returns the current component return: WactCompileTreeNode return: void |
| setCursor($node) X-Ref |
| Sets the cursor (the current working component) of the tree builder param: WactCompileTreeNode return: void |
| pushNode($new_node) X-Ref |
| Begins a component's build phase in relation to the component tree. Adds a component to the tree, then makes that component the 'cursor'. param: WactCompileTreeNode return: void |
| addNode($child_node) X-Ref |
| Adds a component to the tree, without descending into it. This begins and finishes the component's composition param: WactCompileTreeNode |
| addWactTextNode($text) X-Ref |
| No description |
| popNode() X-Ref |
| Ends a component's build phase in relation to the tree. Checks child server ids and moves the 'cursor' up the tree to the parent component. |
| _pushExpectedTag($tag, $location, $tag_kind) X-Ref |
param: string tag name param: mixed info about the tag param: boolean if the tag is one of the wact tags (of having wact:id or runat='server' attributes) return: void |
| pushExpectedPlainTag($tag, $location) X-Ref |
| No description |
| pushExpectedWactTag($tag, $location) X-Ref |
| No description |
| pushCursor($new_position, $location) X-Ref |
| Sets the cursor to a new position, and pushes the old cursor onto the expected tags stack. param: WactCompileTreeNode return: void |
| _popExpectedTag($pop_tag, $pop_tag_location, $pop_tag_kind) X-Ref |
| Tests the passed tag against what is expected. Returns info if expected tag was a wact tag or a plain tag |
| popExpectedPlainTag($pop_tag, $pop_tag_location) X-Ref |
| No description |
| popExpectedWactTag($pop_tag, $pop_tag_location) X-Ref |
| No description |
| getExpectedTagCount() X-Ref |
| No description |
| getExpectedTag() X-Ref |
| No description |
| getExpectedTagLocation() X-Ref |
| No description |
| addProcessingInstruction($target, $instruction) X-Ref |
| No description |
| buildTagNode($tag_info, $tag, $location, $attrs, $is_empty = false, $has_closing_tag = true) X-Ref |
| Builds a component, adding attributes param: WactTagInfo param: string XML tag name of component param: array attributes for tag param: boolean whether the tag has contents return: WactCompileTreeNode |
| _createTagNode($tag_info, $tag, $location) X-Ref |
| No description |
| _registerPropertiesInTagNode($tag_node) X-Ref |
| No description |
| _addAttributesToTagNode($tag_node, $location, $attrs) X-Ref |
| No description |
| _convertAttributesToExpressionIfRequired($tag_node, $tag_info, &$attributes) X-Ref |
| No description |
| addContent($text, $location) X-Ref |
| No description |
| Generated: Sat Sep 6 04:46:52 2008 | Cross-referenced by PHPXref 0.7 |