contributions/db.tristate/model/base/fields/dbfield.tristate.cls.php
Go to the documentation of this file.00001 <?php 00002 /** 00003 * An tristate enum field 00004 * 00005 * Field in DB should be defined as ENUM('FALSE','TRUE','UNKNOWN'). 00006 * 00007 * @since 0.5.1 00008 * 00009 * @author Gerd Riesselmann 00010 * @ingroup Tristate 00011 */ 00012 class DBFieldTristate extends DBFieldEnum { 00013 public function __construct($name, $default_value = Tristate::UNKOWN, $policy = self::NOT_NULL) { 00014 parent::__construct($name, array_keys(Tristate::get_states()), $default_value, $policy); 00015 } 00016 }