3 * Copyright 2005, STMicroelectronics
5 * Originally written by Manuel Vacelet
7 * This file is a part of Fusionforge.
9 * Fusionforge 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 * Fusionforge 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 * Link datas, views and actions.
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 */ var $gid;
35 /* protected */ var $view;
36 /* protected */ var $action;
37 /* protected */ var $_viewParams = array();
38 /* protected */ var $_actionParams = array();
43 function viewsManagement() {
44 $className = get_class($this).'Views';
45 $wv = new $className($this, $this->gid, $this->view, $this->_viewParams);
46 return $wv->display($this->view);
49 function actionsManagement() {
50 $className = get_class($this).'Actions';
51 $wa = new $className($this, $this->gid);
52 $wa->process($this->action, $this->_actionParams);
59 $this->actionsManagement();
61 return $this->viewsManagement();