]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Apache/MVC/Base.pm
Merged Apache2::MVC into Apache::MVC, deprecated $r->{query}
[maypole.git] / lib / Apache / MVC / Base.pm
diff --git a/lib/Apache/MVC/Base.pm b/lib/Apache/MVC/Base.pm
deleted file mode 100644 (file)
index 996240d..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-package Apache::MVC::Base;
-
-use strict;
-use warnings;
-
-sub parse_location {
-    my $self = shift;
-    $self->{path} = $self->{ar}->uri;
-    my $loc = $self->{ar}->location;
-    no warnings 'uninitialized';
-    $self->{path} =~ s/^($loc)?\///;
-    $self->parse_path;
-    $self->parse_args;
-}
-
-sub send_output {
-    my $r = shift;
-    $r->{ar}->content_type( $r->{content_type} );
-    $r->{ar}->headers_out->set( "Content-Length" => length $r->{output} );
-    $r->{ar}->send_http_header;
-    $r->{ar}->print( $r->{output} );
-}
-
-sub get_template_root {
-    my $r = shift;
-    $r->{ar}->document_root . "/" . $r->{ar}->location;
-}
-
-1;
-
-=head1 NAME
-
-Apache::MVC::Base - Apache front-end base class
-
-=head1 SYNOPSIS
-
-    use base 'Apache::Maypole::Base';
-
-=head1 DESCRIPTION
-
-The base class for the Apache and Apache2 front-ends.
-
-=head1 AUTHOR
-
-Simon Cozens, C<simon@cpan.org>
-Screwed up by Sebastian Riedel, C<sri@oook.de>
-
-=head1 LICENSE
-
-You may distribute this code under the same terms as Perl itself.