DBFieldTristate Class Reference
[Tristate]
An tristate enum field. More...
Inheritance diagram for
DBFieldTristate:
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').
- Since:
- 0.5.1
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:
- contributions/db.tristate/model/base/fields/dbfield.tristate.cls.php