Fix #7123 - getting abra ready to test
[Pman.Xtuple] / DataObjects / Country.php
1 <?php
2 /**
3  * Table Definition for country
4  */
5 require_once 'DB/DataObject.php';
6
7 class Pman_Xtuple_DataObjects_Country extends DB_DataObject 
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'country';             // table name
13     public $country_id;                      // int4(4)  not_null default_nextval%28country_country_id_seq%29 primary_key
14     public $country_abbr;                    // bpchar(-1)  unique_key
15     public $country_name;                    // text(-1)  unique_key
16     public $country_curr_abbr;               // bpchar(-1)  
17     public $country_curr_name;               // text(-1)  
18     public $country_curr_number;             // bpchar(-1)  
19     public $country_curr_symbol;             // varchar(-1)  
20     public $country_qt_number;               // int4(4)  
21
22     
23     /* the code above is auto generated do not remove the tag below */
24     ###END_AUTOCODE
25     function applyFilters($q, $au)
26     {
27         //DB_DataObject::debugLevel(1);
28         if (!empty($q['query']['country_name'])) {
29             $v = $this->escape($q['query']['country_name']);
30             $this->whereAdd("country_name ILIKE '$v%'");
31         }
32         
33         
34     }
35 }