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

Class: MDB2_TableBrowser_MultipleFilterManager

Source Location: /MDB2_TableBrowser-0.1.3/MDB2/TableBrowser/MultipleFliterManager.php

Class Overview


This class implements the MDB2_TableBrowser_InterfaceMultipleWhereClauseGenerator interface


Author(s):

Version:

  • Release: <package_version>

Copyright:

  • 2007-2012 Isaac Tewolde

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 40]
This class implements the MDB2_TableBrowser_InterfaceMultipleWhereClauseGenerator interface

It is used by other classes to create and manage the where clause of an SQL statement. As such, it's primary purpose is to add/remove filters which are expressions that evaluate to true or false.

This class builds on top of MDB2_TableBrowser_FilterManager class. It adds the ability to build multiple filter chains so that one can test for parralel sets of conditions



[ Top ]


Class Variables

$currentFilterChain =  null

[line 43]

  • Access: protected

Type:   mixed


[ Top ]

$filterChains = array()

[line 44]

  • Access: protected

Type:   mixed


[ Top ]

$validator =  null

[line 42]

  • Access: protected

Type:   mixed


[ Top ]



Method Detail

__construct (Constructor)   [line 53]

MDB2_TableBrowser_MultipleFilterManager __construct( MDB2_TableBrowser_InterfaceTableValidator &$validator)

Constructor
  • Access: public

Parameters:

tableValidator   &$validator     A refrence to an object that implements the tableValidator interface

[ Top ]

createFilterChain   [line 109]

void createFilterChain( string $filterChainName)

Creates a new filter chain
  • Throws: MDB2_TableBrowser_ParameterException
  • Access: public

Parameters:

string   $filterChainName     The name of the filterChain

[ Top ]

deleteFilterChain   [line 126]

void deleteFilterChain( string $filterChainName)

Deletes a new filter chain
  • Throws: MDB2_TableBrowser_ParameterException
  • Access: public

Parameters:

string   $filterChainName     The name of the filterChain

[ Top ]

generateSQL   [line 173]

string generateSQL( )

Combines all the filter chains and generates the complete where clause
  • Return: the complete where clauses
  • Access: public

[ Top ]

resetAllFilters   [line 162]

void resetAllFilters( )

Resets all filter chains
  • Access: public

[ Top ]

selectFilterChain   [line 146]

void selectFilterChain( [string $filterChainName = null])

Switches the selected filter chain
  • Throws: MDB2_TableBrowser_ParameterException
  • Access: public

Parameters:

string   $filterChainName     The name of the filterChain

[ Top ]

__call   [line 90]

mixed __call( string $method, array $args)

Calls the method of the current selected filterChain object
  • Return: Depends on the method being called
  • Access: public

Parameters:

string   $method     The method name
array   $args     The method parameters

[ Top ]


Documentation generated on Fri, 13 Apr 2012 03:00:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.