Ignore:
Timestamp:
2006-11-22T10:38:19+13:00 (17 years ago)
Author:
kjdon
Message:

upgraded these so they work properly with classinfo.pl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/niupepa/perllib/classify/NPDateList.pm

    r1023 r13312  
    3030use DateList;
    3131
     32use strict;
     33no strict 'refs'; # allow filehandles to be variables and viceversa
     34
    3235sub BEGIN {
    33     @ISA = ('DateList');
     36    @NPDateList::ISA = ('DateList');
     37}
     38
     39my $arguments;
     40
     41my $options = { 'name'     => "NPDateList",
     42        'desc'     => "Niupepa specific DateList",
     43        'abstract' => "no",
     44        'inherits' => "yes" };
     45
     46sub new {
     47    my ($class) = shift (@_);
     48    my ($classifierslist,$inputargs,$hashArgOptLists) = @_;
     49    push(@$classifierslist, $class);
     50
     51    if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});}
     52    if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)};
     53
     54    my $self = new DateList($classifierslist, $inputargs, $hashArgOptLists);
     55
     56    return bless $self, $class;
    3457}
    3558
Note: See TracChangeset for help on using the changeset viewer.