<?php
/* Reminder: always indent with 4 spaces (no tabs). */
/**
* This file is part of the Apteno MVCnPHP Sample Application
*
* MVCnPHP is free software: you can redistribute it and/or modify it under the terms of the GNU
* General Public License as published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* MVCnPHP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License along with MVCnPHP. If not,
* see <http://www.gnu.org/licenses/>.
*
* @category Apteno
* @package Apteno_MVCnPHP_Sample
* @author Tony Bibbs <tony@apteno.net>
* @author Michael Tutty <michael.tutty@gmail.com>
* @copyright Copyright (c) 2008-2009 Apteno L.C. (http://www.apteno.net)
* @license http://www.apteno.net/GPL.html GNU General Public License
* @version $Revision: 373 $
*
*/
/**
* Abstract parent
*/
require getOption('path') . 'modules/kernel/views/SampleBaseView.php';
/**
* Shows the Login Page
*
*/
class LoginView extends SampleBaseView {
/**
* Used by controller to register the action name(s) this view would like to serve requests for
*
* NOTE: during processing controller will ensure the names given are unique amongst all views
* and commands
*
* @access public
* @static
* @return array Collection of action names
*
*/
public static function getActions()
{
return array('Login','login');
}
/**
* Used by controller to register any forwards this view.
*
* @access public
* @static
* @return Array collection of forwards
* @see Apteno\MVCnPHP\Forward
*
*/
public static function getForwards()
{
return array();
}
/**
* No user required to do a login
*
* @access public
*
*/
public function __construct() {
parent::__construct();
$this->setUserRequired(false);
}
/**
* Render the view
*
* NOTE the call to compileAndOutput() can be given an explicit template file name. In this
* case we don't pass anything so it will be assumed LoginView.thtml is the template to use.
*
* @access public
*
*/
public function processView()
{
$this->setPageTitle('Login');
$this->showHeader(false);
$this->compileAndOutput();
// Same as: $this->compileAndOutput('LoginView.thtml');
$this->showFooter();
}
}
?>