Update some HHI files
[hiphop-php.git] / hphp / hack / hhi / stdlib / bultins_filter.hhi
blob969518b11621190c02c5aadd529796f8618f12e8
1 <?hh // decl   /* -*- php -*- */
2 /**
3 * Copyright (c) 2014, Facebook, Inc.
4 * All rights reserved.
6 * This source code is licensed under the BSD-style license found in the
7 * LICENSE file in the 'hack' directory of this source tree. An additional grant
8 * of patent rights can be found in the PATENTS file in the same directory.
11 const int INPUT_POST = 0;
12 const int INPUT_GET = 0;
13 const int INPUT_COOKIE = 0;
14 const int INPUT_ENV = 0;
15 const int INPUT_SERVER = 0;
16 const int INPUT_SESSION = 0;
17 const int INPUT_REQUEST = 0;
18 const int FILTER_FLAG_NONE = 0;
19 const int FILTER_REQUIRE_SCALAR = 0;
20 const int FILTER_REQUIRE_ARRAY = 0;
21 const int FILTER_FORCE_ARRAY = 0;
22 const int FILTER_NULL_ON_FAILURE = 0;
23 const int FILTER_VALIDATE_INT = 0;
24 const int FILTER_VALIDATE_BOOLEAN = 0;
25 const int FILTER_VALIDATE_FLOAT = 0;
26 const int FILTER_VALIDATE_REGEXP = 0;
27 const int FILTER_VALIDATE_URL = 0;
28 const int FILTER_VALIDATE_EMAIL = 0;
29 const int FILTER_VALIDATE_IP = 0;
30 const int FILTER_VALIDATE_MAC = 0;
31 const int FILTER_DEFAULT = 0;
32 const int FILTER_UNSAFE_RAW = 0;
33 const int FILTER_SANITIZE_STRING = 0;
34 const int FILTER_SANITIZE_STRIPPED = 0;
35 const int FILTER_SANITIZE_ENCODED = 0;
36 const int FILTER_SANITIZE_SPECIAL_CHARS = 0;
37 const int FILTER_SANITIZE_FULL_SPECIAL_CHARS = 0;
38 const int FILTER_SANITIZE_EMAIL = 0;
39 const int FILTER_SANITIZE_URL = 0;
40 const int FILTER_SANITIZE_NUMBER_INT = 0;
41 const int FILTER_SANITIZE_NUMBER_FLOAT = 0;
42 const int FILTER_SANITIZE_MAGIC_QUOTES = 0;
43 const int FILTER_CALLBACK = 0;
44 const int FILTER_FLAG_ALLOW_OCTAL = 0;
45 const int FILTER_FLAG_ALLOW_HEX = 0;
46 const int FILTER_FLAG_STRIP_LOW = 0;
47 const int FILTER_FLAG_STRIP_HIGH = 0;
48 const int FILTER_FLAG_ENCODE_LOW = 0;
49 const int FILTER_FLAG_ENCODE_HIGH = 0;
50 const int FILTER_FLAG_ENCODE_AMP = 0;
51 const int FILTER_FLAG_NO_ENCODE_QUOTES = 0;
52 const int FILTER_FLAG_EMPTY_STRING_NULL = 0;
53 const int FILTER_FLAG_STRIP_BACKTICK = 0;
54 const int FILTER_FLAG_ALLOW_FRACTION = 0;
55 const int FILTER_FLAG_ALLOW_THOUSAND = 0;
56 const int FILTER_FLAG_ALLOW_SCIENTIFIC = 0;
57 const int FILTER_FLAG_SCHEME_REQUIRED = 0;
58 const int FILTER_FLAG_HOST_REQUIRED = 0;
59 const int FILTER_FLAG_PATH_REQUIRED = 0;
60 const int FILTER_FLAG_QUERY_REQUIRED = 0;
61 const int FILTER_FLAG_IPV4 = 0;
62 const int FILTER_FLAG_IPV6 = 0;
63 const int FILTER_FLAG_NO_RES_RANGE = 0;
64 const int FILTER_FLAG_NO_PRIV_RANGE = 0;
66 function filter_has_var(int $type, string $variable_name): bool {}
67 function filter_id(string $name): mixed {}
68 function filter_input_array(int $type, mixed $defintion, bool $add_empty): mixed {}
69 function filter_input(int $type, string $variable_name, int $filter = FILTER_DEFAULT, mixed $options = null): mixed {}
70 function filter_list(): array<string> {}
71 function filter_var_array(array $data, mixed $definition = null, bool $allow_empty = true): mixed {}
72 function filter_var(mixed $value, int $filter = FILTER_DEFAULT, mixed $options = null): mixed {}