Subversion Repositories computer_asset_manager_v2

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
53 rodolico 1
<?php
2
   require_once( 'camp.class.php' );
3
 
4
   class Owner extends Camp {
5
      protected static $dbStructure = array(
6
         'table' => array( 
7
            'tableName' => 'owner',
8
            'primaryKey' => 'owner_id',
9
            'selectionDisplay' => 'name',
10
            'fields' => array(
56 rodolico 11
                  'id' => array (
12
                     'fieldname' => 'owner_id',
53 rodolico 13
                     'displayName' => 'ID',
14
                     'type' => 'int unsigned',
67 rodolico 15
                     'nullable' => false,
16
                     'canEdit' => false
53 rodolico 17
                  ),
18
                  'name' => array (
56 rodolico 19
                     'fieldname' => 'name',
53 rodolico 20
                     'displayName' => 'Owner',
21
                     'type' => 'varchar',
22
                     'size' => 64,
23
                     'list' => true
24
                  ),
63 rodolico 25
                  'uuid' => array (
26
                     'fieldname' => 'uuid',
27
                     'displayName' => 'UUID',
28
                     'type' => 'varchar',
29
                     'size' => 36,
30
                     'list' => false
31
                  ),
53 rodolico 32
                  'created' => array (
56 rodolico 33
                     'fieldname' => 'created',
53 rodolico 34
                     'displayName' => 'Created',
35
                     'type' => 'date'
36
                  ),
37
                  'removed' => array(
56 rodolico 38
                     'fieldname' => 'removed',
53 rodolico 39
                     'displayName' => 'Removed',
40
                     'type' => 'date'
41
                  )
42
               ) // fields
56 rodolico 43
            ), // table
44
            'view' => array(
45
               'viewName' => 'view_device_location_owner_type',
46
               'primaryKey' => 'owner_id',
47
               'selectionDisplay' => 'owner',
48
               'fields' => array(
49
                  'removed' => array( 
50
                     'fieldname' => 'owner_removed'
51
                  )
52
               )
59 rodolico 53
            ), // view
54
            'children' => array(
66 rodolico 55
                  'Location' => array(),
56
                  'Device' => array()
59 rodolico 57
            ) // children
53 rodolico 58
         ); // dbStructure
59 rodolico 59
 
53 rodolico 60
   }
61
 
62
?>