public function __construct($data) { if (is_string($data)) { $data = array("field" => $data); } parent::__construct($data); }
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; }
public function __construct($data = null) { parent::__construct($data); $this->auto((bool) $this->auto()); }