All pastes #164133 Raw Edit

Untitled

public php v1 · immutable
·published 2006-09-08 10:03 UTC
rendered paste body
<?phperror_reporting(E_ALL);/** * untitledModel - class.AdminController.php * * $Id$ * * This file is part of untitledModel. * * Automatic generated with ArgoUML 0.20 on 29.08.2006, 18:32:30 * * @author firstname and lastname of author, <author@example.org> */if (0 > version_compare(PHP_VERSION, '5')) {    die('This file was generated for PHP 5');}/** * include AdminView * * @author firstname and lastname of author, <author@example.org> */require_once('class.AdminView.php');/** * include Controller * * @author firstname and lastname of author, <author@example.org> */require_once('class.Controller.php');/* user defined includes */// section .:0000000000000AE0-includes begin// section .:0000000000000AE0-includes end/* user defined constants */// section .:0000000000000AE0-constants begin// section .:0000000000000AE0-constants end/** * Short description of class AdminController * * @access public * @author firstname and lastname of author, <author@example.org> */class AdminController    extends Controller{    // --- ATTRIBUTES ---    /**     * Short description of attribute m_controller     *     * @access protected     * @var object     */    protected static $m_controller = null;    // --- OPERATIONS ---    /**     * Short description of method __construct     *     * @access public     * @author firstname and lastname of author, <author@example.org>     * @return void     */    public function __construct()    {        // section .:0000000000000AE5 begin        // section .:0000000000000AE5 end    }    /**     * Short description of method handleEvent     *     * @access public     * @author firstname and lastname of author, <author@example.org>     * @param string     * @return void     */    public function handleEvent($event)    {        // section .:0000000000000AE7 begin        $admin = array_key_exists('admin', $_REQUEST) ? $_REQUEST['admin'] : 'home';        switch ($admin) {                case 'add_form' :                        // let the view get the specific request parameters it needs			$view = new AdminAddView($_REQUEST);			break;		case 'add_product' :                        // let the view get the specific request parameters it needs                        $view = new AdminAddView($_REQUEST);                        break;	               case 'delete_form' :                        include ('design/admin_delete_form.php');                       break;               case 'edit_form' :			include ('design/search_form.php');                       break;				default:			include ('design/admin_form.php');                }                if (isset ($view))                      $view->display();        // section .:0000000000000AE7 end    }    /**     * Short description of method getInstance     *     * @access public     * @author firstname and lastname of author, <author@example.org>     * @return object     */    public function getInstance()    {        $returnValue = null;        // section .:0000000000000AE9 begin                if (!isset (self :: $m_controller))                        self::$m_controller = new AdminController();                $returnValue = self :: $m_controller;        // section .:0000000000000AE9 end        return $returnValue;    }} /* end of class AdminController */?>