public static function sanatizeArrayInput($data) { foreach ($data as $key => $value) { $nk = Sanatization::sanatizeFieldInput($key); $arr[$nk] = Sanatization::sanatizeFieldInput($value); } return $arr; }
private function sanatizeInput($lat, $lon, $radius, $substance_filter) { $input["lat"] = Sanatization::sanatizeNumbers($lat); $input["lon"] = Sanatization::sanatizeNumbers($lon); $input["radius"] = Sanatization::sanatizeNumbers($radius); $input["substance"] = Sanatization::sanatizeFieldInput($substance_filter); return $input; }