src/AsyncWeb/View/MakeForm.php
private function filters($value, $type = null, $safe = true) {
            if ($type == "date") {
                $ret = $this->convertDate($value, false);
                return $ret;
            }
            if ($type == "datetime-local") {
                return $ret = strtotime($value);
            }
            if ($type == "date_string") {
                return date("Y-m-d", \AsyncWeb\Date\Time::getUnix($this->convertDate($value, false)));
            }
            if ($type == "number") {
                $value = str_replace(" ", "", $value);
                $value = str_replace(",", ".", $value);
            }
            if (!$safe) {
                if (($val = $this->execute($value)) !== false) {
                    return $val;
                }
            }
            return $value;
        }
private function filters($value, $type = null, $safe = true) {
            if ($type == "date") {
                $ret = $this->convertDate($value, false);
                return $ret;
            }
            if ($type == "datetime-local") {
                return $ret = strtotime($value);
            }
            if ($type == "date_string") {
                return date("Y-m-d", \AsyncWeb\Date\Time::getUnix($this->convertDate($value, false)));
            }
            if ($type == "number") {
                $value = str_replace(" ", "", $value);
                $value = str_replace(",", ".", $value);
            }
            if (!$safe) {
                if (($val = $this->execute($value)) !== false) {
                    return $val;
                }
            }
            return $value;
        }
private function filters ( $ value , $ type = null , $ safe = true ) { if ( $ type == "date" ) { $ ret = $ this -> convertDate ( $ value , false ) ; return $ ret ; } if ( $ type == "datetime-local" ) { return $ ret = strtotime ( $ value ) ; } if ( $ type == "date_string" ) { return date ( "Y-m-d" , \ AsyncWeb \ Date \ Time :: getUnix ( $ this -> convertDate ( $ value , false ) ) ) ; } if ( $ type == "number" ) { $ value = str_replace ( " " , "" , $ value ) ; $ value = str_replace ( "," , "." , $ value ) ; } if ( ! $ safe ) { if ( ( $ val = $ this -> execute ( $ value ) ) !== false ) { return $ val ; } } return $ value ; }
This function makes the input filters and parses php
also cleans the number format from spaces and replaces , to .

$value = PHP::Time::get(), returns timestamp

type = date | date_string | number
This function makes the input filters and parses php also cleans the number format from spaces and replaces to .