Solstice::Controller::Redirect - The controller for Redirect


Solstice documentation Contained in the Solstice distribution.

Index


Code Index:

NAME

Top

Solstice::Controller::Redirect - The controller for Redirect

SYNOPSIS

Top

  # See L<Solstice::Controller> for usage.

DESCRIPTION

Top

This is the controller for the page Redirect

The canonical solstice redirector. Give it a URL, users will be redirected to it.

Export

None by default.

Methods

new($url)

Constructor.

getView()

Creates the view object for Redirect.

validPreConditions()
revert()
update()
validate()
commit()

AUTHOR

Top

Catalyst Research & Development Group, <catalyst@u.washington.edu>

VERSION

Top

$Revision: $

SEE ALSO

Top

Solstice::Controller, Solstice::View::Redirect, perl.

COPYRIGHT

Top


Solstice documentation Contained in the Solstice distribution.
package Solstice::Controller::Redirect;

# $Id: $

use strict;
use warnings;
use 5.006_000;

use base qw(Solstice::Controller);

use Solstice::CGI;
use Solstice::View::Redirect;

use constant TRUE  => 1;
use constant FALSE => 0;

our ($VERSION) = ('$Revision: $' =~ /^\$Revision:\s*([\d.]*)/);

sub new {
    my $class = shift;
    my $self = $class->SUPER::new(@_);

    return $self;
}


sub getView {
    my $self = shift;

    my $view = Solstice::View::Redirect->new($self->getModel());


    return $view;
}


sub validPreConditions {
    my $self = shift;

    return TRUE if defined $self->getModel();
    return FALSE;
}


sub revert {
    my $self = shift;
    return TRUE;
}


sub update {
    my $self = shift;

    return TRUE;
}


sub validate {
    my $self = shift;

    return $self->processConstraints();
}


sub commit {
    my $self = shift;

    return TRUE;
}


1;
__END__