ed27c82ce8bdc217548df0e454e036189b11ea79
[Pman.Core] / DataObjects / I18n.php
1 <?php
2 /**
3  * Table Definition for i18n
4  */
5 require_once 'DB/DataObject.php';
6
7 class Pman_Core_DataObjects_I18n extends DB_DataObject 
8 {
9     ###START_AUTOCODE
10     /* the code below is auto generated do not remove the above tag */
11
12     public $__table = 'i18n';                            // table name
13     public $id;                              // int(11)  not_null primary_key auto_increment
14     public $ltype;                           // string(1)  not_null multiple_key
15     public $lkey;                            // string(8)  not_null
16     public $inlang;                          // string(8)  not_null
17     public $lval;                            // string(64)  not_null
18
19     
20     /* the code above is auto generated do not remove the tag below */
21     ###END_AUTOCODE
22     
23     function applyFilters($q, $au)
24     {
25         
26         //DB_DataObject::debugLevel(1);
27         if (!empty($q['query']['_with_en'])) {
28             $this->selectAdd(""
29                 i18n_translate(ltype, lkey, 'en') as lval_en
30                 
31             ")
32             
33             
34             
35         }
36     }
37 }