Ignore:
Timestamp:
2005-07-06T15:27:45+12:00 (19 years ago)
Author:
kjdon
Message:

Jeffrey's new parsing modifications, committed approx 6 July, 15.16

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/perllib/plugins/FavouritesPlug.pm

    r9893 r10218  
    3434
    3535sub BEGIN {
    36     @ISA = ('BasPlug');
     36    @FavouritesPlug::ISA = ('BasPlug');
    3737}
    3838
     
    5252
    5353sub new {
    54     my ($class) = @_;
    55     my $self = new BasPlug ($class, @_);
    56     $self->{'plugin_type'} = "FavouritesPlug";
     54    my ($class) = shift(@_);
     55    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     56    push(@$pluginlist, $class);
    5757
    58     # To allow for proper inheritance of arguments
    59     my $option_list = $self->{'option_list'};
    60     push( @{$option_list}, $options );
     58    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     59    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     60
     61    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
    6162
    6263    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.