1 | <?php |
||
15 | class Config extends Repository |
||
16 | { |
||
17 | /** |
||
18 | * Add a single custom commands path |
||
19 | * |
||
20 | * @param string $path Custom commands path to add |
||
21 | * @param bool $before If the path should be prepended or appended to the list |
||
22 | * |
||
23 | * @return void |
||
24 | */ |
||
25 | 36 | public function addCommandsPath($path, $before = true) |
|
41 | |||
42 | /** |
||
43 | * Add multiple custom commands paths |
||
44 | * |
||
45 | * @param array $paths Custom commands paths to add |
||
46 | * @param bool $before If the paths should be prepended or appended to the list |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | 3 | public function addCommandsPaths(array $paths, $before = true) |
|
56 | |||
57 | /** |
||
58 | * Return the list of commands paths |
||
59 | * |
||
60 | * @return array |
||
61 | */ |
||
62 | 6 | public function getCommandsPaths() |
|
66 | |||
67 | /** |
||
68 | * Enable a single Admin account |
||
69 | * |
||
70 | * @param integer $admin_id Single admin id |
||
71 | * |
||
72 | * @return void |
||
73 | */ |
||
74 | 2 | public function addAdmin($admin_id) |
|
86 | |||
87 | /** |
||
88 | * Enable a list of Admin Accounts |
||
89 | * |
||
90 | * @param array $admin_ids List of admin ids |
||
91 | * |
||
92 | * @return void |
||
93 | */ |
||
94 | 2 | public function addAdmins(array $admin_ids) |
|
100 | |||
101 | /** |
||
102 | * Get list of admins |
||
103 | * |
||
104 | * @return array |
||
105 | */ |
||
106 | 5 | public function getAdmins() |
|
110 | |||
111 | /** |
||
112 | * Set custom upload path |
||
113 | * |
||
114 | * @param string $path Custom upload path |
||
115 | * |
||
116 | * @return void |
||
117 | */ |
||
118 | 1 | public function setUploadPath($path) |
|
122 | |||
123 | /** |
||
124 | * Get custom upload path |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | 1 | public function getUploadPath() |
|
132 | |||
133 | /** |
||
134 | * Set custom download path |
||
135 | * |
||
136 | * @param string $path Custom download path |
||
137 | * |
||
138 | * @return void |
||
139 | */ |
||
140 | 1 | public function setDownloadPath($path) |
|
144 | |||
145 | /** |
||
146 | * Get custom download path |
||
147 | * |
||
148 | * @return string |
||
149 | */ |
||
150 | 1 | public function getDownloadPath() |
|
154 | } |
||
155 |