Changeset 10218 for trunk/gsdl/perllib/plugins/DBPlug.pm
- Timestamp:
- 2005-07-06T15:27:45+12:00 (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl/perllib/plugins/DBPlug.pm
r9853 r10218 61 61 62 62 sub new { 63 my ($class) = @_; 64 my $self = new BasPlug ($class, @_); 65 $self->{'plugin_type'} = "DBPlug"; 66 my $option_list = $self->{'option_list'}; 67 push( @{$option_list}, $options ); 68 69 # no plugin-specific options 70 # if (!parsargv::parse(\@_, "allow_extra_options")) { 71 # $self->print_txt_usage(""); # Use default resource bundle 72 # die "\n"; 73 # } 74 63 my ($class) = shift (@_); 64 my ($pluginlist,$inputargs,$hashArgOptLists) = @_; 65 push(@$pluginlist, $class); 66 67 if(defined $arguments){ push(@{$hashArgOptLists->{"ArgList"}},@{$arguments});} 68 if(defined $options) { push(@{$hashArgOptLists->{"OptList"}},$options)}; 69 70 my $self = (defined $hashArgOptLists)? new BasPlug($pluginlist,$inputargs,$hashArgOptLists): new BasPlug($pluginlist,$inputargs); 75 71 76 72 return bless $self, $class;
Note:
See TracChangeset
for help on using the changeset viewer.