Sitellite Application Framework
Class Tree         Index         All Elements

Class: XTExpression

Source Location: Program_Root/XML/XT/Expression.php

Class Overview

Parser
   |
   --XTExpression

XTExpression (XTE) is the expression syntax to the XT XML-based template engine.


Author(s)

Version

  • 1.0, 2003-01-15, $Id: Expression.php,v 1.3 2005/10/16 02:52:14 lux Exp $

Copyright

  • Copyright (C) 2001-2003, Simian Systems Inc.

Variables

Methods


Inherited Variables

Inherited Methods

Class: Parser

Parser::Parser()
Constructor method.
Parser::addInternal()
Alias of addToken().
Parser::addToken()
Defines a token whose callback function has the same name as
Parser::makeRegex()
Turns the $tokens list into a regular expression.
Parser::parse()
This is the mainloop of the parser.
Parser::_default()
This is the default token handler. It merely returns

Class Details

[line 40]
XTExpression (XTE) is the expression syntax to the XT XML-based template engine.



Tags:

access:  public
version:  1.0, 2003-01-15, $Id: Expression.php,v 1.3 2005/10/16 02:52:14 lux Exp $
license:  http://www.sitellite.org/index/license
copyright:  Copyright (C) 2001-2003, Simian Systems Inc.
author:  John Luxford <mailto:lux@simian.ca>


[ Top ]


Class Variables

$action =  'none'

[line 93]


Type:   mixed


[ Top ]

$buffer = array ()

[line 94]


Type:   mixed


[ Top ]

$defaultMode =  'path'

[line 96]


Type:   mixed


[ Top ]

$mode =  'normal'

[line 91]


Type:   mixed


[ Top ]

$out =  ''

[line 92]


Type:   mixed


[ Top ]

$outputMode =  'path'

[line 95]


Type:   mixed


[ Top ]

$previousMode =  'string'

[line 97]


Type:   mixed


[ Top ]



Class Methods


constructor XTExpression [line 111]

XTExpression XTExpression( object $object)

Constructor method. $object is used to set a default object within the register that takes precedence (as does its properties and methods, should they share a name with another register object) over other objects in the register.



Tags:

access:  public


Parameters:

object   $object  

[ Top ]

method define [line 378]

void define( mixed $string, mixed $node, [mixed $default_type = 'path'])



[ Top ]

method defineObject [line 390]

void defineObject( mixed $name, mixed $evalstr)



[ Top ]

method defineValue [line 395]

void defineValue( mixed $name, mixed &$value)



[ Top ]

method evaluate [line 421]

void evaluate( mixed $string, mixed $node, [mixed $default_type = 'path'], [mixed $carry = true])



[ Top ]

method getObject [line 178]

object &getObject( [string $name = 'object'])

Retrieves the specified object from the register.



Parameters:

string   $name  

[ Top ]

method getPath [line 306]

mixed &getPath( string $path)

This is the function that interprets path expressions and returns the values that they refer to.



Parameters:

string   $path  

[ Top ]

method register [line 157]

void register( string $name)

Registers the specified name into the register, using a global object of the same name as the register value.



Parameters:

string   $name  

[ Top ]

method repeat [line 405]

void repeat( mixed $string, mixed $node, [mixed $default_type = 'path'])



[ Top ]

method resetRegister [line 167]

void resetRegister( )

Erases everything from the register.



[ Top ]

method setCurrent [line 191]

void setCurrent( object &$obj, string $name, integer $index, integer $total)

Sets the loop register entry to the provided object.



Parameters:

object   &$obj  
string   $name  
integer   $index  
integer   $total  

[ Top ]

method setObject [line 146]

void setObject( object &$obj, [string $name = 'object'])

Sets the specified register entry to the provided object.



Parameters:

object   &$obj  
string   $name  

[ Top ]

method splitAssignment [line 270]

array splitAssignment( string $string)

Splits an assignment string by the first space character encountered.



Parameters:

string   $string  

[ Top ]

method splitStatement [line 285]

array splitStatement( string $string)

Splits a statement into multiple expressions by any semi-colons encountered.



Parameters:

string   $string  

[ Top ]

method _default [line 567]

void _default( mixed $token, mixed $name)



Overrides Parser::_default() (This is the default token handler. It merely returns)

[ Top ]

method _else [line 546]

void _else( mixed $token, mixed $name)



[ Top ]

method _endInnerPath [line 510]

void _endInnerPath( mixed $token, mixed $name)



[ Top ]

method _escape [line 557]

void _escape( mixed $token, mixed $name)



[ Top ]

method _innerPath [line 498]

void _innerPath( mixed $token, mixed $name)



[ Top ]

method _pathOpen [line 541]

void _pathOpen( mixed $token, mixed $name)



[ Top ]

method _phpOpen [line 531]

void _phpOpen( mixed $token, mixed $name)



[ Top ]

method _stringOpen [line 536]

void _stringOpen( mixed $token, mixed $name)



[ Top ]


Copyright © 2007, SIMIAN systems Inc.
All rights reserved. Privacy policy
Documentation generated on Tue, 13 Feb 2007 17:17:30 -0600 by Sitellite AppDoc and phpDocumentor 1.2.2