3 * Table Definition for country
5 require_once 'DB/DataObject.php';
7 class Pman_Xtuple_DataObjects_Country extends DB_DataObject
10 /* the code below is auto generated do not remove the above tag */
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)
23 /* the code above is auto generated do not remove the tag below */
25 function applyFilters($q, $au)
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%'");