| // +---------------------------------------------------------------------------+ // $Id$ /** * Sets up objects for home page. * * @package default * @author Demian Turner * @version $Revision: 1.12 $ */ class DefaultMgr extends SGL_Manager { function DefaultMgr() { SGL::logMessage(null, PEAR_LOG_DEBUG); parent::SGL_Manager(); $this->pageTitle = 'Home'; $this->template = 'home.html'; $this->_aActionsMapping = array( 'list' => array('list'), ); } function validate($req, &$input) { SGL::logMessage(null, PEAR_LOG_DEBUG); $this->validated = true; $input->masterTemplate = $this->masterTemplate; $input->template = $this->template; $input->pageTitle = $this->pageTitle; // congratulate user on successful install their first visit $input->welcome = $req->get('welcome'); if ($input->welcome) { SGL::raiseMsg('Congratulations, install successful!', false, SGL_MESSAGE_INFO); } $input->action = ($req->get('action')) ? $req->get('action') : 'list'; } function _cmd_list(&$input, &$output) { SGL::logMessage(null, PEAR_LOG_DEBUG); } } ?>