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/BookPlug.pm

    r8121 r10218  
    7979
    8080sub new {
    81     my ($class) = @_;
    82     my $self = new BasPlug ("BookPlug", @_);
    83     $self->{'plugin_type'} = "BookPlug";
    84     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    85     my $option_list = $self->{'option_list'};
    86     push( @{$option_list}, $options );
    87    
     81    my ($class) = shift (@_);
     82    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     83    push(@$pluginlist, $class);
     84
     85    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     86    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     87
     88    my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs);
     89
    8890    return bless $self, $class;
    8991}
Note: See TracChangeset for help on using the changeset viewer.