58 include_once (
'Class.DbObj.php');
59 include_once (
'Class.QueryDb.php');
60 include_once (
'Class.Log.php');
80 create table lang (idapp int not null,
81 lang varchar(10) not null,
82 code varchar(60) not null,
83 fmt varchar(200) not null );
84 create index lang_idx1 on lang(idapp, lang, code);
92 $query->basic_elem->sup_where = array(
99 if (
$query->nb == 0)
return FALSE;
107 $this->deflang =
$lang;
109 $query->basic_elem->sup_where = array(
114 $query->basic_elem->sup_where = array(
119 $list = array_merge($lista, $listb);
121 while (list($k, $v) = each(
$list)) {
122 $this->buffer[$v->code] = $v->fmt;
128 $this->idapp = $idapp;
132 if ($this->exist($idapp, $code,
$lang)) {
143 $query->basic_elem->sup_where = array(
151 $this->fmttxt =
"**{$code}**";
159 $nfmt = preg_replace(
"/%([0-9]+)%/",
"{\$args[\\1]}", $uf);
160 eval(
"\$out = \"$nfmt\";");
161 $this->fmttxt =
$out;
167 if (!isset($this->buffer[$code]))
return FALSE;
168 $uf = $this->buffer[$code];
172 $nfmt = preg_replace(
"/%([0-9]+)%/",
"{\$args[\\1]}", $uf);
173 eval(
"\$out = \"$nfmt\";");
174 $this->fmttxt =
$out;
182 $query->basic_elem->sup_where = array(
187 while (list($k, $v) = each(
$list)) $v->delete();