size=$size; $this->form='PhangoApp\PhaModels\Forms\BaseForm'; $this->value=0; } function check($value) { //$this->value=Utils::form_text($value); settype($value, "double"); if($value==0 && $this->required==true) { $this->error=1; } return $value; } function get_type_sql() { return 'DOUBLE NOT NULL DEFAULT "0"'; } /** * This function is used for show the value on a human format */ public function show_formatted($value) { return $value; } function get_parameters_default() { return array($this->name_component, '', 0); } } ?>