本文整理汇总了PHP中BASE_CLASS_Widget::processSettingList方法的典型用法代码示例。如果您正苦于以下问题:PHP BASE_CLASS_Widget::processSettingList方法的具体用法?PHP BASE_CLASS_Widget::processSettingList怎么用?PHP BASE_CLASS_Widget::processSettingList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BASE_CLASS_Widget
的用法示例。
在下文中一共展示了BASE_CLASS_Widget::processSettingList方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: processSettingList
public static function processSettingList($settings, $place, $isAdmin)
{
if ($place != BOL_ComponentService::PLACE_DASHBOARD && !OW::getUser()->isAdmin()) {
$settings['content'] = UTIL_HtmlTag::stripJs($settings['content']);
//$settings['content'] = UTIL_HtmlTag::stripTags($settings['content'], array('frame'), array(), true, true);
} else {
$settings['content'] = UTIL_HtmlTag::sanitize($settings['content']);
}
return parent::processSettingList($settings, $place, $isAdmin);
}
示例2: processSettingList
public static function processSettingList($settingList, $place, $isAdmin)
{
$settingList = parent::processSettingList($settingList, $place, $isAdmin);
$settingList['show_first'] = array_shift($settingList['show_first']);
$settingList['banners'] = array_flip($settingList['banners']);
if (!OW::getPluginManager()->isPluginActive(self::IOS) && isset($settingList['banners'][self::IOS])) {
unset($settingList['banners'][self::IOS]);
}
if (!OW::getPluginManager()->isPluginActive(self::ANDROID) && isset($settingList['banners'][self::ANDROID])) {
unset($settingList['banners'][self::ANDROID]);
}
return $settingList;
}
示例3: processSettingList
public static function processSettingList($settingList, $place, $isAdmin)
{
$settingList['count'] = intval($settingList['count']);
return parent::processSettingList($settingList, $place, $isAdmin);
}