WACT_TEMPLATE
[ class tree: WACT_TEMPLATE ] [ index: WACT_TEMPLATE ] [ all elements ]

Class: ExpressionFilterParser

Source Location: /framework/template/compiler/expression.inc.php

Class Overview


Parses a single filter expression WARNING: this parser expects strings parsed by ExpressionFilterFindingParser

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

Parses a single filter expression WARNING: this parser expects strings parsed by ExpressionFilterFindingParser
access:  protected

Class Variables


$arg = NULL

Current argument
access:  private
Type:   string

$Args = NULL

List of arguments
access:  protected
Type:   array

$Name = NULL

Name of the filter
access:  protected
Type:   string

Class Methods


constructor ExpressionFilterParser

Invokes the Lexer to parse the expression

ExpressionFilterParser ExpressionFilterParser( string $expression)

Parameters:

string   $expression   expression to parse

method accept

Lexer callback - accepts a single argument

boolean accept( string $expression, int $state)

API Tags:

return:  TRUE
access:  private

Parameters:

string   $expression  
int   $state   expression lexer state

method addArg

Lexer callback - if the , delimiter is found, adds the current arg to the Args array

boolean addArg( )

API Tags:

return:  TRUE
access:  private

method getLexer

Creates the Lexer.

ExpressionLexer &getLexer( )

API Tags:

access:  private

method initArgs

Lexer callback - if the : delimiter is found, prepares the Args array

boolean initArgs( )

API Tags:

return:  TRUE
access:  private
WACT: Copyright 2003 Procata, Inc. Released under the LGPL license (http://www.gnu.org/copyleft/lesser.html)
Documentation generated on Sun, 28 Nov 2004 19:46:22 -0800 by phpDocumentor 1.2.3