use Apache::Constants ":common";
use strict;
use warnings;
-our $VERSION = "0.1";
-__PACKAGE__->mk_classdata($_) for qw( _config init_done view_object );
-__PACKAGE__->mk_accessors ( qw( config ar params objects model_class
+our $VERSION = "0.2";
+__PACKAGE__->mk_classdata($_) for qw( config init_done view_object );
+__PACKAGE__->mk_accessors ( qw( ar params query objects model_class
args action template ));
__PACKAGE__->config({});
__PACKAGE__->init_done(0);
}
}
-# This is really dirty.
-sub config {
- my $self = shift;
- if (ref $self) { return $self->_config_accessor(@_) }
- return $self->_config(@_);
-}
-
sub set_database {
my ($calling_class, $dsn) = @_;
$calling_class = ref $calling_class if ref $calling_class;
$self->{args} = \@pi;
$self->{params} = { $self->{ar}->content };
+ $self->{query} = { $self->{ar}->args };
}
sub is_applicable {