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',
15
                     'nullable' => false
16
                  ),
17
                  'name' => array (
56 rodolico 18
                     'fieldname' => 'name',
53 rodolico 19
                     'displayName' => 'Owner',
20
                     'type' => 'varchar',
21
                     'size' => 64,
22
                     'list' => true
23
                  ),
63 rodolico 24
                  'uuid' => array (
25
                     'fieldname' => 'uuid',
26
                     'displayName' => 'UUID',
27
                     'type' => 'varchar',
28
                     'size' => 36,
29
                     'list' => false
30
                  ),
53 rodolico 31
                  'created' => array (
56 rodolico 32
                     'fieldname' => 'created',
53 rodolico 33
                     'displayName' => 'Created',
34
                     'type' => 'date'
35
                  ),
36
                  'removed' => array(
56 rodolico 37
                     'fieldname' => 'removed',
53 rodolico 38
                     'displayName' => 'Removed',
39
                     'type' => 'date'
40
                  )
41
               ) // fields
56 rodolico 42
            ), // table
43
            'view' => array(
44
               'viewName' => 'view_device_location_owner_type',
45
               'primaryKey' => 'owner_id',
46
               'selectionDisplay' => 'owner',
47
               'fields' => array(
48
                  'removed' => array( 
49
                     'fieldname' => 'owner_removed'
50
                  )
51
               )
59 rodolico 52
            ), // view
53
            'children' => array(
54
                  'Location'
55
            ) // children
53 rodolico 56
         ); // dbStructure
59 rodolico 57
 
53 rodolico 58
   }
59
 
60
?>