.

FilterUsername Class Reference
[Usermanagement]

Filter name and emial for user name. More...

Inheritance diagram for FilterUsername:
FilterText IDBQueryModifier

List of all members.

Public Member Functions

  __construct ($page_data, $adapter=false)
  Contructor.
  get_filter_value ()
  Return current value to be filter after.

Detailed Description

Filter name and emial for user name.

Author:
Gerd Riesselmann

Definition at line 10 of file filterusername.cls.php.


Constructor & Destructor Documentation

FilterUsername::__construct ( page_data,
adapter = false  
)

Contructor.

Parameters:
PageData  $page_data;

Definition at line 16 of file filterusername.cls.php.

00016                                                                   {
00017                 $this->adapter = ($adapter instanceof IFilterTextAdapter) ? $adapter : new FilterTextDefaultAdapter($page_data, 'username');
00018                 $this->page_data = $page_data;
00019                 $this->filter_object = new DBFilterMultiColumn(
00020                         array(
00021                                 new DBFilterMultiColumnItem('name', $this->adapter->get_value(), DBWhere::OP_LIKE, DBWhere::LOGIC_OR),
00022                                 new DBFilterMultiColumnItem('email', $this->adapter->get_value(), DBWhere::OP_LIKE, DBWhere::LOGIC_OR),
00023                         ),
00024                         tr('name') 
00025                 );
00026         }

Member Function Documentation

FilterUsername::get_filter_value (  ) 

Return current value to be filter after.

Returns:
string

Reimplemented from FilterText.

Definition at line 33 of file filterusername.cls.php.

00033                                            {
00034                 $items = $this->filter_object->get_items(); 
00035                 return $items[0]->value;
00036         }       

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