3 * Copyright 2005, STMicroelectronics
5 * Originally written by Manuel Vacelet
7 * This file is a part of Codendi.
9 * Codendi is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * Codendi is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with Codendi. If not, see <http://www.gnu.org/licenses/>.
24 * Representation of model.
26 * This is a part of lite Model/View/Controler design pattern.
28 * @package Codendi-mvc
29 * @copyright STMicroelectronics, 2005
30 * @author Manuel Vacelet <manuel.vacelet-abecedaire@st.com>
31 * @license http://opensource.org/licenses/gpl-license.php GPL
34 /* protected array */ var $html_params;
35 /* protected string */ var $view;
36 /* protected Controler */ var $_controler;
38 function View(&$controler, $view = null, $params = array()) {
39 $this->_controler =& $controler;
41 $this->html_params = $params;
44 function getControler() {
45 return $this->_controler;
50 site_project_header($this->html_params);
54 site_project_footer($this->html_params);
61 function display($view='') {
63 if(!empty($view)) $this->$view();