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

Class: ExpressionFilterFindingParser

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

Class Overview


Searches expression strings for filters

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

Searches expression strings for filters

WARNING: this parser expects the initial variable / value to have been stripped as happens in the Expression constructor

access:  protected

Class Variables


$filter = NULL

Current value
var:  NULL when no value or string as value is built
access:  private
Type:   mixed

$Filters = array()

List of values found in expression, marked by filter delimiter
access:  protected
Type:   array

Class Methods


constructor ExpressionFilterFindingParser

Invokes the Lexer to parse the expression

ExpressionFilterFindingParser ExpressionFilterFindingParser( string $expression)

Parameters:

string   $expression   expression to parse

method acceptFilter

Lexer callback - called for value strings

boolean acceptFilter( string $filter, int $state)

API Tags:

return:  TRUE
access:  private

Parameters:

string   $filter  
int   $state   expression lexer state

method addFilter

Lexer callback - called every time a filter delimiter is found.

Populates the Values array with the current value



boolean addFilter( )

API Tags:

return:  TRUE
access:  private

method getLexer

Creates the Lexer.

ExpressionLexer &getLexer( )

API Tags:

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