本文整理汇总了PHP中clsTinyButStrong::f_Misc_UpdateArray方法的典型用法代码示例。如果您正苦于以下问题:PHP clsTinyButStrong::f_Misc_UpdateArray方法的具体用法?PHP clsTinyButStrong::f_Misc_UpdateArray怎么用?PHP clsTinyButStrong::f_Misc_UpdateArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clsTinyButStrong
的用法示例。
在下文中一共展示了clsTinyButStrong::f_Misc_UpdateArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: SetOption
function SetOption($o, $v = false, $d = false)
{
if (!is_array($o)) {
$o = array($o => $v);
}
if (isset($o['var_prefix'])) {
$this->VarPrefix = $o['var_prefix'];
}
if (isset($o['fct_prefix'])) {
$this->FctPrefix = $o['fct_prefix'];
}
if (isset($o['noerr'])) {
$this->NoErr = $o['noerr'];
}
if (isset($o['old_subtemplate'])) {
$this->OldSubTpl = $o['old_subtemplate'];
}
if (isset($o['auto_merge'])) {
$this->OnLoad = $o['auto_merge'];
$this->OnShow = $o['auto_merge'];
}
if (isset($o['onload'])) {
$this->OnLoad = $o['onload'];
}
if (isset($o['onshow'])) {
$this->OnShow = $o['onshow'];
}
if (isset($o['att_delim'])) {
$this->AttDelim = $o['att_delim'];
}
if (isset($o['protect'])) {
$this->Protect = $o['protect'];
}
if (isset($o['turbo_block'])) {
$this->TurboBlock = $o['turbo_block'];
}
if (isset($o['charset'])) {
$this->meth_Misc_Charset($o['charset']);
}
$UpdateChr = false;
if (isset($o['chr_open'])) {
$this->_ChrOpen = $o['chr_open'];
$UpdateChr = true;
}
if (isset($o['chr_close'])) {
$this->_ChrClose = $o['chr_close'];
$UpdateChr = true;
}
if ($UpdateChr) {
$this->_ChrVal = $this->_ChrOpen . 'val' . $this->_ChrClose;
$this->_ChrProtect = '&#' . ord($this->_ChrOpen[0]) . ';' . substr($this->_ChrOpen, 1);
}
if (array_key_exists('tpl_frms', $o)) {
clsTinyButStrong::f_Misc_UpdateArray($GLOBALS['_TBS_FormatLst'], 'frm', $o['tpl_frms'], $d);
}
if (array_key_exists('block_alias', $o)) {
clsTinyButStrong::f_Misc_UpdateArray($GLOBALS['_TBS_BlockAlias'], false, $o['block_alias'], $d);
}
if (array_key_exists('parallel_conf', $o)) {
clsTinyButStrong::f_Misc_UpdateArray($GLOBALS['_TBS_ParallelLst'], false, $o['parallel_conf'], $d);
}
if (array_key_exists('include_path', $o)) {
clsTinyButStrong::f_Misc_UpdateArray($this->IncludePath, true, $o['include_path'], $d);
}
if (isset($o['render'])) {
$this->Render = $o['render'];
}
if (isset($o['methods_allowed'])) {
$this->MethodsAllowed = $o['methods_allowed'];
}
}