KSx::IndexManager::Plugin - base class for IndexManager plugins
package KSx::IndexManager::Plugin::Mine; use base qw(KSx::IndexManager::Plugin); sub after_new { my ($plugin, $self) = @_; # do something with $self }
Create a new plugin. This is called for you automatically and you should not need to use it.
Called when creating a new Manager. before_new is passed the hashref argument to new, and after_new is passed the newly created Manager.
before_new
new
after_new
Called with the Manager object and a reference to the path as a string.
Called when adding a document to the invindex. Both methods are passed the Manager and the object being added.
To install KSx::IndexManager, copy and paste the appropriate command in to your terminal.
cpanm
cpanm KSx::IndexManager
CPAN shell
perl -MCPAN -e shell install KSx::IndexManager
For more information on module installation, please visit the detailed CPAN module installation guide.