Changeset 10218 for trunk/gsdl/perllib/classify/AZCompactSectionList.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/classify/AZCompactSectionList.pm
r9578 r10218 23 23 24 24 sub 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); 36 33 37 34 return bless $self, $class; … … 117 114 # buttonname is also used for the node's title 118 115 push @args, ("-buttonname", "$metavalue"); 119 push @args, ("-sort", $self->{'sortname'}); 120 116 push @args, ("-sort", $self->{'sort'}); 117 118 my $ptArgs = \@args; 121 119 if ($doclevel =~ m/^top(level)?/i) 122 120 { 123 eval ("\$listclassobj = new List( \@args)"); warn $@ if $@;121 eval ("\$listclassobj = new List([],\$ptArgs)"); warn $@ if $@; 124 122 } 125 123 else … … 127 125 # SECTIONFIX? 128 126 #eval ("\$listclassobj = new SectionList($args)"); 129 eval ("\$listclassobj = new SectionList( \@args)");127 eval ("\$listclassobj = new SectionList([],\$ptArgs)"); 130 128 } 131 129 } … … 143 141 # SECTIONFIX? 144 142 #eval ("\$listclassobj = new AZCompactList($args)"); 145 eval ("\$listclassobj = new AZCompactList(\@args)"); 143 my $ptArgs = \@args; 144 eval ("\$listclassobj = new AZCompactList([],\$ptArgs)"); 146 145 } 147 146 if ($@) {
Note:
See TracChangeset
for help on using the changeset viewer.