1 | <?php namespace Arcanedev\Assets\Helpers; |
||
11 | class Workspaces |
||
12 | { |
||
13 | /* ----------------------------------------------------------------- |
||
14 | | Main Methods |
||
15 | | ----------------------------------------------------------------- |
||
16 | */ |
||
17 | |||
18 | /** |
||
19 | * Get the default workspace name. |
||
20 | * |
||
21 | * @param string|null $default |
||
22 | * |
||
23 | * @return \Illuminate\Config\Repository|mixed |
||
24 | */ |
||
25 | public static function getDefaultName($default = null) |
||
29 | |||
30 | /** |
||
31 | * Get the workspace configs. |
||
32 | * |
||
33 | * @param string $name |
||
34 | * @param array|null $default |
||
35 | * |
||
36 | * @return array|null |
||
37 | */ |
||
38 | public static function get($name, $default = null) |
||
42 | |||
43 | /** |
||
44 | * Get all the workspaces. |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | public static function all() |
||
52 | |||
53 | /** |
||
54 | * Get all workspaces' names. |
||
55 | * |
||
56 | * @return array |
||
57 | */ |
||
58 | public static function keys() |
||
62 | |||
63 | /** |
||
64 | * Get all the root directories. |
||
65 | * |
||
66 | * @return array|mixed |
||
67 | */ |
||
68 | public static function getAllRootDirectories() |
||
72 | |||
73 | /** |
||
74 | * Check if the root directory exists by the given workspace. |
||
75 | * |
||
76 | * @param string $name |
||
77 | * |
||
78 | * @return bool |
||
79 | */ |
||
80 | public static function rootDirectoryExists($name) |
||
86 | } |
||
87 |