]> ruin.nu Git - ndwebbie.git/blobdiff - ND/Web/Pages/Settings.pm
settings class
[ndwebbie.git] / ND / Web / Pages / Settings.pm
index c059bc61b0860784bcd690ca7ec309b7f3d01141..5e8ecca5fa095ccf0c73fc47d0ca03de9a67b944 100644 (file)
@@ -24,20 +24,15 @@ use ND::Include;
 use CGI qw/:standard/;
 use ND::Web::Include;
 
-$ND::PAGES{settings} = {parse => \&parse, process => \&process, render=> \&render};
+our @ISA = qw/ND::Web::XMLPage/;
 
-sub parse {
-       my ($uri) = @_;
-}
-
-sub process {
-
-}
-
-sub render {
-       my ($DBH,$BODY) = @_;
+$ND::Web::Page::PAGES{settings} = __PACKAGE__;
 
-       $ND::TEMPLATE->param(TITLE => 'Edit site preferences');
+sub render_body {
+       my $self = shift;
+       my ($BODY) = @_;
+       $self->{TITLE} = 'Edit site preferences';
+       my $DBH = $self->{DBH};
 
        if (defined param 'cmd'){
                if(param('cmd') eq 'stylesheet'){