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

    r8121 r10218  
    102102
    103103sub new {
    104     my $class = shift (@_);
    105     my $self = new SplitPlug ($class, @_);
    106     $self->{'plugin_type'} = "ReferPlug";
    107     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    108     my $option_list = $self->{'option_list'};
    109     push( @{$option_list}, $options );
     104    my ($class) = shift (@_);
     105    my ($pluginlist,$inputargs,$hashArgOptLists) = @_;
     106    push(@$pluginlist, $class);
     107
     108    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     109    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     110
     111    my $self = (defined $hashArgOptLists)? new SplitPlug($pluginlist,$inputargs,$hashArgOptLists): new SplitPlug($pluginlist,$inputargs);
    110112
    111113    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.