Ignore:
Timestamp:
2009-12-09T13:21:38+13:00 (14 years ago)
Author:
kjdon
Message:

removeold renamed to remove_all, added remove_one for deleting a single doc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/perllib/plugins/BasePlugin.pm

    r21286 r21308  
    314314}
    315315
    316 # In case a plugin (eg PharosImageIndexer) needs to do something extra
    317 sub removeold {
     316# This is called once if removeold is set with import.pl. Most plugins will do
     317# nothing but if a plugin does any stuff outside of creating doc obj, then
     318# it may need to clear something.
     319sub remove_all {
    318320    my $self = shift (@_);
    319321    my ($pluginfo, $base_dir, $processor, $maxdocs) = @_;
     322}
     323
     324# This is called per document for docs that have been deleted from the
     325# collection. Most plugins will do nothing
     326# but if a plugin does any stuff outside of creating doc obj, then it may need
     327# to clear something.
     328sub remove_one {
     329    my $self = shift (@_);
     330   
     331    my ($file, $oids) = @_;
    320332}
    321333
Note: See TracChangeset for help on using the changeset viewer.