Source for file customerclass.php

Documentation is available at customerclass.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: customerclass.php,v 1.4 2005/01/07 03:48:51 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class customer extends basic {
15
16 function customer() {
17 $this->basic();
18 $this->addcolumn('userid',0,UI_RELATION_NODEFAULT,'user');
19 $this->addcolumn('companyid',0,UI_RELATION_NODEFAULT,'company');
20 $this->addcolumn('contactid',0,UI_RELATION_NODEFAULT,'contact');
21 $this->addcolumn('name',0,UI_STRING);
22 $this->addcolumn('address1',0,UI_STRING);
23 $this->addcolumn('address2',0,UI_STRING);
24 $this->addcolumn('address3',0,UI_STRING);
25 $this->addcolumn('address4',0,UI_STRING);
26 $this->addcolumn('postalcode',0,UI_STRING);
27 $this->addcolumn('city',0,UI_STRING);
28 $this->addcolumn('state',0,UI_STRING);
29 $this->addcolumn('country',0,UI_STRING);
30 $this->addcolumn('telephone1',0,UI_STRING);
31 $this->addcolumn('telephone2',0,UI_STRING);
32 $this->addcolumn('telephone3',0,UI_STRING);
33 $this->addcolumn('telefax',0,UI_STRING);
34 $this->addcolumn('website',0,UI_STRING,'','');
35 $this->addcolumn('email1',0,UI_STRING,'','');
36 $this->addcolumn('email2',0,UI_STRING,'','');
37 $this->addcolumn('email3',0,UI_STRING,'','');
38 $this->addcolumn('comment',0,UI_TEXT);
39
40 $this->removeview('createvariant');
41 $this->removeview('createfuture');
42 $this->removeview('approvepublish');
43 $this->removeview('requestapproval');
44 }
45
46 function stdListCol() {
47 $arr[] = 'name';
48 $arr[] = 'address1';
49 $arr[] = 'postalcode';
50 $arr[] = 'city';
51 $arr[] = 'telephone1';
52 $arr[] = 'email1';
53 $arr[] = 'changed';
54 return $arr;
55 }
56
57 }

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