if (!empty($q['_filtered']) && !empty($this->ltype)) {
$cfg = $this->cfg();
$filter = $cfg[$this->ltype];
- print_R($filter);exit;
- $this->whereAddIn('lkey', $filter, 'string');
-
+ if(is_array($filter)){
+ $this->whereAddIn('lkey', $filter, 'string');
+ }
}
}
}
$ret[] = '**';
break;
+ case 't':
+ require_once 'I18Nv2/PhonePrefix.php';
+ $c = new I18Nv2_PhonePrefix('en');
+ $ret = array_keys($c->codes);
+ if (!empty($cfg['add_t'])) {
+ $ret = array_merge($ret, array_keys($cfg['add_m']));
+ }
+ $ret[] = '**';
+ break;
}
$this->buildDB('c');
$this->buildDB('l');
$this->buildDB('m');
+ $this->buildDB('t');
return;
}