View | Details | Raw Unified | Return to bug 34978
Collapse All | Expand All

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

Return to bug 34978