Example #1
0
 public function __construct($data)
 {
     if (is_string($data)) {
         $data = array("field" => $data);
     }
     parent::__construct($data);
 }
Example #2
0
 public function __call($name, $args)
 {
     if (!in_array($name, array("start", "end")) || $args == array()) {
         return parent::__call($name, $args);
     }
     $this->{$name} = (int) $args[0];
     return true;
 }
Example #3
0
 public function __construct($data = null)
 {
     parent::__construct($data);
     $this->auto((bool) $this->auto());
 }