本文整理汇总了PHP中clsTinyButStrong::f_Loc_AttBoolean方法的典型用法代码示例。如果您正苦于以下问题:PHP clsTinyButStrong::f_Loc_AttBoolean方法的具体用法?PHP clsTinyButStrong::f_Loc_AttBoolean怎么用?PHP clsTinyButStrong::f_Loc_AttBoolean使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类clsTinyButStrong
的用法示例。
在下文中一共展示了clsTinyButStrong::f_Loc_AttBoolean方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: meth_Locator_Replace
//.........这里部分代码省略.........
$CurrVal = ('0' + $CurrVal) / $Loc->OpePrm[$i];
break;
case 9:
case 10:
if ($ope === 9) {
$CurrVal = in_array((string) $CurrVal, $Loc->OpeMOK) ? ' ' : '';
} else {
$CurrVal = in_array((string) $CurrVal, $Loc->OpeMKO) ? '' : ' ';
}
// no break here
// no break here
case 11:
if ((string) $CurrVal === '') {
if ($Loc->MagnetId === 0) {
$Loc->MagnetId = $Loc->MSave;
}
} else {
if ($Loc->MagnetId !== 0) {
$Loc->MSave = $Loc->MagnetId;
$Loc->MagnetId = 0;
}
$CurrVal = '';
}
break;
case 12:
if ((string) $CurrVal === $Loc->OpePrm[$i]) {
$CurrVal = '';
}
break;
case 13:
$CurrVal = str_replace('*', $CurrVal, $Loc->OpePrm[$i]);
break;
case 14:
$CurrVal = clsTinyButStrong::f_Loc_AttBoolean($CurrVal, $Loc->PrmLst['atttrue'], $Loc->AttName);
break;
}
}
}
// String conversion or format
if ($Loc->ConvMode === 1) {
// Usual string conversion
if (!is_string($CurrVal)) {
$CurrVal = (string) $CurrVal;
}
// (string) is faster than strval() and settype()
if ($Loc->ConvStr) {
$this->meth_Conv_Str($CurrVal, $Loc->ConvBr);
}
} elseif ($Loc->ConvMode === 0) {
// Format
$CurrVal = $this->meth_Misc_Format($CurrVal, $Loc->PrmLst);
} elseif ($Loc->ConvMode === 2) {
// Special string conversion
if (!is_string($CurrVal)) {
$CurrVal = (string) $CurrVal;
}
if ($Loc->ConvStr) {
$this->meth_Conv_Str($CurrVal, $Loc->ConvBr);
}
if ($Loc->ConvEsc) {
$CurrVal = str_replace('\'', '\'\'', $CurrVal);
}
if ($Loc->ConvWS) {
$check = ' ';
$nbsp = ' ';
do {