| verzia 1.9, 2002/08/01 20:52:58 |
verzia 1.10, 2002/08/02 20:55:36 |
| Riadok 259 class phpTemplate |
|
| Riadok 259 class phpTemplate |
|
| if (is_array($this->_set_vars[$key])) { |
if (is_array($this->_set_vars[$key])) { |
| $ret .= $val[0]; |
$ret .= $val[0]; |
| } else { |
} else { |
| $ret .= '$' . $key . '=\'' |
$ret = '$' . $key . '=\'' |
| . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) . '\';'; |
. str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) . '\';' |
| |
. $ret; |
| } |
} |
| } |
} |
| |
|
| Riadok 312 class phpTemplate |
|
| Riadok 313 class phpTemplate |
|
| |
|
| if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) { |
if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) { |
| foreach ($this->_set_vars as $key => $val) { |
foreach ($this->_set_vars as $key => $val) { |
| if (! is_array($val)) { |
if (is_array($this->_set_vars[$key])) { |
| $ret .= ('$'.$key.'__phpTemplate_var_bck=$'.$key.';'); |
$ret .= '$'.$key.'__phpTemplate_var_bck=$'.$key.';'; |
| |
$ret .= $val[0]; |
| |
} else { |
| |
$ret = '$' . $key . '=\'' |
| |
. str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) |
| |
. '\';' . "\n" |
| |
. $ret; |
| |
$ret = '$'.$key.'__phpTemplate_var_bck=$'.$key.';' . "\n" . $ret; |
| } |
} |
| } |
} |
| } |
} else { |
| |
foreach ($this->_set_vars as $key => $val) { |
| foreach ($this->_set_vars as $key => $val) { |
if (is_array($this->_set_vars[$key])) { |
| if (is_array($this->_set_vars[$key])) { |
$ret .= $val[0]; |
| $ret .= $val[0]; |
} else { |
| } else { |
$ret = '$' . $key . '=\'' |
| $ret .= ('$' . $key . '=\'' |
|
| . str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) |
. str_replace('\'', '\\\'', str_replace('\\', '\\\\\\\\', $val)) |
| . '\';' . "\n"); |
. '\';' . "\n" |
| |
. $ret; |
| |
} |
| } |
} |
| } |
} |
| |
|
| Riadok 350 class phpTemplate |
|
| Riadok 359 class phpTemplate |
|
| |
|
| if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) { |
if ($this->_method & PHP_TEMPLATE_METHOD_VAR_KEEP) { |
| foreach ($this->_set_vars as $key => $val) { |
foreach ($this->_set_vars as $key => $val) { |
| if (! is_array($val)) { |
$ret .= '$'.$key.'=$'.$key.'__phpTemplate_var_bck;'; |
| $ret .= ('$'.$key.'=$'.$key.'__phpTemplate_var_bck;'); |
|
| } |
|
| } |
} |
| } |
} |
| |
|