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(
11
                  'owner_id' => array (
12
                     'displayName' => 'ID',
13
                     'type' => 'int unsigned',
14
                     'nullable' => false
15
                  ),
16
                  'name' => array (
17
                     'displayName' => 'Owner',
18
                     'type' => 'varchar',
19
                     'size' => 64,
20
                     'list' => true
21
                  ),
22
                  'created' => array (
23
                     'displayName' => 'Created',
24
                     'type' => 'date'
25
                  ),
26
                  'removed' => array(
27
                     'displayName' => 'Removed',
28
                     'type' => 'date'
29
                  )
30
               ) // fields
31
            ) // table
32
         ); // dbStructure
33
         public static $myName = 'owner';
34
 
35
   }
36
 
37
?>