3 |
// $Id$ |
// $Id$ |
4 |
// ------------------------------------------------------------------ |
// ------------------------------------------------------------------ |
5 |
// $Log$ |
// $Log$ |
6 |
|
// Revision 1.5 2002/12/19 10:30:06 joko |
7 |
|
// + argument 'newMode' for function getlt and function _getldsvar: let _getldsvar evaluate variable to still provide old behaviour/functionality |
8 |
|
// |
9 |
// Revision 1.4 2002/12/19 06:18:40 joko |
// Revision 1.4 2002/12/19 06:18:40 joko |
10 |
// + '$this->site' gets used here now |
// + '$this->site' gets used here now |
11 |
// |
// |
127 |
} |
} |
128 |
} |
} |
129 |
|
|
130 |
function _getldsvar($ldskey, $tpl=array()) { |
function _getldsvar($ldskey, $tpl=array(), $newMode = 0) { |
131 |
|
|
132 |
//print "ldskey: $ldskey<br>"; |
//print "ldskey: $ldskey<br>"; |
133 |
|
|
138 |
// interpolate variable-name |
// interpolate variable-name |
139 |
$var_value = eval($eval_string); |
$var_value = eval($eval_string); |
140 |
// interpolate variable-value to do some template-vars |
// interpolate variable-value to do some template-vars |
141 |
//$var_value = eval("return \"$var_value\";"); |
if (!$newMode) { |
142 |
|
$var_value = eval("return \"$var_value\";"); |
143 |
|
} |
144 |
|
|
145 |
// V1 - result interpolation using eval |
// V1 - result interpolation using eval |
146 |
// print $eval_string."<br>"; |
// print $eval_string."<br>"; |
224 |
return $this->lds; |
return $this->lds; |
225 |
} |
} |
226 |
|
|
227 |
function getlt($key, $tpl=array()) { |
function getlt($key, $tpl=array(), $newMode = 0) { |
228 |
//dprint("getlt: $key"); |
//dprint("getlt: $key"); |
229 |
if ($ldskey = $this->_dbkey2ldskey($key)) { |
if ($ldskey = $this->_dbkey2ldskey($key)) { |
230 |
return $this->_getldsvar($ldskey, $tpl); |
return $this->_getldsvar($ldskey, $tpl, $newMode); |
231 |
} |
} |
232 |
} |
} |
233 |
|
|