Source for file messageclass.php

Documentation is available at messageclass.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 METAjour
8 * @subpackage core
9 * $Id: messageclass.php,v 1.3 2004/10/14 16:12:44 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class message extends basic {
15
16 function message() {
17 $this->basic();
18 $this->addcolumn('touser',0,UI_STRING);
19 $this->addcolumn('fromuser',0,UI_STRING);
20 $this->addcolumn('name',0,UI_STRING);
21 $this->addcolumn('content',0,UI_TEXT);
22 $this->addcolumn('readstatus',0,UI_HIDDEN);
23 $this->addcolumn('messagetype',0,UI_HIDDEN);
24
25 $this->removeview('createvariant');
26 $this->removeview('createfuture');
27 $this->removeview('approvepublish');
28 $this->removeview('requestapproval');
29 }
30
31 function prv_createobject(&$arr) {
32 parent::prv_createobject($arr);
33 // select empty record to initialize recordset
34 $this->abstractsetoptions($this->getObjectId(), 'createdby', $arr['touser']);
35 }
36
37 }

Documentation generated on Thu, 9 Jun 2005 06:52:51 +0200 by phpDocumentor 1.2.3