<?php

   class statesData extends Data {

      var $table = STATES_TABLE;

      var $config = array (
  'table' => STATES_TABLE,
  'idField' => 'osdate_states_id',
  'addedMsg' => 'Osdate States %s Added',
  'added_err' => 'Can\\\'t Add Osdate States',
  'editMsg' => 'Osdate States %s Updated',
  'editErr' => 'Can\\\'t Update Osdate States',
  'delErr' => 'Can\\\'t Delete Osdate States',
  'delMsg' => 'Osdate States %s Deleted',
  'blankErr' => 'Osdate States Empty',
  'fields' => 
  array (
    'id' => 
    array (
      'name' => 'id',
      'description' => 'Id',
      'type' => 'number',
      'min_len' => 0,
      'max_len' => 8,
      'blank_ok' => 0,
      'duplicate_ok' => 1,
    ),
    'code' => 
    array (
      'name' => 'code',
      'description' => 'Code',
      'type' => 'text',
      'min_len' => 0,
      'max_len' => 10,
      'blank_ok' => 1,
      'duplicate_ok' => 1,
    ),
    'name' => 
    array (
      'name' => 'name',
      'description' => 'Name',
      'type' => 'text',
      'min_len' => 0,
      'max_len' => 100,
      'blank_ok' => 1,
      'duplicate_ok' => 1,
    ),
    'enabled' => 
    array (
      'name' => 'enabled',
      'description' => 'Enabled',
      'type' => 'text',
      'min_len' => 0,
      'max_len' => 1,
      'blank_ok' => 1,
      'duplicate_ok' => 1,
    ),
    'countrycode' => 
    array (
      'name' => 'countrycode',
      'description' => 'Countrycode',
      'type' => 'text',
      'min_len' => 0,
      'max_len' => 5,
      'blank_ok' => 0,
      'duplicate_ok' => 1,
    ),
  ),
);   

      function statesData() {
      
         $this->Data($this->config);
      }
   }

?>
