Lines 261-272
sub GetPlugins {
Link Here
|
261 |
|
261 |
|
262 |
=head2 InstallPlugins |
262 |
=head2 InstallPlugins |
263 |
|
263 |
|
264 |
Koha::Plugins::InstallPlugins( [ verbose => 1 ] ) |
264 |
my $plugins = Koha::Plugins->new(); |
|
|
265 |
$plugins->InstallPlugins( |
266 |
{ |
267 |
[ verbose => 1, |
268 |
include => ( 'Koha::Plugin::A', ... ), |
269 |
exclude => ( 'Koha::Plugin::X', ... ), ] |
270 |
} |
271 |
); |
265 |
|
272 |
|
266 |
This method iterates through all plugins physically present on a system. |
273 |
This method iterates through all plugins physically present on a system. |
267 |
For each plugin module found, it will test that the plugin can be loaded, |
274 |
For each plugin module found, it will test that the plugin can be loaded, |
268 |
and if it can, will store its available methods in the plugin_methods table. |
275 |
and if it can, will store its available methods in the plugin_methods table. |
269 |
|
276 |
|
|
|
277 |
Parameters: |
278 |
|
279 |
=over 4 |
280 |
|
281 |
=item B<exclude>: A list of class names to exclude from the process. |
282 |
|
283 |
=item B<include>: A list of class names to limit the process to. |
284 |
|
285 |
=item B<verbose>: Print useful information. |
286 |
|
287 |
=back |
288 |
|
270 |
NOTE: We reload all plugins here as a protective measure in case someone |
289 |
NOTE: We reload all plugins here as a protective measure in case someone |
271 |
has removed a plugin directly from the system without using the UI |
290 |
has removed a plugin directly from the system without using the UI |
272 |
|
291 |
|
273 |
- |
|
|