예제 #1
0
파일: boolean.php 프로젝트: jerfowler/yada
 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';
 }
예제 #2
0
파일: float.php 프로젝트: jerfowler/yada
 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;
 }