Beispiel #1
0
 private function __process(&$container, array $params = [])
 {
     if (empty($params)) {
         return $container;
     }
     foreach ($params as $k => $v) {
         if (is_numeric($v)) {
             $container[$k] = isset($container[$k]) ? intval($container[$k]) : $v;
         } else {
             if (is_string($v)) {
                 $container[$k] = isset($container[$k]) ? X::security()->sqlVar($container[$k]) : $v;
             }
         }
     }
     return $container;
 }