1 | <?php |
||
14 | class Validate extends \Validate { |
||
15 | |||
16 | /** |
||
17 | * Validate an authorization code |
||
18 | * |
||
19 | * @return string|false : the code or false on failure |
||
20 | */ |
||
21 | |||
22 | public static function authCode(string $value) { |
||
26 | |||
27 | /** |
||
28 | * Validate a user name |
||
29 | * |
||
30 | * @return string|false : the name or false on failure |
||
31 | */ |
||
32 | |||
33 | public static function userName(string $value) { |
||
39 | |||
40 | /** |
||
41 | * Validate a user password |
||
42 | * |
||
43 | * @return string|false : the password or false on failure |
||
44 | */ |
||
45 | |||
46 | public static function userPassword(string $value) { |
||
52 | |||
53 | /** |
||
54 | * Validate a user email |
||
55 | * |
||
56 | * @return string|false : the email or false on failure |
||
57 | */ |
||
58 | |||
59 | public static function userEmail(string $value) { |
||
63 | |||
64 | /** |
||
65 | * Validate a template component name |
||
66 | * |
||
67 | * @return string|false : the name or false on failure |
||
68 | */ |
||
69 | |||
70 | public static function templateComponentName(string $value) { |
||
74 | |||
75 | /** |
||
76 | * Validate a file/directory name |
||
77 | * |
||
78 | * @return string|false : the name or false on failure |
||
79 | */ |
||
80 | |||
81 | public static function fileName(string $value) { |
||
85 | |||
86 | /** |
||
87 | * Validate a url |
||
88 | * |
||
89 | * @return string|false : the url or false on failure |
||
90 | */ |
||
91 | |||
92 | public static function url(string $value) { |
||
102 | } |
||
103 | } |
||
104 |