+
+ if (!empty($q['_as_code_and_title'])) {
+ $tn = $this->tableName();
+
+ $this->selectAdd();
+ $this->selectAdd("
+ {$tn}.lval as title,
+ {$tn}.lkey as code
+ ");
+ $this->is_active = 1;
+ if (!empty($q['_title'])) {
+ $this->whereAdd("{$tn}.lval like '{$this->escape($_REQUEST['_title'])}%'");
+ }
+ }
+
+ if (!empty($q['!code'])) {
+ $this->whereAddIn('!lkey', explode(',', $q['!code']), 'string');
+ }