1 | <?php |
||
6 | class LocalRepository extends Repository |
||
7 | { |
||
8 | /** |
||
9 | * Update cached repository of module information. |
||
10 | * |
||
11 | * @return bool |
||
12 | */ |
||
13 | public function optimize() |
||
43 | |||
44 | /** |
||
45 | * Get all modules. |
||
46 | * |
||
47 | * @return Collection |
||
48 | */ |
||
49 | public function all() |
||
53 | |||
54 | /** |
||
55 | * Get all module slugs. |
||
56 | * |
||
57 | * @return Collection |
||
58 | */ |
||
59 | public function slugs() |
||
69 | |||
70 | /** |
||
71 | * Get modules based on where clause. |
||
72 | * |
||
73 | * @param string $key |
||
74 | * @param mixed $value |
||
75 | * @return Collection |
||
76 | */ |
||
77 | public function where($key, $value) |
||
81 | |||
82 | /** |
||
83 | * Sort modules by given key in ascending order. |
||
84 | * |
||
85 | * @param string $key |
||
86 | * @return Collection |
||
87 | */ |
||
88 | public function sortBy($key) |
||
94 | |||
95 | /** |
||
96 | * Sort modules by given key in ascending order. |
||
97 | * |
||
98 | * @param string $key |
||
99 | * @return Collection |
||
100 | */ |
||
101 | public function sortByDesc($key) |
||
107 | |||
108 | /** |
||
109 | * Determines if the given module exists. |
||
110 | * |
||
111 | * @param string $slug |
||
112 | * @return bool |
||
113 | */ |
||
114 | public function exists($slug) |
||
118 | |||
119 | /** |
||
120 | * Returns count of all modules. |
||
121 | * |
||
122 | * @return int |
||
123 | */ |
||
124 | public function count() |
||
128 | |||
129 | /** |
||
130 | * Get a module property value. |
||
131 | * |
||
132 | * @param string $property |
||
133 | * @param mixed $default |
||
134 | * @return mixed |
||
135 | */ |
||
136 | public function get($property, $default = null) |
||
144 | |||
145 | /** |
||
146 | * Set the given module property value. |
||
147 | * |
||
148 | * @param string $property |
||
149 | * @param mixed $value |
||
150 | * @return bool |
||
151 | */ |
||
152 | public function set($property, $value) |
||
179 | |||
180 | /** |
||
181 | * Get all enabled modules. |
||
182 | * |
||
183 | * @return Collection |
||
184 | */ |
||
185 | public function enabled() |
||
189 | |||
190 | /** |
||
191 | * Get all disabled modules. |
||
192 | * |
||
193 | * @return Collection |
||
194 | */ |
||
195 | public function disabled() |
||
199 | |||
200 | /** |
||
201 | * Check if specified module is enabled. |
||
202 | * |
||
203 | * @param string $slug |
||
204 | * @return bool |
||
205 | */ |
||
206 | public function isEnabled($slug) |
||
213 | |||
214 | /** |
||
215 | * Check if specified module is disabled. |
||
216 | * |
||
217 | * @param string $slug |
||
218 | * @return bool |
||
219 | */ |
||
220 | public function isDisabled($slug) |
||
227 | |||
228 | /** |
||
229 | * Enables the specified module. |
||
230 | * |
||
231 | * @param string $slug |
||
232 | * @return bool |
||
233 | */ |
||
234 | public function enable($slug) |
||
238 | |||
239 | /** |
||
240 | * Disables the specified module. |
||
241 | * |
||
242 | * @param string $slug |
||
243 | * @return bool |
||
244 | */ |
||
245 | public function disable($slug) |
||
249 | |||
250 | /** |
||
251 | * Get the contents of the cache file. |
||
252 | * |
||
253 | * The cache file lists all module slugs and their |
||
254 | * enabled or disabled status. This can be used to |
||
255 | * filter out modules depending on their status. |
||
256 | * |
||
257 | * @return Collection |
||
258 | */ |
||
259 | public function getCache() |
||
275 | |||
276 | /** |
||
277 | * Get the path to the cache file. |
||
278 | * |
||
279 | * @return string |
||
280 | */ |
||
281 | protected function getCachePath() |
||
285 | } |
||
286 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.