Subversion Repositories computer_asset_manager_v2

Rev

Rev 53 | Rev 59 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

<?php
   require_once( 'camp.class.php' );

   class Location extends Camp {
      protected static $dbStructure = array(
         'table' => array( 
            'tableName' => 'location',
            'primaryKey' => 'location_id',
            'selectionDisplay' => 'name',
            'fields' => array(
                  'id' => array (
                     'fieldname' => 'location_id',
                     'displayName' => 'ID',
                     'type' => 'int unsigned',
                     'nullable' => false
                  ),
                  'name' => array (
                     'fieldname' => 'name',
                     'displayName' => 'Location',
                     'type' => 'varchar',
                     'size' => 64,
                     'list' => true
                  ),
                  'created' => array (
                     'fieldname' => 'created',
                     'displayName' => 'Created',
                     'type' => 'date'
                  ),
                  'removed' => array(
                     'fieldname' => 'removed',
                     'displayName' => 'Removed',
                     'type' => 'date'
                  )
            ) // fields
         ), // table
         'view' => array(
            'viewName' => 'view_device_location_owner_type',
            'primaryKey' => 'location_id',
            'selectionDisplay' => 'location',
            'fields' => array(
               'removed' => array( 
                  'fieldname' => 'location_removed'
               )
            )
         )
      ); // dbStructure
   }

?>