/** * 递归处理(过滤、整理)所有变量值 */ public function init() { self::$sfInput['post'] =& $_POST; self::$sfInput['get'] =& $_GET; self::$sfInput['cookie'] =& $_COOKIE; self::$sfInput['env'] =& $_ENV; self::$sfInput['files'] =& $_FILES; self::$sfInput['request'] =& $_REQUEST; self::$sfInput['session'] =& $_SESSION; self::$sfInput['server'] =& $_SERVER; array_walk_recursive(self::$sfInput, "processVariables"); //产生混合变量 self::$sfInput['mix'] = array(); self::$sfInput['mix'] = array_merge(self::$sfInput['mix'], self::$sfInput['get']); self::$sfInput['mix'] = array_merge(self::$sfInput['mix'], self::$sfInput['post']); self::$is_do = true; }