\

Namespaces

Adbar
AlibabaCloud
AliPay
app
BigintTest
clagiordano
Complex
Composer
GuzzleHttp
JmesPath
Matrix
Monolog
MyCLabs
PhpOffice
Psr
Stringy
Symfony
thiagoalessio
think
traits
WeChat
WeMini
WePay
WePayV3
Yansongda
ZipStream

Interfaces

Stringable

Classes

ComposerAutoloaderInit8514b232e58364ae7e8404246162cb2a
ErrorCode 仅用作类内部使用 不用于官方API接口的errCode码 Class ErrorCode
ErrorCode error code 说明.
FilenameFilter
FilesystemRegexFilter
HTML5
HTML5TreeConstructer
HTMLPurifier Facade that coordinates HTML Purifier's subsystems in order to purify HTML.
HTMLPurifier_Arborize Converts a stream of HTMLPurifier_Token into an HTMLPurifier_Node, and back again.
HTMLPurifier_AttrCollections Defines common attribute collections that modules reference
HTMLPurifier_AttrDef Base class for all validating attribute definitions.
HTMLPurifier_AttrDef_Clone Dummy AttrDef that mimics another AttrDef, BUT it generates clones with make.
HTMLPurifier_AttrDef_CSS Validates the HTML attribute style, otherwise known as CSS.
HTMLPurifier_AttrDef_CSS_AlphaValue Validates a number as defined by the CSS spec.
HTMLPurifier_AttrDef_CSS_Background Validates shorthand CSS property background.
HTMLPurifier_AttrDef_CSS_BackgroundPosition Validates the value of background-position.
HTMLPurifier_AttrDef_CSS_Border Validates the border property as defined by CSS.
HTMLPurifier_AttrDef_CSS_Color Validates Color as defined by CSS.
HTMLPurifier_AttrDef_CSS_Composite Allows multiple validators to attempt to validate attribute.
HTMLPurifier_AttrDef_CSS_DenyElementDecorator Decorator which enables CSS properties to be disabled for specific elements.
HTMLPurifier_AttrDef_CSS_Filter Microsoft's proprietary filter: CSS property
HTMLPurifier_AttrDef_CSS_Font Validates shorthand CSS property font.
HTMLPurifier_AttrDef_CSS_FontFamily Validates a font family list according to CSS spec
HTMLPurifier_AttrDef_CSS_Ident Validates based on {ident} CSS grammar production
HTMLPurifier_AttrDef_CSS_ImportantDecorator Decorator which enables !important to be used in CSS values.
HTMLPurifier_AttrDef_CSS_Length Represents a Length as defined by CSS.
HTMLPurifier_AttrDef_CSS_ListStyle Validates shorthand CSS property list-style.
HTMLPurifier_AttrDef_CSS_Multiple Framework class for strings that involve multiple values.
HTMLPurifier_AttrDef_CSS_Number Validates a number as defined by the CSS spec.
HTMLPurifier_AttrDef_CSS_Percentage Validates a Percentage as defined by the CSS spec.
HTMLPurifier_AttrDef_CSS_TextDecoration Validates the value for the CSS property text-decoration
HTMLPurifier_AttrDef_CSS_URI Validates a URI in CSS syntax, which uses url('http://example.com')
HTMLPurifier_AttrDef_Enum Validates a keyword against a list of valid values.
HTMLPurifier_AttrDef_HTML_Bool Validates a boolean attribute
HTMLPurifier_AttrDef_HTML_Class Implements special behavior for class attribute (normally NMTOKENS)
HTMLPurifier_AttrDef_HTML_Color Validates a color according to the HTML spec.
HTMLPurifier_AttrDef_HTML_FrameTarget Special-case enum attribute definition that lazy loads allowed frame targets
HTMLPurifier_AttrDef_HTML_ID Validates the HTML attribute ID.
HTMLPurifier_AttrDef_HTML_Length Validates the HTML type length (not to be confused with CSS's length).
HTMLPurifier_AttrDef_HTML_LinkTypes Validates a rel/rev link attribute against a directive of allowed values
HTMLPurifier_AttrDef_HTML_MultiLength Validates a MultiLength as defined by the HTML spec.
HTMLPurifier_AttrDef_HTML_Nmtokens Validates contents based on NMTOKENS attribute type.
HTMLPurifier_AttrDef_HTML_Pixels Validates an integer representation of pixels according to the HTML spec.
HTMLPurifier_AttrDef_Integer Validates an integer.
HTMLPurifier_AttrDef_Lang Validates the HTML attribute lang, effectively a language code.
HTMLPurifier_AttrDef_Switch Decorator that, depending on a token, switches between two definitions.
HTMLPurifier_AttrDef_Text Validates arbitrary text according to the HTML spec.
HTMLPurifier_AttrDef_URI Validates a URI as defined by RFC 3986.
HTMLPurifier_AttrDef_URI_Email Base class for all validating attribute definitions.
HTMLPurifier_AttrDef_URI_Email_SimpleCheck Primitive email validation class based on the regexp found at http://www.regular-expressions.info/email.html
HTMLPurifier_AttrDef_URI_Host Validates a host according to the IPv4, IPv6 and DNS (future) specifications.
HTMLPurifier_AttrDef_URI_IPv4 Validates an IPv4 address
HTMLPurifier_AttrDef_URI_IPv6 Validates an IPv6 address.
HTMLPurifier_AttrTransform Processes an entire attribute array for corrections needing multiple values.
HTMLPurifier_AttrTransform_Background Pre-transform that changes proprietary background attribute to CSS.
HTMLPurifier_AttrTransform_BdoDir Post-trasnform that ensures that bdo tags have the dir attribute set.
HTMLPurifier_AttrTransform_BgColor Pre-transform that changes deprecated bgcolor attribute to CSS.
HTMLPurifier_AttrTransform_BoolToCSS Pre-transform that changes converts a boolean attribute to fixed CSS
HTMLPurifier_AttrTransform_Border Pre-transform that changes deprecated border attribute to CSS.
HTMLPurifier_AttrTransform_EnumToCSS Generic pre-transform that converts an attribute with a fixed number of values (enumerated) to CSS.
HTMLPurifier_AttrTransform_ImgRequired Transform that supplies default values for the src and alt attributes in img tags, as well as prevents the img tag from being removed because of a missing alt tag. This needs to be registered as both a pre and post attribute transform.
HTMLPurifier_AttrTransform_ImgSpace Pre-transform that changes deprecated hspace and vspace attributes to CSS
HTMLPurifier_AttrTransform_Input Performs miscellaneous cross attribute validation and filtering for input elements. This is meant to be a post-transform.
HTMLPurifier_AttrTransform_Lang Post-transform that copies lang's value to xml:lang (and vice-versa)
HTMLPurifier_AttrTransform_Length Class for handling width/height length attribute transformations to CSS
HTMLPurifier_AttrTransform_Name Pre-transform that changes deprecated name attribute to ID if necessary
HTMLPurifier_AttrTransform_NameSync Post-transform that performs validation to the name attribute; if it is present with an equivalent id attribute, it is passed through; otherwise validation is performed.
HTMLPurifier_AttrTransform_Nofollow Adds rel="nofollow" to all outbound links. This transform is only attached if Attr.Nofollow is TRUE.
HTMLPurifier_AttrTransform_SafeEmbed Processes an entire attribute array for corrections needing multiple values.
HTMLPurifier_AttrTransform_SafeObject Writes default type for all objects. Currently only supports flash.
HTMLPurifier_AttrTransform_SafeParam Validates name/value pairs in param tags to be used in safe objects. This will only allow name values it recognizes, and pre-fill certain attributes with required values.
HTMLPurifier_AttrTransform_ScriptRequired Implements required attribute stipulation for <script>
HTMLPurifier_AttrTransform_TargetBlank Adds target="blank" to all outbound links. This transform is only attached if Attr.TargetBlank is TRUE. This works regardless of whether or not Attr.AllowedFrameTargets
HTMLPurifier_AttrTransform_TargetNoopener Adds rel="noopener" to any links which target a different window than the current one. This is used to prevent malicious websites from silently replacing the original window, which could be used to do phishing.
HTMLPurifier_AttrTransform_TargetNoreferrer Adds rel="noreferrer" to any links which target a different window than the current one. This is used to prevent malicious websites from silently replacing the original window, which could be used to do phishing.
HTMLPurifier_AttrTransform_Textarea Sets height/width defaults for <textarea>
HTMLPurifier_AttrTypes Provides lookup array of attribute types to HTMLPurifier_AttrDef objects
HTMLPurifier_AttrValidator Validates the attributes of a token. Doesn't manage required attributes very well. The only reason we factored this out was because RemoveForeignElements also needed it besides ValidateAttributes.
HTMLPurifier_Bootstrap Bootstrap class that contains meta-functionality for HTML Purifier such as the autoload function.
HTMLPurifier_ChildDef Defines allowed child nodes and validates nodes against it.
HTMLPurifier_ChildDef_Chameleon Definition that uses different definitions depending on context.
HTMLPurifier_ChildDef_Custom Custom validation class, accepts DTD child definitions
HTMLPurifier_ChildDef_Empty Definition that disallows all elements.
HTMLPurifier_ChildDef_List Definition for list containers ul and ol.
HTMLPurifier_ChildDef_Optional Definition that allows a set of elements, and allows no children.
HTMLPurifier_ChildDef_Required Definition that allows a set of elements, but disallows empty children.
HTMLPurifier_ChildDef_StrictBlockquote Takes the contents of blockquote when in strict and reformats for validation.
HTMLPurifier_ChildDef_Table Definition for tables. The general idea is to extract out all of the essential bits, and then reconstruct it later.
HTMLPurifier_Config Configuration object that triggers customizable behavior.
HTMLPurifier_ConfigSchema Configuration definition, defines directives and their defaults.
HTMLPurifier_ConfigSchema_Builder_ConfigSchema Converts HTMLPurifier_ConfigSchema_Interchange to our runtime representation used to perform checks on user configuration.
HTMLPurifier_ConfigSchema_Builder_Xml Converts HTMLPurifier_ConfigSchema_Interchange to an XML format, which can be further processed to generate documentation.
HTMLPurifier_ConfigSchema_Exception Exceptions related to configuration schema
HTMLPurifier_ConfigSchema_Interchange Generic schema interchange format that can be converted to a runtime representation (HTMLPurifier_ConfigSchema) or HTML documentation. Members are completely validated.
HTMLPurifier_ConfigSchema_Interchange_Directive Interchange component class describing configuration directives.
HTMLPurifier_ConfigSchema_Interchange_Id Represents a directive ID in the interchange format.
HTMLPurifier_ConfigSchema_InterchangeBuilder
HTMLPurifier_ConfigSchema_Validator Performs validations on HTMLPurifier_ConfigSchema_Interchange
HTMLPurifier_ConfigSchema_ValidatorAtom Fluent interface for validating the contents of member variables.
HTMLPurifier_ContentSets
HTMLPurifier_Context Registry object that contains information about the current context.
HTMLPurifier_CSSDefinition Defines allowed CSS attributes and what their values are.
HTMLPurifier_Definition Super-class for definition datatype objects, implements serialization functions for the class.
HTMLPurifier_DefinitionCache Abstract class representing Definition cache managers that implements useful common methods and is a factory.
HTMLPurifier_DefinitionCache_Decorator Abstract class representing Definition cache managers that implements useful common methods and is a factory.
HTMLPurifier_DefinitionCache_Decorator_Cleanup Definition cache decorator class that cleans up the cache whenever there is a cache miss.
HTMLPurifier_DefinitionCache_Decorator_Memory Definition cache decorator class that saves all cache retrievals to PHP's memory; good for unit tests or circumstances where there are lots of configuration objects floating around.
HTMLPurifier_DefinitionCache_Null Null cache object to use when no caching is on.
HTMLPurifier_DefinitionCache_Serializer Abstract class representing Definition cache managers that implements useful common methods and is a factory.
HTMLPurifier_DefinitionCacheFactory Responsible for creating definition caches.
HTMLPurifier_Doctype Represents a document type, contains information on which modules need to be loaded.
HTMLPurifier_DoctypeRegistry
HTMLPurifier_ElementDef Structure that stores an HTML element definition. Used by HTMLPurifier_HTMLDefinition and HTMLPurifier_HTMLModule.
HTMLPurifier_Encoder A UTF-8 specific character encoder that handles cleaning and transforming.
HTMLPurifier_EntityLookup Object that provides entity lookup table from entity name to character
HTMLPurifier_EntityParser Handles referencing and derefencing character entities
HTMLPurifier_ErrorCollector Error collection class that enables HTML Purifier to report HTML problems back to the user
HTMLPurifier_ErrorStruct Records errors for particular segments of an HTML document such as tokens, attributes or CSS properties. They can contain error structs (which apply to components of what they represent), but their main purpose is to hold errors applying to whatever struct is being used.
HTMLPurifier_Exception Global exception class for HTML Purifier; any exceptions we throw are from here.
HTMLPurifier_Filter Represents a pre or post processing filter on HTML Purifier's output
HTMLPurifier_Filter_ExtractStyleBlocks This filter extracts <style> blocks from input HTML, cleans them up using CSSTidy, and then places them in $purifier->context->get('StyleBlocks') so they can be used elsewhere in the document.
HTMLPurifier_Filter_YouTube Represents a pre or post processing filter on HTML Purifier's output
HTMLPurifier_Generator Generates HTML from tokens.
HTMLPurifier_HTMLDefinition Definition of the purified HTML that describes allowed children, attributes, and many other things.
HTMLPurifier_HTMLModule Represents an XHTML 1.1 module, with information on elements, tags and attributes.
HTMLPurifier_HTMLModule_Bdo XHTML 1.1 Bi-directional Text Module, defines elements that declare directionality of content. Text Extension Module.
HTMLPurifier_HTMLModule_CommonAttributes Represents an XHTML 1.1 module, with information on elements, tags and attributes.
HTMLPurifier_HTMLModule_Edit XHTML 1.1 Edit Module, defines editing-related elements. Text Extension Module.
HTMLPurifier_HTMLModule_Forms XHTML 1.1 Forms module, defines all form-related elements found in HTML 4.
HTMLPurifier_HTMLModule_Hypertext XHTML 1.1 Hypertext Module, defines hypertext links. Core Module.
HTMLPurifier_HTMLModule_Iframe XHTML 1.1 Iframe Module provides inline frames.
HTMLPurifier_HTMLModule_Image XHTML 1.1 Image Module provides basic image embedding.
HTMLPurifier_HTMLModule_Legacy XHTML 1.1 Legacy module defines elements that were previously deprecated.
HTMLPurifier_HTMLModule_List XHTML 1.1 List Module, defines list-oriented elements. Core Module.
HTMLPurifier_HTMLModule_Name Represents an XHTML 1.1 module, with information on elements, tags and attributes.
HTMLPurifier_HTMLModule_Nofollow Module adds the nofollow attribute transformation to a tags. It is enabled by HTML.Nofollow
HTMLPurifier_HTMLModule_NonXMLCommonAttributes Represents an XHTML 1.1 module, with information on elements, tags and attributes.
HTMLPurifier_HTMLModule_Object XHTML 1.1 Object Module, defines elements for generic object inclusion
HTMLPurifier_HTMLModule_Presentation XHTML 1.1 Presentation Module, defines simple presentation-related markup. Text Extension Module.
HTMLPurifier_HTMLModule_Proprietary Module defines proprietary tags and attributes in HTML.
HTMLPurifier_HTMLModule_Ruby XHTML 1.1 Ruby Annotation Module, defines elements that indicate short runs of text alongside base text for annotation or pronounciation.
HTMLPurifier_HTMLModule_SafeEmbed A "safe" embed module. See SafeObject. This is a proprietary element.
HTMLPurifier_HTMLModule_SafeObject A "safe" object module. In theory, objects permitted by this module will be safe, and untrusted users can be allowed to embed arbitrary flash objects (maybe other types too, but only Flash is supported as of right now).
HTMLPurifier_HTMLModule_SafeScripting A "safe" script module. No inline JS is allowed, and pointed to JS files must match whitelist.
HTMLPurifier_HTMLModule_Scripting XHTML 1.1 Scripting module, defines elements that are used to contain information pertaining to executable scripts or the lack of support for executable scripts.
HTMLPurifier_HTMLModule_StyleAttribute XHTML 1.1 Edit Module, defines editing-related elements. Text Extension Module.
HTMLPurifier_HTMLModule_Tables XHTML 1.1 Tables Module, fully defines accessible table elements.
HTMLPurifier_HTMLModule_Target XHTML 1.1 Target Module, defines target attribute in link elements.
HTMLPurifier_HTMLModule_TargetBlank Module adds the target=blank attribute transformation to a tags. It is enabled by HTML.TargetBlank
HTMLPurifier_HTMLModule_TargetNoopener Module adds the target-based noopener attribute transformation to a tags. It is enabled by HTML.TargetNoopener
HTMLPurifier_HTMLModule_TargetNoreferrer Module adds the target-based noreferrer attribute transformation to a tags. It is enabled by HTML.TargetNoreferrer
HTMLPurifier_HTMLModule_Text XHTML 1.1 Text Module, defines basic text containers. Core Module.
HTMLPurifier_HTMLModule_Tidy Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy_Name Name is deprecated, but allowed in strict doctypes, so onl
HTMLPurifier_HTMLModule_Tidy_Proprietary Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy_Strict Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy_Transitional Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy_XHTML Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_Tidy_XHTMLAndHTML4 Abstract class for a set of proprietary modules that clean up (tidy) poorly written HTML.
HTMLPurifier_HTMLModule_XMLCommonAttributes Represents an XHTML 1.1 module, with information on elements, tags and attributes.
HTMLPurifier_HTMLModuleManager
HTMLPurifier_IDAccumulator Component of HTMLPurifier_AttrContext that accumulates IDs to prevent dupes
HTMLPurifier_Injector Injects tokens into the document while parsing for well-formedness.
HTMLPurifier_Injector_AutoParagraph Injector that auto paragraphs text in the root node based on double-spacing.
HTMLPurifier_Injector_DisplayLinkURI Injector that displays the URL of an anchor instead of linking to it, in addition to showing the text of the link.
HTMLPurifier_Injector_Linkify Injector that converts http, https and ftp text URLs to actual links.
HTMLPurifier_Injector_PurifierLinkify Injector that converts configuration directive syntax %Namespace.Directive to links
HTMLPurifier_Injector_RemoveEmpty Injects tokens into the document while parsing for well-formedness.
HTMLPurifier_Injector_RemoveSpansWithoutAttributes Injector that removes spans with no attributes
HTMLPurifier_Injector_SafeObject Adds important param elements to inside of object in order to make things safe.
HTMLPurifier_Language Represents a language and defines localizable string formatting and other functions, as well as the localized messages for HTML Purifier.
HTMLPurifier_LanguageFactory Class responsible for generating HTMLPurifier_Language objects, managing caching and fallbacks.
HTMLPurifier_Length Represents a measurable length, with a string numeric magnitude and a unit. This object is immutable.
HTMLPurifier_Lexer Forgivingly lexes HTML (SGML-style) markup into tokens.
HTMLPurifier_Lexer_DirectLex Our in-house implementation of a parser.
HTMLPurifier_Lexer_DOMLex Parser that uses PHP 5's DOM extension (part of the core).
HTMLPurifier_Lexer_PH5P Experimental HTML5-based parser using Jeroen van der Meer's PH5P library.
HTMLPurifier_Node Abstract base node class that all others inherit from.
HTMLPurifier_Node_Comment Concrete comment node class.
HTMLPurifier_Node_Element Concrete element node class.
HTMLPurifier_Node_Text Concrete text token class.
HTMLPurifier_PercentEncoder Class that handles operations involving percent-encoding in URIs.
HTMLPurifier_Printer
HTMLPurifier_Printer_ConfigForm
HTMLPurifier_Printer_ConfigForm_bool Bool form field printer
HTMLPurifier_Printer_ConfigForm_default Swiss-army knife configuration form field printer
HTMLPurifier_Printer_ConfigForm_NullDecorator Printer decorator for directives that accept null
HTMLPurifier_Printer_CSSDefinition
HTMLPurifier_Printer_HTMLDefinition
HTMLPurifier_PropertyList Generic property list implementation
HTMLPurifier_PropertyListIterator Property list iterator. Do not instantiate this class directly.
HTMLPurifier_Queue A simple array-backed queue, based off of the classic Okasaki persistent amortized queue. The basic idea is to maintain two stacks: an input stack and an output stack. When the output stack runs out, reverse the input stack and use it as the output stack.
HTMLPurifier_Strategy Supertype for classes that define a strategy for modifying/purifying tokens.
HTMLPurifier_Strategy_Composite Composite strategy that runs multiple strategies on tokens.
HTMLPurifier_Strategy_Core Core strategy composed of the big four strategies.
HTMLPurifier_Strategy_FixNesting Takes a well formed list of tokens and fixes their nesting.
HTMLPurifier_Strategy_MakeWellFormed Takes tokens makes them well-formed (balance end tags, etc.)
HTMLPurifier_Strategy_RemoveForeignElements Removes all unrecognized tags from the list of tokens.
HTMLPurifier_Strategy_ValidateAttributes Validate all attributes in the tokens.
HTMLPurifier_StringHash This is in almost every respect equivalent to an array except that it keeps track of which keys were accessed.
HTMLPurifier_StringHashParser Parses string hash files. File format is as such:
HTMLPurifier_TagTransform Defines a mutation of an obsolete tag into a valid tag.
HTMLPurifier_TagTransform_Font Transforms FONT tags to the proper form (SPAN with CSS styling)
HTMLPurifier_TagTransform_Simple Simple transformation, just change tag name to something else, and possibly add some styling. This will cover most of the deprecated tag cases.
HTMLPurifier_Token Abstract base token class that all others inherit from.
HTMLPurifier_Token_Comment Concrete comment token class. Generally will be ignored.
HTMLPurifier_Token_Empty Concrete empty token class.
HTMLPurifier_Token_End Concrete end token class.
HTMLPurifier_Token_Start Concrete start token class.
HTMLPurifier_Token_Tag Abstract class of a tag token (start, end or empty), and its behavior.
HTMLPurifier_Token_Text Concrete text token class.
HTMLPurifier_TokenFactory Factory for token generation.
HTMLPurifier_UnitConverter Class for converting between different unit-lengths as specified by CSS.
HTMLPurifier_URI HTML Purifier's internal representation of a URI.
HTMLPurifier_URIDefinition Super-class for definition datatype objects, implements serialization functions for the class.
HTMLPurifier_URIFilter Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_DisableExternal Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_DisableExternalResources Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_DisableResources Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_HostBlacklist Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_MakeAbsolute Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_Munge Chainable filters for custom URI processing.
HTMLPurifier_URIFilter_SafeIframe Implements safety checks for safe iframes.
HTMLPurifier_URIParser Parses a URI into the components and fragment identifier as specified by RFC 3986.
HTMLPurifier_URIScheme Validator for the components of a URI for a specific scheme
HTMLPurifier_URIScheme_data Implements data: URI for base64 encoded images supported by GD.
HTMLPurifier_URIScheme_file Validates file as defined by RFC 1630 and RFC 1738.
HTMLPurifier_URIScheme_ftp Validates ftp (File Transfer Protocol) URIs as defined by generic RFC 1738.
HTMLPurifier_URIScheme_http Validates http (HyperText Transfer Protocol) as defined by RFC 2616
HTMLPurifier_URIScheme_https Validates https (Secure HTTP) according to http scheme.
HTMLPurifier_URIScheme_mailto Validates mailto (for E-mail) according to RFC 2368
HTMLPurifier_URIScheme_news Validates news (Usenet) as defined by generic RFC 1738
HTMLPurifier_URIScheme_nntp Validates nntp (Network News Transfer Protocol) as defined by generic RFC 1738
HTMLPurifier_URIScheme_tel Validates tel (for phone numbers).
HTMLPurifier_URISchemeRegistry Registry for retrieving specific URI scheme validator objects.
HTMLPurifier_VarParser Parses string representations into their corresponding native PHP variable type. The base implementation does a simple type-check.
HTMLPurifier_VarParser_Flexible Performs safe variable parsing based on types which can be used by users. This may not be able to represent all possible data inputs, however.
HTMLPurifier_VarParser_Native This variable parser uses PHP's internal code engine. Because it does this, it can represent all inputs; however, it is dangerous and cannot be used by users.
HTMLPurifier_VarParserException Exception type for HTMLPurifier_VarParser
HTMLPurifier_Zipper A zipper is a purely-functional data structure which contains a focus that can be efficiently manipulated. It is known as a "one-hole context". This mutable variant implements a zipper for a list as a pair of two arrays, laid out as follows:
PKCS7Encoder PKCS7算法 - 加解密 Class PKCS7Encoder
Prpcrypt 公众号消息 - 加解密 Class Prpcrypt
UnhandledMatchError
ValueError
We 加载缓存器
WXBizDataCrypt 对微信小程序用户加密数据的解密示例代码 Class WXBizDataCrypt

Constants

APP_PATH

APP_PATH = __DIR__ . '/../application/'

APP_PATH

APP_PATH = dirname($_SERVER['SCRIPT_FILENAME']) . DS

APP_PATH

APP_PATH = __DIR__ . '/../application/'

CACHE_PATH

CACHE_PATH = RUNTIME_PATH . 'cache' . DS

CONF_EXT

CONF_EXT = EXT

CONF_PATH

CONF_PATH = APP_PATH

CORE_PATH

CORE_PATH = LIB_PATH . 'think' . DS

DS

DS = DIRECTORY_SEPARATOR

ENV_PREFIX

ENV_PREFIX = 'PHP_'

EXT

EXT = '.php'

EXTEND_PATH

EXTEND_PATH = ROOT_PATH . 'extend' . DS

EXTEND_PATH

EXTEND_PATH = __DIR__ . '../extend/'

FILTER_VALIDATE_BOOL

FILTER_VALIDATE_BOOL = \FILTER_VALIDATE_BOOLEAN

HTMLPURIFIER_PREFIX

HTMLPURIFIER_PREFIX = dirname(__FILE__)

HTMLPURIFIER_PREFIX

HTMLPURIFIER_PREFIX = realpath(dirname(__FILE__) . '/..')

IS_CLI

IS_CLI = PHP_SAPI == 'cli' ? true : false

IS_WIN

IS_WIN = strpos(PHP_OS, 'WIN') !== false

LIB_PATH

LIB_PATH = THINK_PATH . 'library' . DS

LOG_PATH

LOG_PATH = RUNTIME_PATH . 'log' . DS

MB_CASE_LOWER

MB_CASE_LOWER = 1

MB_CASE_TITLE

MB_CASE_TITLE = 2

MB_CASE_UPPER

MB_CASE_UPPER = 0

PHP_EOL

PHP_EOL = "\n"

ROOT_PATH

ROOT_PATH = dirname(realpath(APP_PATH)) . DS

RUNTIME_PATH

RUNTIME_PATH = ROOT_PATH . 'runtime' . DS

TEMP_PATH

TEMP_PATH = RUNTIME_PATH . 'temp' . DS

THINK_PATH

THINK_PATH = __DIR__ . DS

THINK_START_MEM

THINK_START_MEM = memory_get_usage()

THINK_START_TIME

THINK_START_TIME = microtime(true)

THINK_VERSION

THINK_VERSION = '5.0.24'

TRAIT_PATH

TRAIT_PATH = LIB_PATH . 'traits' . DS

VENDOR_PATH

VENDOR_PATH = ROOT_PATH . 'vendor' . DS

XS_ENTER

XS_ENTER = '/public/index.php'

XS_PHP_VERSION_HINT

XS_PHP_VERSION_HINT = "<script>alert(\"您php版本过小,请调节至大于7.0\");</script>"

Functions

__autoload()

__autoload(  $class) 

Parameters

$class

abort()

abort(integer|\think\Response  $code, string  $message = null, array  $header = array()) 

抛出HTTP异常

Parameters

integer|\think\Response $code

状态码 或者 Response对象实例

string $message

错误信息

array $header

参数

action()

action(string  $url, string|array  $vars = array(), string  $layer = 'controller', boolean  $appendSuffix = false) : mixed

调用模块的操作方法 参数格式 [模块/控制器/]操作

Parameters

string $url

调用地址

string|array $vars

调用参数 支持字符串和数组

string $layer

要调用的控制层名称

boolean $appendSuffix

是否添加类名后缀

Returns

mixed

cache()

cache(mixed  $name, mixed  $value = '', mixed  $options = null, string  $tag = null) : mixed

缓存管理

Parameters

mixed $name

缓存名称,如果为数组表示进行缓存设置

mixed $value

缓存值

mixed $options

缓存参数

string $tag

缓存标签

Returns

mixed

cheakToken()

cheakToken() 

collection()

collection(array  $resultSet) : \think\model\Collection|\think\Collection

数组转换为数据集对象

Parameters

array $resultSet

数据集数组

Returns

\think\model\Collection|\think\Collection

composerRequire8514b232e58364ae7e8404246162cb2a()

composerRequire8514b232e58364ae7e8404246162cb2a(  $fileIdentifier,   $file) 

Parameters

$fileIdentifier
$file

config()

config(string|array  $name = '', mixed  $value = null, string  $range = '') : mixed

获取和设置配置参数

Parameters

string|array $name

参数名

mixed $value

参数值

string $range

作用域

Returns

mixed

controller()

controller(string  $name, string  $layer = 'controller', boolean  $appendSuffix = false) : \think\Controller

实例化控制器 格式:[模块/]控制器

Parameters

string $name

资源地址

string $layer

控制层名称

boolean $appendSuffix

是否添加类名后缀

Returns

\think\Controller

cookie()

cookie(string|array  $name, mixed  $value = '', mixed  $option = null) : mixed

Cookie管理

Parameters

string|array $name

cookie名称,如果为数组表示进行cookie设置

mixed $value

cookie值

mixed $option

参数

Returns

mixed

db()

db(string  $name = '', array|string  $config = array(), boolean  $force = false) : \think\db\Query

实例化数据库类

Parameters

string $name

操作的数据表名称(不含前缀)

array|string $config

数据库配置参数

boolean $force

是否强制重新连接

Returns

\think\db\Query

debug()

debug(string  $start, string  $end = '', integer|string  $dec = 6) : mixed

记录时间(微秒)和内存使用情况

Parameters

string $start

开始标签

string $end

结束标签

integer|string $dec

小数位 如果是m 表示统计内存占用

Returns

mixed

dot()

dot(mixed  $items) : \Adbar\Dot

Create a new Dot object with the given items

Parameters

mixed $items

Returns

\Adbar\Dot

dump()

dump(mixed  $var, boolean  $echo = true, string  $label = null) : void|string

浏览器友好的变量输出

Parameters

mixed $var

变量

boolean $echo

是否输出 默认为true 如果为false 则返回输出字符串

string $label

标签 默认为空

Returns

void|string

exception()

exception(string  $msg, integer  $code, string  $exception = '') 

抛出异常处理

Parameters

string $msg

异常消息

integer $code

异常代码 默认为0

string $exception

异常类

Throws

\Exception

fdiv()

fdiv(\float  $num1, \float  $num2) 

Parameters

\float $num1
\float $num2

get_debug_type()

get_debug_type(  $value) 

Parameters

$value

get_resource_id()

get_resource_id(  $resource) 

Parameters

$resource

getallheaders()

getallheaders() : \string[string]

Get all HTTP header key/values as an associative array for the current request.

Returns

\string[string] —

The HTTP header key/value pairs.

halt()

halt(mixed  $var) 

调试变量并且中断输出

Parameters

mixed $var

调试变量或者信息

HTMLPurifier()

HTMLPurifier(string  $html, mixed  $config = null) : string

Purify HTML.

Parameters

string $html

String HTML to purify

mixed $config

Configuration to use, can be any value accepted by HTMLPurifier_Config::create()

Returns

string

htmlpurifier_filter_extractstyleblocks_muteerrorhandler()

htmlpurifier_filter_extractstyleblocks_muteerrorhandler() 

hypo()

hypo(mixed  $a, mixed  $b) : float

Pythagorean Theorem:.

a = 3 b = 4 r = sqrt(square(a) + square(b)) r = 5

r = sqrt(a^2 + b^2) without under/overflow.

Parameters

mixed $a
mixed $b

Returns

float

import()

import(string  $class, string  $baseUrl = '', string  $ext = EXT) : boolean

导入所需的类库 同java的Import 本函数有缓存功能

Parameters

string $class

类库命名空间字符串

string $baseUrl

起始路径

string $ext

导入的文件扩展名

Returns

boolean

input()

input(string  $key = '', mixed  $default = null, string  $filter = '') : mixed

获取输入数据 支持默认值和过滤

Parameters

string $key

获取的变量名

mixed $default

默认值

string $filter

过滤方法

Returns

mixed

json()

json(mixed  $data = array(), integer  $code = 200, array  $header = array(), array  $options = array()) : \think\response\Json

获取\think\response\Json对象实例

Parameters

mixed $data

返回的数据

integer $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Json

jsonp()

jsonp(mixed  $data = array(), integer  $code = 200, array  $header = array(), array  $options = array()) : \think\response\Jsonp

获取\think\response\Jsonp对象实例

Parameters

mixed $data

返回的数据

integer $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Jsonp

kses()

kses(  $string,   $allowed_html,   $allowed_protocols = null) 

Parameters

$string
$allowed_html
$allowed_protocols

lang()

lang(string  $name, array  $vars = array(), string  $lang = '') : mixed

获取语言变量值

Parameters

string $name

语言变量名

array $vars

动态变量值

string $lang

语言

Returns

mixed

load_relation()

load_relation(mixed  $resultSet, mixed  $relation) : array

延迟预载入关联查询

Parameters

mixed $resultSet

数据集

mixed $relation

关联

Returns

array

load_trait()

load_trait(string  $class, string  $ext = EXT) : boolean

快速导入Traits PHP5.5以上无需调用

Parameters

string $class

trait库

string $ext

类库后缀

Returns

boolean

mb_check_encoding()

mb_check_encoding(  $value = null,   $encoding = null) 

Parameters

$value
$encoding

mb_chr()

mb_chr(  $codepoint,   $encoding = null) 

Parameters

$codepoint
$encoding

mb_convert_case()

mb_convert_case(  $string,   $mode,   $encoding = null) 

Parameters

$string
$mode
$encoding

mb_convert_encoding()

mb_convert_encoding(  $string,   $to_encoding,   $from_encoding = null) 

Parameters

$string
$to_encoding
$from_encoding

mb_convert_variables()

mb_convert_variables(  $to_encoding,   $from_encoding,   $vars) 

Parameters

$to_encoding
$from_encoding
$vars

mb_decode_mimeheader()

mb_decode_mimeheader(  $string) 

Parameters

$string

mb_decode_numericentity()

mb_decode_numericentity(  $string,   $map,   $encoding = null) 

Parameters

$string
$map
$encoding

mb_detect_encoding()

mb_detect_encoding(  $string,   $encodings = null,   $strict = false) 

Parameters

$string
$encodings
$strict

mb_detect_order()

mb_detect_order(  $encoding = null) 

Parameters

$encoding

mb_encode_mimeheader()

mb_encode_mimeheader(  $string,   $charset = null,   $transfer_encoding = null,   $newline = "\r\n",   $indent) 

Parameters

$string
$charset
$transfer_encoding
$newline
$indent

mb_encode_numericentity()

mb_encode_numericentity(  $string,   $map,   $encoding = null,   $hex = false) 

Parameters

$string
$map
$encoding
$hex

mb_encoding_aliases()

mb_encoding_aliases(  $encoding) 

Parameters

$encoding

mb_get_info()

mb_get_info(  $type = 'all') 

Parameters

$type

mb_http_input()

mb_http_input(  $type = null) 

Parameters

$type

mb_http_output()

mb_http_output(  $encoding = null) 

Parameters

$encoding

mb_internal_encoding()

mb_internal_encoding(  $encoding = null) 

Parameters

$encoding

mb_language()

mb_language(  $language = null) 

Parameters

$language

mb_list_encodings()

mb_list_encodings() 

mb_ord()

mb_ord(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_output_handler()

mb_output_handler(  $string,   $status) 

Parameters

$string
$status

mb_parse_str()

mb_parse_str(  $string,   $result = array()) 

Parameters

$string
$result

mb_scrub()

mb_scrub(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_str_split()

mb_str_split(  $string,   $length = 1,   $encoding = null) 

Parameters

$string
$length
$encoding

mb_stripos()

mb_stripos(  $haystack,   $needle,   $offset,   $encoding = null) 

Parameters

$haystack
$needle
$offset
$encoding

mb_stristr()

mb_stristr(  $haystack,   $needle,   $before_needle = false,   $encoding = null) 

Parameters

$haystack
$needle
$before_needle
$encoding

mb_strlen()

mb_strlen(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_strpos()

mb_strpos(  $haystack,   $needle,   $offset,   $encoding = null) 

Parameters

$haystack
$needle
$offset
$encoding

mb_strrchr()

mb_strrchr(  $haystack,   $needle,   $before_needle = false,   $encoding = null) 

Parameters

$haystack
$needle
$before_needle
$encoding

mb_strrichr()

mb_strrichr(  $haystack,   $needle,   $before_needle = false,   $encoding = null) 

Parameters

$haystack
$needle
$before_needle
$encoding

mb_strripos()

mb_strripos(  $haystack,   $needle,   $offset,   $encoding = null) 

Parameters

$haystack
$needle
$offset
$encoding

mb_strrpos()

mb_strrpos(  $haystack,   $needle,   $offset,   $encoding = null) 

Parameters

$haystack
$needle
$offset
$encoding

mb_strstr()

mb_strstr(  $haystack,   $needle,   $before_needle = false,   $encoding = null) 

Parameters

$haystack
$needle
$before_needle
$encoding

mb_strtolower()

mb_strtolower(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_strtoupper()

mb_strtoupper(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_strwidth()

mb_strwidth(  $string,   $encoding = null) 

Parameters

$string
$encoding

mb_substitute_character()

mb_substitute_character(  $substitute_character = null) 

Parameters

$substitute_character

mb_substr()

mb_substr(  $string,   $start,   $length = 2147483647,   $encoding = null) 

Parameters

$string
$start
$length
$encoding

mb_substr_count()

mb_substr_count(  $haystack,   $needle,   $encoding = null) 

Parameters

$haystack
$needle
$encoding

model()

model(string  $name = '', string  $layer = 'model', boolean  $appendSuffix = false) : \think\Model

实例化Model

Parameters

string $name

Model名称

string $layer

业务层名称

boolean $appendSuffix

是否添加类名后缀

Returns

\think\Model

preg_last_error_msg()

preg_last_error_msg() 

redirect()

redirect(mixed  $url = array(), array|integer  $params = array(), integer  $code = 302, array  $with = array()) : \think\response\Redirect

获取\think\response\Redirect对象实例

Parameters

mixed $url

重定向地址 支持Url::build方法的地址

array|integer $params

额外参数

integer $code

状态码

array $with

隐式传参

Returns

\think\response\Redirect

request()

request() : \think\Request

获取当前Request对象实例

Returns

\think\Request

response()

response(mixed  $data = array(), integer|string  $code = 200, array  $header = array(), string  $type = 'html') : \think\Response

创建普通 Response 对象实例

Parameters

mixed $data

输出数据

integer|string $code

状态码

array $header

头信息

string $type

Returns

\think\Response

responseMsg()

responseMsg() 

runCase()

runCase(  $given,   $expression,   $name) 

Parameters

$given
$expression
$name

runSuite()

runSuite(  $file) 

Parameters

$file

sendEmail()

sendEmail(  $to,   $title,   $content) 

Parameters

$to
$title
$content

session()

session(string|array  $name, mixed  $value = '', string  $prefix = null) : mixed

Session管理

Parameters

string|array $name

session名称,如果为数组表示进行session设置

mixed $value

session值

string $prefix

前缀

Returns

mixed

str_contains()

str_contains(\string  $haystack, \string  $needle) 

Parameters

\string $haystack
\string $needle

str_ends_with()

str_ends_with(\string  $haystack, \string  $needle) 

Parameters

\string $haystack
\string $needle

str_starts_with()

str_starts_with(\string  $haystack, \string  $needle) 

Parameters

\string $haystack
\string $needle

token()

token(string  $name = '__token__', mixed  $type = 'md5') : string

生成表单令牌

Parameters

string $name

令牌名称

mixed $type

令牌生成方法

Returns

string

trace()

trace(mixed  $log = '[think]', string  $level = 'log') : void|array

记录日志信息

Parameters

mixed $log

log信息 支持字符串和数组

string $level

日志级别

Returns

void|array

trigger_deprecation()

trigger_deprecation(string  $package, string  $version, string  $message, mixed  $args) 

Triggers a silenced deprecation notice.

Parameters

string $package

The name of the Composer package that is triggering the deprecation

string $version

The version of the package that introduced the deprecation

string $message

The message of the deprecation

mixed $args

Values to insert in the message using printf() formatting

url()

url(string  $url = '', string|array  $vars = '', boolean|string  $suffix = true, boolean|string  $domain = false) : string

Url生成

Parameters

string $url

路由地址

string|array $vars

变量

boolean|string $suffix

生成的URL后缀

boolean|string $domain

域名

Returns

string

validate()

validate(string  $name = '', string  $layer = 'validate', boolean  $appendSuffix = false) : \think\Validate

实例化验证器

Parameters

string $name

验证器名称

string $layer

业务层名称

boolean $appendSuffix

是否添加类名后缀

Returns

\think\Validate

vendor()

vendor(string  $class, string  $ext = EXT) : boolean

快速导入第三方框架类库 所有第三方框架的类库文件统一放到 系统的Vendor目录下面

Parameters

string $class

类库

string $ext

类库后缀

Returns

boolean

view()

view(string  $template = '', array  $vars = array(), array  $replace = array(), integer  $code = 200) : \think\response\View

渲染模板输出

Parameters

string $template

模板文件

array $vars

模板变量

array $replace

模板替换

integer $code

状态码

Returns

\think\response\View

widget()

widget(string  $name, array  $data = array()) : mixed

渲染输出Widget

Parameters

string $name

Widget名称

array $data

传入的参数

Returns

mixed

xml()

xml(mixed  $data = array(), integer  $code = 200, array  $header = array(), array  $options = array()) : \think\response\Xml

获取\think\response\Xml对象实例

Parameters

mixed $data

返回的数据

integer $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Xml