1 | <?php |
||
11 | class ThreemaGateway_Handler_Validation |
||
12 | { |
||
13 | /** |
||
14 | * Checks whether a Threema ID is valid and exists. |
||
15 | * |
||
16 | * @param string $threemaid The Threema ID to check. |
||
17 | * @param string $type The type of the Threema ID (personal, gateway, any) |
||
18 | * @param string $error |
||
19 | * @param bool $checkExistence Whether not only formal aspects should |
||
20 | * be checked, but also the existence of the ID. |
||
21 | * @return bool |
||
22 | */ |
||
23 | public static function checkThreemaId(&$threemaid, $type, &$error, $checkExistence = true) |
||
51 | |||
52 | /** |
||
53 | * Checks whether the directory is read- and writable. |
||
54 | * It also automatically creates it if necessary. |
||
55 | * |
||
56 | * @param string $dir directory to check |
||
57 | * @return bool |
||
58 | */ |
||
59 | public static function checkDir($dir) |
||
70 | } |
||
71 |