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/classify/AZSectionList.pm

    r8852 r10218  
    5252
    5353sub new {
    54     my $class = shift (@_);
    55     my $self = new AZList($class, @_);
     54    my ($class) = shift (@_);
     55    my ($classifierslist,$inputargs,$hashArgOptLists) = @_;
     56    push(@$classifierslist, $class);
    5657
    57     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    58     my $option_list = $self->{'option_list'};
    59     push( @{$option_list}, $options );
    60    
    61     #if ($self->{'info_only'}) {
    62     # created from classinfo.pl - don't need to parse the arguments
    63     #   return bless $self, $class;
    64     #}
     58    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     59    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     60
     61    my $self = (defined $hashArgOptLists)? new AZList($classifierslist,$inputargs,$hashArgOptLists): new AZList($classifierslist,$inputargs);
    6562
    6663    return bless $self, $class;
Note: See TracChangeset for help on using the changeset viewer.