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

    r9578 r10218  
    2323
    2424sub new {
    25     my $class = shift (@_);
    26     my $self = new AZCompactList($class, @_);
    27 
    28     # 14-05-02 To allow for proper inheritance of arguments - John Thompson
    29     my $option_list = $self->{'option_list'};
    30     push( @{$option_list}, $options );
    31 
    32     #if ($self->{'info_only'}) {
    33     # created from classinfo.pl - don't need to parse the arguments
    34     #return bless $self, $class;
    35     #}
     25    my ($class) = shift (@_);
     26    my ($classifierslist,$inputargs,$hashArgOptLists) = @_;
     27    push(@$classifierslist, $class);
     28
     29    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     30    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     31
     32    my $self = (defined $hashArgOptLists)? new AZCompactList($classifierslist,$inputargs,$hashArgOptLists): new AZCompactList($classifierslist,$inputargs);
    3633
    3734    return bless $self, $class;
     
    117114# buttonname is also used for the node's title
    118115        push @args, ("-buttonname", "$metavalue");
    119         push @args, ("-sort", $self->{'sortname'});
    120 
     116        push @args, ("-sort", $self->{'sort'});
     117
     118        my $ptArgs = \@args;
    121119        if ($doclevel =~ m/^top(level)?/i)
    122120        {
    123             eval ("\$listclassobj = new List(\@args)"); warn $@ if $@;
     121            eval ("\$listclassobj = new List([],\$ptArgs)"); warn $@ if $@;
    124122        }
    125123        else
     
    127125            # SECTIONFIX?
    128126            #eval ("\$listclassobj = new SectionList($args)");
    129             eval ("\$listclassobj = new SectionList(\@args)");
     127            eval ("\$listclassobj = new SectionList([],\$ptArgs)");
    130128        }
    131129        }
     
    143141        # SECTIONFIX?
    144142        #eval ("\$listclassobj = new AZCompactList($args)");
    145         eval ("\$listclassobj = new AZCompactList(\@args)");
     143        my $ptArgs = \@args;
     144        eval ("\$listclassobj = new AZCompactList([],\$ptArgs)");
    146145        }
    147146        if ($@) {
Note: See TracChangeset for help on using the changeset viewer.