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
                  ),
24
                  'created' => array (
56 rodolico 25
                     'fieldname' => 'created',
53 rodolico 26
                     'displayName' => 'Created',
27
                     'type' => 'date'
28
                  ),
29
                  'removed' => array(
56 rodolico 30
                     'fieldname' => 'removed',
53 rodolico 31
                     'displayName' => 'Removed',
32
                     'type' => 'date'
33
                  )
34
               ) // fields
56 rodolico 35
            ), // table
36
            'view' => array(
37
               'viewName' => 'view_device_location_owner_type',
38
               'primaryKey' => 'owner_id',
39
               'selectionDisplay' => 'owner',
40
               'fields' => array(
41
                  'removed' => array( 
42
                     'fieldname' => 'owner_removed'
43
                  )
44
               )
59 rodolico 45
            ), // view
46
            'children' => array(
47
                  'Location'
48
            ) // children
53 rodolico 49
         ); // dbStructure
59 rodolico 50
 
53 rodolico 51
   }
52
 
53
?>