projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
DataObjects/I18n.php
[Pman.Core]
/
DataObjects
/
I18n.php
diff --git
a/DataObjects/I18n.php
b/DataObjects/I18n.php
index
a9cac84
..
4d45cd7
100644
(file)
--- a/
DataObjects/I18n.php
+++ b/
DataObjects/I18n.php
@@
-131,6
+131,16
@@
class Pman_Core_DataObjects_I18n extends DB_DataObject
i18n_translate(ltype, lkey, 'en') as lval_en
");
}
i18n_translate(ltype, lkey, 'en') as lval_en
");
}
+ if (!empty($q['_as_code_and_title'])) {
+ $this->selectAdd();
+ $this->selectAdd("
+ {$tn}.lval as title,
+ {$tn}.lkey as code
+ ");
+ if (!empty($q['_title'])) {
+ $this->whereAdd("{$tn}.lval like '{$this->escape($_REQUEST['_title'])}%'");
+ }
+ }
if (!empty($q['!code'])) {
$this->whereAddIn('!lkey', explode(',', $q['!code']), 'string');
if (!empty($q['!code'])) {
$this->whereAddIn('!lkey', explode(',', $q['!code']), 'string');