1 | <?php |
||
8 | class Utils |
||
9 | { |
||
10 | |||
11 | /** |
||
12 | * @param string $path |
||
13 | * @param string $separator |
||
14 | * @return string |
||
15 | */ |
||
16 | 1 | public static function normalizePath($path, $separator = '\\/') |
|
39 | |||
40 | |||
41 | /** |
||
42 | * Throw exception, trigger error or ignore according of action |
||
43 | * @param \Exception $e |
||
44 | * @param string $action |
||
45 | * @param bool $need |
||
46 | * @throws \Exception |
||
47 | */ |
||
48 | 1 | public static function throwError(\Exception $e, $action = 'exception', $need = TRUE) |
|
59 | |||
60 | } |
||
61 |