Exemplo n.º 1
0
 /**
  * Determines whether or not a key exists in the input.
  * @param string $key The key to look for.
  * @return boolean
  */
 public static function exists($key)
 {
     self::initialize();
     if (isset(self::$runtimeVariables[$key])) {
         return true;
     } else {
         if (isset(Routes::getPathVariables()[$key])) {
             return true;
         } else {
             if (isset(self::$postVariables[$key])) {
                 return true;
             } else {
                 if (isset(self::$getVariables[$key])) {
                     return true;
                 }
             }
         }
     }
     return false;
 }