本文整理汇总了PHP中icms_core_DataFilter::cleanArray方法的典型用法代码示例。如果您正苦于以下问题:PHP icms_core_DataFilter::cleanArray方法的具体用法?PHP icms_core_DataFilter::cleanArray怎么用?PHP icms_core_DataFilter::cleanArray使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类icms_core_DataFilter
的用法示例。
在下文中一共展示了icms_core_DataFilter::cleanArray方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getHTMLFilterConfig
/**
* Gets Custom Purifier configurations ** this function will improve in time **
* @return array $icmsPurifierConf
**/
protected function getHTMLFilterConfig()
{
$icmsConfigPurifier = icms::$config->getConfigsByCat(ICMS_CONF_PURIFIER);
$icmsPurifierConf = array('HTML.DefinitionID' => $icmsConfigPurifier['purifier_HTML_DefinitionID'], 'HTML.DefinitionRev' => $icmsConfigPurifier['purifier_HTML_DefinitionRev'], 'HTML.Doctype' => $icmsConfigPurifier['purifier_HTML_Doctype'], 'HTML.AllowedElements' => $icmsConfigPurifier['purifier_HTML_AllowedElements'], 'HTML.AllowedAttributes' => $icmsConfigPurifier['purifier_HTML_AllowedAttributes'], 'HTML.ForbiddenElements' => $icmsConfigPurifier['purifier_HTML_ForbiddenElements'], 'HTML.ForbiddenAttributes' => $icmsConfigPurifier['purifier_HTML_ForbiddenAttributes'], 'HTML.MaxImgLength' => $icmsConfigPurifier['purifier_HTML_MaxImgLength'], 'HTML.TidyLevel' => $icmsConfigPurifier['purifier_HTML_TidyLevel'], 'HTML.SafeEmbed' => $icmsConfigPurifier['purifier_HTML_SafeEmbed'], 'HTML.SafeObject' => $icmsConfigPurifier['purifier_HTML_SafeObject'], 'HTML.Attr.Name.UseCDATA' => $icmsConfigPurifier['purifier_HTML_AttrNameUseCDATA'], 'HTML.FlashAllowFullScreen' => $icmsConfigPurifier['purifier_HTML_FlashAllowFullScreen'], 'Output.FlashCompat' => $icmsConfigPurifier['purifier_Output_FlashCompat'], 'CSS.DefinitionRev' => $icmsConfigPurifier['purifier_CSS_DefinitionRev'], 'CSS.AllowImportant' => $icmsConfigPurifier['purifier_CSS_AllowImportant'], 'CSS.AllowTricky' => $icmsConfigPurifier['purifier_CSS_AllowTricky'], 'CSS.AllowedProperties' => $icmsConfigPurifier['purifier_CSS_AllowedProperties'], 'CSS.MaxImgLength' => $icmsConfigPurifier['purifier_CSS_MaxImgLength'], 'CSS.Proprietary' => $icmsConfigPurifier['purifier_CSS_Proprietary'], 'AutoFormat.AutoParagraph' => $icmsConfigPurifier['purifier_AutoFormat_AutoParagraph'], 'AutoFormat.DisplayLinkURI' => $icmsConfigPurifier['purifier_AutoFormat_DisplayLinkURI'], 'AutoFormat.Linkify' => $icmsConfigPurifier['purifier_AutoFormat_Linkify'], 'AutoFormat.PurifierLinkify' => $icmsConfigPurifier['purifier_AutoFormat_PurifierLinkify'], 'AutoFormat.Custom' => $icmsConfigPurifier['purifier_AutoFormat_Custom'], 'AutoFormat.RemoveEmpty' => $icmsConfigPurifier['purifier_AutoFormat_RemoveEmpty'], 'AutoFormat.RemoveEmpty.RemoveNbsp' => $icmsConfigPurifier['purifier_AutoFormat_RemoveEmptyNbsp'], 'AutoFormat.RemoveEmpty.RemoveNbsp.Exceptions' => $icmsConfigPurifier['purifier_AutoFormat_RemoveEmptyNbspExceptions'], 'Core.EscapeNonASCIICharacters' => $icmsConfigPurifier['purifier_Core_EscapeNonASCIICharacters'], 'Core.HiddenElements' => $icmsConfigPurifier['purifier_Core_HiddenElements'], 'Core.NormalizeNewlines' => $icmsConfigPurifier['purifier_Core_NormalizeNewlines'], 'Core.RemoveInvalidImg' => $icmsConfigPurifier['purifier_Core_RemoveInvalidImg'], 'Core.Encoding' => _CHARSET, 'Cache.DefinitionImpl' => 'Serializer', 'Cache.SerializerPath' => ICMS_TRUST_PATH . '/cache/htmlpurifier', 'URI.Host' => $icmsConfigPurifier['purifier_URI_Host'], 'URI.Base' => $icmsConfigPurifier['purifier_URI_Base'], 'URI.Disable' => $icmsConfigPurifier['purifier_URI_Disable'], 'URI.DisableExternal' => $icmsConfigPurifier['purifier_URI_DisableExternal'], 'URI.DisableExternalResources' => $icmsConfigPurifier['purifier_URI_DisableExternalResources'], 'URI.DisableResources' => $icmsConfigPurifier['purifier_URI_DisableResources'], 'URI.MakeAbsolute' => $icmsConfigPurifier['purifier_URI_MakeAbsolute'], 'URI.HostBlacklist' => $icmsConfigPurifier['purifier_URI_HostBlacklist'], 'URI.AllowedSchemes' => $icmsConfigPurifier['purifier_URI_AllowedSchemes'], 'URI.DefinitionID' => $icmsConfigPurifier['purifier_URI_DefinitionID'], 'URI.DefinitionRev' => $icmsConfigPurifier['purifier_URI_DefinitionRev'], 'URI.AllowedSchemes' => $icmsConfigPurifier['purifier_URI_AllowedSchemes'], 'Attr.AllowedFrameTargets' => $icmsConfigPurifier['purifier_Attr_AllowedFrameTargets'], 'Attr.AllowedRel' => $icmsConfigPurifier['purifier_Attr_AllowedRel'], 'Attr.AllowedClasses' => $icmsConfigPurifier['purifier_Attr_AllowedClasses'], 'Attr.ForbiddenClasses' => $icmsConfigPurifier['purifier_Attr_ForbiddenClasses'], 'Attr.DefaultInvalidImage' => $icmsConfigPurifier['purifier_Attr_DefaultInvalidImage'], 'Attr.DefaultInvalidImageAlt' => $icmsConfigPurifier['purifier_Attr_DefaultInvalidImageAlt'], 'Attr.DefaultImageAlt' => $icmsConfigPurifier['purifier_Attr_DefaultImageAlt'], 'Attr.ClassUseCDATA' => $icmsConfigPurifier['purifier_Attr_ClassUseCDATA'], 'Attr.IDPrefix' => $icmsConfigPurifier['purifier_Attr_IDPrefix'], 'Attr.EnableID' => $icmsConfigPurifier['purifier_Attr_EnableID'], 'Attr.IDPrefixLocal' => $icmsConfigPurifier['purifier_Attr_IDPrefixLocal'], 'Attr.IDBlacklist' => $icmsConfigPurifier['purifier_Attr_IDBlacklist'], 'Filter.ExtractStyleBlocks.Escaping' => $icmsConfigPurifier['purifier_Filter_ExtractStyleBlocks_Escaping'], 'Filter.ExtractStyleBlocks.Scope' => $icmsConfigPurifier['purifier_Filter_ExtractStyleBlocks_Scope'], 'Filter.ExtractStyleBlocks' => $icmsConfigPurifier['purifier_Filter_ExtractStyleBlocks'], 'Filter.YouTube' => $icmsConfigPurifier['purifier_Filter_YouTube'], 'Filter.Custom' => self::getCustomFilterList());
return parent::cleanArray($icmsPurifierConf);
}