DBFieldTristate Class Reference

An tristate enum field. More...

Inheritance diagram for DBFieldTristate:
DBFieldEnum DBField IDBField IPolicyHolder

List of all members.

Public Member Functions

  __construct ($name, $default_value=Tristate::UNKOWN, $policy=self::NOT_NULL)

Detailed Description

An tristate enum field.

Field in DB should be defined as ENUM('FALSE','TRUE','UNKNOWN').

Gerd Riesselmann

Definition at line 12 of file dbfield.tristate.cls.php.

Constructor & Destructor Documentation

DBFieldTristate::__construct ( name,
default_value = Tristate::UNKOWN,
policy = self::NOT_NULL  

Definition at line 13 of file dbfield.tristate.cls.php.

00013                                                                                                     {
00014                 parent::__construct($name, array_keys(Tristate::get_states()), $default_value, $policy);
00015         }

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