.

DBFilterGroupEnum Class Reference
[QueryModifiers]

Convenience class for creating a filter on an enum value. More...

Inheritance diagram for DBFilterGroupEnum:
DBFilterGroup IDBQueryModifier

List of all members.

Public Member Functions

  __construct ($fieldname, $name, $enums, $default= '')
  Constructor.

Detailed Description

Convenience class for creating a filter on an enum value.

Author:
Gerd Riesselmann

Definition at line 8 of file dbfiltergroupenum.cls.php.


Constructor & Destructor Documentation

DBFilterGroupEnum::__construct ( fieldname,
name,
enums,
default = ''  
)

Constructor.

Parameters:
string  $fieldname Name of field
string  $name Name of filter as shown to the user
array  $enums Associative array of enum values with DBValue as key, and dispaly value as value
string  $default Optional default value

Reimplemented from DBFilterGroup.

Definition at line 17 of file dbfiltergroupenum.cls.php.

00017                                                                               {
00018                 $columns = array();
00019                 foreach($enums as $ekey => $evalue) {
00020                         $columns[String::plain_ascii($ekey)] = new DBFilterColumn(
00021                                 $fieldname,
00022                                 $ekey,
00023                                 $evalue
00024                         );
00025                 }
00026                 parent::__construct($fieldname, $name, $columns, String::plain_ascii($default));
00027         }

The documentation for this class was generated from the following file: