Пример #1
0
 public static function sanatizeArrayInput($data)
 {
     foreach ($data as $key => $value) {
         $nk = Sanatization::sanatizeFieldInput($key);
         $arr[$nk] = Sanatization::sanatizeFieldInput($value);
     }
     return $arr;
 }
Пример #2
0
 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;
 }