FreenetIS
 All Classes Namespaces Functions Variables Pages
Public Member Functions | Protected Attributes | List of all members
Filter Class Reference

This is library for filter form. More...

Public Member Functions

 __construct ($name, $table= '')
 Constructor, sets name, label and name of table (optional)
 __get ($key)
 Magic method to return some from basic data.
 label ($label, $use_translation=TRUE)
 Method to set label of filter.
 __call ($method, $args)
 Magic method to set some basic data.

Protected Attributes

 $data

Detailed Description

This is library for filter form.

Author
Michal Kliment
Version
1.0

Filter type(string $type) Filter table(string $sql_table_name) Filter callback(string $url_autocomplete) Filter values(array $select_type_values) Filter default(integer $operation, mixed $value) Filter css_class(string $class_name) CSS class of value field of form

Constructor & Destructor Documentation

Filter::__construct (   $name,
  $table = '' 
)

Constructor, sets name, label and name of table (optional)

Author
Michal Kliment
Parameters
string$name
string$table

Member Function Documentation

Filter::__call (   $method,
  $args 
)

Magic method to set some basic data.

Author
Michal Kliment
Parameters
string$method
array$args
Returns
Filter object
Filter::__get (   $key)

Magic method to return some from basic data.

Author
Michal Kliment
Parameters
mixed$key
Returns
mixed
Filter::label (   $label,
  $use_translation = TRUE 
)

Method to set label of filter.

Author
Michal Kliment
Parameters
string$label
boolean$use_translation
Returns
Filter

Member Data Documentation

Filter::$data
protected
Initial value:
array
(
'type' => 'text',
'default' => array(),
'class' => array(),
'css_class' => array()
)

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