");
}
+ if (!empty($q['query']['name'])) {
+ //DB_DAtaObject::debugLevel(1);
+
+ $this->whereAdd("lval LIKE '". $this->escape($q['query']['name']). "%'");
+ }
}
function toTransList($ltype, $inlang)
{
- $x = DB_DataObject::factory('i18n');
- $x->ltype = $ltype;
- $x->inlang= $inlang;
- $x->selectAdd();
- $x->selectAdd('lkey as code, lval as title');
- $x->find();
+
+ $this->ltype = $ltype;
+ $this->inlang= $inlang;
+ $this->selectAdd();
+ $this->selectAdd('lkey as code, lval as title');
+
+ $this->find();
$ret = array();
- while ($x->fetch()) {
+ while ($this->fetch()) {
$ret[] = array(
- 'code' => $x->code,
- 'title' =>$x->title);
+ 'code' => $this->code,
+ 'title' => $this->title
+ );
}
return $ret;
}
$list = $this->availableCodes($ltype);
-
+ //print_r($list);
foreach($list as $lkey) {
// skip ones we know we have done...
if (in_array($lkey, $complete)) {