Beispiel #1
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     // How TRUE is represented in the database
     $this->true = isset($this->true) ? $this->true : 1;
     // How TRUE is represented to users (mainly in forms)
     $this->label_true = isset($this->label_true) ? $this->label_true : 'Yes';
     // How FALSE is represented in the database
     $this->false = isset($this->false) ? $this->false : 0;
     // How FALSE is represented to users (mainly in forms)
     $this->label_false = isset($this->label_false) ? $this->label_false : 'No';
 }
Beispiel #2
0
 public function __construct($options = array())
 {
     parent::__construct($options);
     // The number of places to round the number, NULL to forgo rounding
     $this->places = isset($this->places) ? $this->places : NULL;
 }