\

Namespaces

app
Composer
Detection
Jaybizzle
Jenssegers
lib
PHPMailer
tests
think
top
traits

Classes

baseTest 保证运行环境正常
ComposerAutoloaderInit547f1ba8138a17d6b867624279d0c7eb
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_ContentEditable Base class for all validating attribute definitions.
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:
Mobile_Detect Mobile Detect Library Motto: "Every business should have a mobile detection script to detect mobile readers"

Constants

APP_PATH

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

APP_PATH

APP_PATH = __DIR__ . '/application/'

CORE_PATH

CORE_PATH = \LIB_PATH . 'think' . \DS

CORE_PATH

CORE_PATH = \LIB_PATH . 'think' . \DS

DS

DS = \DIRECTORY_SEPARATOR

DS

DS = \DIRECTORY_SEPARATOR

EXT

EXT = '.php'

EXT

EXT = '.php'

EXTEND_PATH

EXTEND_PATH = '../extend'

HTMLPURIFIER_PREFIX

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

HTMLPURIFIER_PREFIX

HTMLPURIFIER_PREFIX = \dirname(__FILE__)

IS_CLI

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

IS_CLI

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

IS_WIN

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

IS_WIN

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

LIB_PATH

LIB_PATH = \THINK_PATH . 'library' . \DS

LIB_PATH

LIB_PATH = \THINK_PATH . 'library' . \DS

TEST_PATH

TEST_PATH = __DIR__ . '/'

TEST_PATH

TEST_PATH = __DIR__ . '/'

THINK_START_MEM

THINK_START_MEM = \memory_get_usage()

THINK_START_MEM

THINK_START_MEM = \memory_get_usage()

THINK_START_TIME

THINK_START_TIME = \microtime(\true)

THINK_START_TIME

THINK_START_TIME = \microtime(\true)

THINK_VERSION

THINK_VERSION = '5.0.24'

THINK_VERSION

THINK_VERSION = '5.0.24'

TRAIT_PATH

TRAIT_PATH = \LIB_PATH . 'traits' . \DS

TRAIT_PATH

TRAIT_PATH = \LIB_PATH . 'traits' . \DS

Functions

abort()

abort(int|\Response  $code, string  $message = null, array  $header = []) : mixed

抛出HTTP异常

Parameters

int|\Response $code

状态码 或者 Response对象实例

string $message

错误信息

array $header

参数

Returns

mixed —

abort()

abort(int|\Response  $code, string  $message = null, array  $header = []) : mixed

抛出HTTP异常

Parameters

int|\Response $code

状态码 或者 Response对象实例

string $message

错误信息

array $header

参数

Returns

mixed —

action()

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

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

Parameters

string $url

调用地址

string|array $vars

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

string $layer

要调用的控制层名称

bool $appendSuffix

是否添加类名后缀

Returns

mixed —

action()

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

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

Parameters

string $url

调用地址

string|array $vars

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

string $layer

要调用的控制层名称

bool $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 —

cache()

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

缓存管理

Parameters

mixed $name

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

mixed $value

缓存值

mixed $options

缓存参数

string $tag

缓存标签

Returns

mixed —

captcha()

captcha(string  $id = '', array  $config = []) : \think\Response

Parameters

string $id
array $config

Returns

\think\Response —

captcha_check()

captcha_check( $value, string  $id = '') : bool

Parameters

$value
string $id

Returns

bool —

captcha_img()

captcha_img( $id = '') : mixed

Parameters

$id

Returns

mixed —

captcha_img_with_replacement()

captcha_img_with_replacement(string  $id = '', string  $element = 'think-captcha') : string

Parameters

string $id
string $element

验证码HTML元素ID

Returns

string —

captcha_src()

captcha_src( $id = '') : string

Parameters

$id

Returns

string —

check_cors_request()

check_cors_request() : mixed

跨域检测

Returns

mixed —

class_basename()

class_basename(string|object  $class) : string

获取类名(不包含命名空间)

Parameters

string|object $class

Returns

string —

class_uses_recursive()

class_uses_recursive( $class) : array

获取一个类里所有用到的trait,包括父类的

Parameters

$class

Returns

array —

classnames()

classnames() : mixed

css样式名生成器 classnames("foo", "bar"); // => "foo bar" classnames("foo", [ "bar"=> true ]); // => "foo bar" classnames([ "foo-bar"=> true ]); // => "foo-bar" classnames([ "foo-bar"=> false ]); // => " classnames([ "foo" => true ], [ "bar"=> true ]); // => "foo bar" classnames([ "foo" => true, "bar"=> true ]); // => "foo bar" classnames("foo", [ "bar"=> true, "duck"=> false ], "baz", [ "quux"=> true ]); // => "foo bar baz quux" classnames(null, false, "bar", 0, 1, [ "baz"=> null ]); // => "bar 1"

Returns

mixed —

collection()

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

数组转换为数据集对象

Parameters

array $resultSet

数据集数组

Returns

\think\model\Collection|\think\Collection —

collection()

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

数组转换为数据集对象

Parameters

array $resultSet

数据集数组

Returns

\think\model\Collection|\think\Collection —

composerRequire547f1ba8138a17d6b867624279d0c7eb()

composerRequire547f1ba8138a17d6b867624279d0c7eb(string  $fileIdentifier, string  $file) : void

Parameters

string $fileIdentifier
string $file

config()

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

获取和设置配置参数

Parameters

string|array $name

参数名

mixed $value

参数值

string $range

作用域

Returns

mixed —

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', bool  $appendSuffix = false) : \think\Controller

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

Parameters

string $name

资源地址

string $layer

控制层名称

bool $appendSuffix

是否添加类名后缀

Returns

\think\Controller —

controller()

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

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

Parameters

string $name

资源地址

string $layer

控制层名称

bool $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 —

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 = [], bool  $force = false) : \think\db\Query

实例化数据库类

Parameters

string $name

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

array|string $config

数据库配置参数

bool $force

是否强制重新连接

Returns

\think\db\Query —

db()

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

实例化数据库类

Parameters

string $name

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

array|string $config

数据库配置参数

bool $force

是否强制重新连接

Returns

\think\db\Query —

debug()

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

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

Parameters

string $start

开始标签

string $end

结束标签

int|string $dec

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

Returns

mixed —

debug()

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

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

Parameters

string $start

开始标签

string $end

结束标签

int|string $dec

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

Returns

mixed —

dump()

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

浏览器友好的变量输出

Parameters

mixed $var

变量

bool $echo

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

string $label

标签 默认为空

Returns

void|string —

dump()

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

浏览器友好的变量输出

Parameters

mixed $var

变量

bool $echo

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

string $label

标签 默认为空

Returns

void|string —

exception()

exception(string  $msg, int  $code, string  $exception = '') : mixed

抛出异常处理

Parameters

string $msg

异常消息

int $code

异常代码 默认为0

string $exception

异常类

Throws

\Exception

Returns

mixed —

exception()

exception(string  $msg, int  $code, string  $exception = '') : mixed

抛出异常处理

Parameters

string $msg

异常消息

int $code

异常代码 默认为0

string $exception

异常类

Throws

\Exception

Returns

mixed —

halt()

halt(mixed  $var) : mixed

调试变量并且中断输出

Parameters

mixed $var

调试变量或者信息

Returns

mixed —

halt()

halt(mixed  $var) : mixed

调试变量并且中断输出

Parameters

mixed $var

调试变量或者信息

Returns

mixed —

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() : mixed

Returns

mixed —

import()

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

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

Parameters

string $class

类库命名空间字符串

string $baseUrl

起始路径

string $ext

导入的文件扩展名

Returns

bool —

import()

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

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

Parameters

string $class

类库命名空间字符串

string $baseUrl

起始路径

string $ext

导入的文件扩展名

Returns

bool —

input()

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

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

Parameters

string $key

获取的变量名

mixed $default

默认值

string $filter

过滤方法

Returns

mixed —

input()

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

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

Parameters

string $key

获取的变量名

mixed $default

默认值

string $filter

过滤方法

Returns

mixed —

json()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Json —

json()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Json —

jsonp()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Jsonp —

jsonp()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Jsonp —

kses()

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

Parameters

mixed $string
mixed $allowed_html
mixed $allowed_protocols

Returns

mixed —

lang()

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

获取语言变量值

Parameters

string $name

语言变量名

array $vars

动态变量值

string $lang

语言

Returns

mixed —

lang()

lang(string  $name, array  $vars = [], 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_relation()

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

延迟预载入关联查询

Parameters

mixed $resultSet

数据集

mixed $relation

关联

Returns

array —

load_trait()

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

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

Parameters

string $class

trait库

string $ext

类库后缀

Returns

bool —

load_trait()

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

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

Parameters

string $class

trait库

string $ext

类库后缀

Returns

bool —

model()

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

实例化Model

Parameters

string $name

Model名称

string $layer

业务层名称

bool $appendSuffix

是否添加类名后缀

Returns

\think\Model —

model()

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

实例化Model

Parameters

string $name

Model名称

string $layer

业务层名称

bool $appendSuffix

是否添加类名后缀

Returns

\think\Model —

outputJson()

outputJson(mixed  $object) : mixed

Parameters

mixed $object

Returns

mixed —

outputTxt()

outputTxt(mixed  $object) : mixed

Parameters

mixed $object

Returns

mixed —

redirect()

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

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

Parameters

mixed $url

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

array|int $params

额外参数

int $code

状态码

array $with

隐式传参

Returns

\think\response\Redirect —

redirect()

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

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

Parameters

mixed $url

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

array|int $params

额外参数

int $code

状态码

array $with

隐式传参

Returns

\think\response\Redirect —

request()

request() : \Request

获取当前Request对象实例

Returns

\Request —

request()

request() : \Request

获取当前Request对象实例

Returns

\Request —

response()

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

创建普通 Response 对象实例

Parameters

mixed $data

输出数据

int|string $code

状态码

array $header

头信息

string $type

Returns

\Response —

response()

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

创建普通 Response 对象实例

Parameters

mixed $data

输出数据

int|string $code

状态码

array $header

头信息

string $type

Returns

\Response —

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 —

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 —

token()

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

生成表单令牌

Parameters

string $name

令牌名称

mixed $type

令牌生成方法

Returns

string —

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 —

trace()

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

记录日志信息

Parameters

mixed $log

log信息 支持字符串和数组

string $level

日志级别

Returns

void|array —

trait_uses_recursive()

trait_uses_recursive(string  $trait) : array

获取一个trait里所有引用到的trait

Parameters

string $trait

Returns

array —

url()

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

Url生成

Parameters

string $url

路由地址

string|array $vars

变量

bool|string $suffix

生成的URL后缀

bool|string $domain

域名

Returns

string —

url()

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

Url生成

Parameters

string $url

路由地址

string|array $vars

变量

bool|string $suffix

生成的URL后缀

bool|string $domain

域名

Returns

string —

validate()

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

实例化验证器

Parameters

string $name

验证器名称

string $layer

业务层名称

bool $appendSuffix

是否添加类名后缀

Returns

\think\Validate —

validate()

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

实例化验证器

Parameters

string $name

验证器名称

string $layer

业务层名称

bool $appendSuffix

是否添加类名后缀

Returns

\think\Validate —

vendor()

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

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

Parameters

string $class

类库

string $ext

类库后缀

Returns

bool —

vendor()

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

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

Parameters

string $class

类库

string $ext

类库后缀

Returns

bool —

view()

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

渲染模板输出

Parameters

string $template

模板文件

array $vars

模板变量

array $replace

模板替换

int $code

状态码

Returns

\think\response\View —

view()

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

渲染模板输出

Parameters

string $template

模板文件

array $vars

模板变量

array $replace

模板替换

int $code

状态码

Returns

\think\response\View —

widget()

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

渲染输出Widget

Parameters

string $name

Widget名称

array $data

传入的参数

Returns

mixed —

widget()

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

渲染输出Widget

Parameters

string $name

Widget名称

array $data

传入的参数

Returns

mixed —

xml()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Xml —

xml()

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

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

Parameters

mixed $data

返回的数据

int $code

状态码

array $header

头部

array $options

参数

Returns

\think\response\Xml —