56 include_once (
'Class.DbObj.php');
57 include_once (
'Class.QueryDb.php');
58 include_once (
'Class.Log.php');
78 create table lang (idapp int not null,
79 lang varchar(10) not null,
80 code varchar(60) not null,
81 fmt varchar(200) not null );
82 create index lang_idx1 on lang(idapp, lang, code);
90 $query->basic_elem->sup_where = array(
97 if (
$query->nb == 0)
return FALSE;
105 $this->deflang =
$lang;
107 $query->basic_elem->sup_where = array(
112 $query->basic_elem->sup_where = array(
117 $list = array_merge($lista, $listb);
119 foreach (
$list as $k => $v) {
120 $this->buffer[$v->code] = $v->fmt;
126 $this->idapp = $idapp;
130 if ($this->exist($idapp, $code,
$lang)) {
141 $query->basic_elem->sup_where = array(
149 $this->fmttxt =
"**{$code}**";
157 $nfmt = preg_replace(
"/%([0-9]+)%/",
"{\$args[\\1]}", $uf);
158 eval(
"\$out = \"$nfmt\";");
159 $this->fmttxt =
$out;
165 if (!isset($this->buffer[$code]))
return FALSE;
166 $uf = $this->buffer[$code];
170 $nfmt = preg_replace(
"/%([0-9]+)%/",
"{\$args[\\1]}", $uf);
171 eval(
"\$out = \"$nfmt\";");
172 $this->fmttxt =
$out;
180 $query->basic_elem->sup_where = array(
185 foreach (
$list as $k => $v) $v->delete();
if(substr($wsh, 0, 1)!= '/') $args
GetText($code, $args=NULL)
Add($nopost=false, $nopre=false)
Store($idapp, $code, $lang, $fmt)
Get($idapp, $lang, $code, $args=NULL)
if(($docid!==0)&&(!is_numeric($docid))) $query
SetEnv($id, $lang, $deflang)
Exist($idapp, $code, $lang)