Source for file companyclass.php

Documentation is available at companyclass.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: companyclass.php,v 1.5 2005/01/07 03:47:51 jan Exp $
10 */
11
12 require_once('basicclass.php');
13
14 class company extends basic {
15
16 function company() {
17 $this->basic();
18 $this->addcolumn('name',0,UI_STRING);
19 $this->addcolumn('address1',0,UI_STRING);
20 $this->addcolumn('address2',0,UI_STRING);
21 $this->addcolumn('address3',0,UI_STRING);
22 $this->addcolumn('address4',0,UI_STRING);
23 $this->addcolumn('postalcode',0,UI_STRING);
24 $this->addcolumn('city',0,UI_STRING);
25 $this->addcolumn('state',0,UI_STRING);
26 $this->addcolumn('country',0,UI_STRING);
27 $this->addcolumn('telephone1',0,UI_STRING);
28 $this->addcolumn('telephone2',0,UI_STRING);
29 $this->addcolumn('telephone3',0,UI_STRING);
30 $this->addcolumn('telefax',0,UI_STRING);
31 $this->addcolumn('website',0,UI_STRING);
32 $this->addcolumn('email',0,UI_STRING);
33 $this->addcolumn('timezone',0,UI_STRING);
34 $this->addcolumn('comment',0,UI_TEXT);
35
36 $this->removeview('createvariant');
37 }
38
39 function initLayout() {
40 basic::initLayout();
41 $this->addRelationDatatype('contact','objectid','companyid');
42 $this->addRelationDatatype('task','objectid','companyid');
43 $this->addRelationDatatype('meeting','objectid','companyid');
44 $this->byside3('postalcode','city', 'state');
45 $this->byside3('telephone1','telephone2','telephone3');
46 $this->addcolumnstyle('postalcode','width: 50px;');
47 $this->addcolumnstyle('city','width: 125px;');
48 $this->addcolumnstyle('state','width: 50px;');
49 $this->addcolumnstyle('telephone1','width: 75px;');
50 $this->addcolumnstyle('telephone2','width: 75px;');
51 $this->addcolumnstyle('telephone3','width: 75px;');
52 $this->addcolumnstyle('comment','width: 400px; height: 80px');
53 }
54
55 function stdListCol() {
56 $arr[] = 'name';
57 $arr[] = 'address1';
58 $arr[] = 'postalcode';
59 $arr[] = 'city';
60 $arr[] = 'telephone1';
61 $arr[] = 'email1';
62 $arr[] = 'changed';
63 return $arr;
64 }
65
66 }

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