Documentation is available at eproject_projectelementclass.php
1 <?php
2 /**
3 * @author Jan H. Andersen <jha@ipwsystems.dk>
4 * @author Martin R. Larsen <mrl@ipwsystems.dk>
5 * @copyright {@link http://www.ipwsystems.dk/ IPW Systems a.s}
6 * @license http://opensource.org/licenses/gpl-license.php GNU Public License
7 * @package eProject
8 * @subpackage core
9 * $Id: eproject_projectelementclass.php,v 1.4 2005/02/02 14:22:13 SYSTEM Exp $
10 */
11
12 require_once($system_path."core/basicclass.php");
13
14 class eproject_projectelement extends basic {
15
16 function eproject_projectelement() {
17 $this->basic();
18 $this->setobjecttype('projectelement');
19 $this->setsupertype('project');
20 $this->addcolumn('name',0,UI_STRING);
21 $this->addcolumn('content',0,UI_TEXT_WRAP);
22 $this->addcolumn('comment',0,UI_TEXT_WRAP);
23 #$this->addcolumn('status',0,UI_HIDDEN);
24 $this->addcolumn('dato1',0,UI_DATE);
25 $this->addcolumn('dato2',0,UI_DATE);
26 $this->addcolumn('messageto',0,UI_RELATION,'user');
27
28 $this->removeview('createvariant');
29 $this->removeview('access');
30 $this->removeview('category');
31 }
32
33 function stdListCol() {
34 $arr[] = 'name';
35 $arr[] = 'content';
36 $arr[] = 'dato1';
37 $arr[] = 'dato2';
38 $arr[] = 'messageto';
39 $arr[] = 'changed';
40 return $arr;
41 }
42
43 function initLayout() {
44 parent::initLayout();
45 $this->addcolumnstyle('content','width: 650px; height: 80px');
46 $this->addcolumnstyle('comment','width: 650px; height: 80px');
47 $this->addcolumnstyle('dato1','width: 60px;');
48 $this->addcolumnstyle('dato2','width: 60px;');
49 }
50
51 }
Documentation generated on Thu, 9 Jun 2005 06:52:05 +0200 by phpDocumentor 1.2.3