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) |
||
175 | |||
176 | /** |
||
177 | * Get all enabled modules. |
||
178 | * |
||
179 | * @return Collection |
||
180 | */ |
||
181 | public function enabled() |
||
185 | |||
186 | /** |
||
187 | * Get all disabled modules. |
||
188 | * |
||
189 | * @return Collection |
||
190 | */ |
||
191 | public function disabled() |
||
195 | |||
196 | /** |
||
197 | * Check if specified module is enabled. |
||
198 | * |
||
199 | * @param string $slug |
||
200 | * @return bool |
||
201 | */ |
||
202 | public function isEnabled($slug) |
||
209 | |||
210 | /** |
||
211 | * Check if specified module is disabled. |
||
212 | * |
||
213 | * @param string $slug |
||
214 | * @return bool |
||
215 | */ |
||
216 | public function isDisabled($slug) |
||
223 | |||
224 | /** |
||
225 | * Enables the specified module. |
||
226 | * |
||
227 | * @param string $slug |
||
228 | * @return bool |
||
229 | */ |
||
230 | public function enable($slug) |
||
234 | |||
235 | /** |
||
236 | * Disables the specified module. |
||
237 | * |
||
238 | * @param string $slug |
||
239 | * @return bool |
||
240 | */ |
||
241 | public function disable($slug) |
||
245 | |||
246 | /** |
||
247 | * Get the contents of the cache file. |
||
248 | * |
||
249 | * The cache file lists all module slugs and their |
||
250 | * enabled or disabled status. This can be used to |
||
251 | * filter out modules depending on their status. |
||
252 | * |
||
253 | * @return Collection |
||
254 | */ |
||
255 | public function getCache() |
||
269 | |||
270 | /** |
||
271 | * Get the path to the cache file. |
||
272 | * |
||
273 | * @return string |
||
274 | */ |
||
275 | protected function getCachePath() |
||
279 | } |
||
280 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.