本文整理汇总了PHP中option::evoOptions方法的典型用法代码示例。如果您正苦于以下问题:PHP option::evoOptions方法的具体用法?PHP option::evoOptions怎么用?PHP option::evoOptions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类option
的用法示例。
在下文中一共展示了option::evoOptions方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: setupOptions
public static function setupOptions($xoptions, $decode = false)
{
if ($decode) {
$xoptions = unserialize(stripslashes(base64_decode($xoptions)));
}
self::$evoOptions = self::getOptionsArray();
foreach (self::$evoOptions as $name => $options) {
$name = explode("id", $name);
if (isset($name[1]) && $name[1] != "") {
$rOptions[] = $options;
}
}
foreach ($rOptions as $column) {
foreach ($column as $row) {
$ignored = array('preheader', 'startsub', 'endsub');
if (in_array($row['type'], $ignored)) {
continue;
}
$id = $row['id'];
self::set($id, $xoptions[$id]);
}
}
}
示例2: setupOptions
public static function setupOptions($xoptions, $decode = false)
{
if ($decode) {
$xoptions = unserialize(stripslashes(base64_decode($xoptions)));
}
$themeOptions = (include FUNC_INC . '/theme/options.php');
$wpzoomOptions = (include WPZOOM_INC . '/options.php');
self::$evoOptions = array_merge_recursive($themeOptions, $wpzoomOptions);
foreach (self::$evoOptions as $name => $options) {
$name = explode("id", $name);
if (isset($name[1]) && $name[1] != "") {
$rOptions[] = $options;
}
}
foreach ($rOptions as $column) {
foreach ($column as $row) {
$ignored = array('preheader', 'startsub', 'endsub');
if (in_array($row['type'], $ignored)) {
continue;
}
$id = $row['id'];
self::set($id, $xoptions[$id]);
}
}
}