\

Namespaces

Adbar
AlibabaCloud
Alipay
app
BaconQrCode
BaconQrCodeTest
BarcodeBakery
BigintTest
BugHonorFileTimeTest
Complex
Composer
DASPRiD
Endroid
GuzzleHttp
JmesPath
Khanamiryan
League
Matrix
MyCLabs
org
PhpOffice
Pimple
Psr
Songshenzong
spec
Stringy
Symfony
think
ZipStream
ZipStreamTest
Zxing

Interfaces

Stringable

Classes

AdapterCacheTests
Attribute
ClientTest
ClientTest
ClientTest
ClientTest
ComposerAutoloaderInit90b856d7abf7e0eea063f6ff76390209
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:
InspectionTests
JsonException
MemcachedTests
MemoryCacheTests
NoopCacheTests
Normalizer
PhpRedisTests
PredisTests
Psr6CacheTests
StashTests
UnhandledMatchError
ValueError
WxPayApi 接口访问类,包含所有微信支付API列表的封装,类中方法为static方法, 每个接口有默认超时时间(除提交被扫支付为10s,上报超时时间为1s外,其他均为6s)
WxPayBizPayUrl 扫码支付模式一生成二维码参数
WxPayCloseOrder 关闭订单输入对象
WxPayConfig 配置账号信息
WxPayConfigInterface 配置账号信息
WxPayDataBase 数据对象基础类,该类中定义数据类最基本的行为,包括: 计算/设置/获取签名、输出xml格式的参数、从xml读取数据对象等
WxPayDataBaseSignMd5 只使用md5算法进行签名, 不管配置的是什么签名方式,都只支持md5签名方式
WxPayDownloadBill 下载对账单输入对象
WxPayException 微信支付API异常类
WxPayJsApiPay 提交JSAPI输入对象
WxPayMicroPay 提交被扫输入对象
WxPayNotify 回调基础类
WxPayNotifyReply 回调基础类
WxPayNotifyResults 回调回包数据基类
WxPayOrderQuery 订单查询输入对象
WxPayRefund 提交退款输入对象
WxPayRefundQuery 退款查询输入对象
WxPayReport 测速上报输入对象
WxPayResults 接口调用结果类
WxPayReverse 撤销输入对象
WxPayShortUrl 短链转换输入对象
WxPayUnifiedOrder 统一下单输入对象

Constants

CODE128_A

CODE128_A = 1

CODE128_A

CODE128_A = 1

CODE128_B

CODE128_B = 2

CODE128_B

CODE128_B = 2

CODE128_C

CODE128_C = 3

CODE128_C

CODE128_C = 3

FILTER_VALIDATE_BOOL

FILTER_VALIDATE_BOOL = \FILTER_VALIDATE_BOOLEAN

GRAPHEME_EXTR_COUNT

GRAPHEME_EXTR_COUNT = 0

GRAPHEME_EXTR_COUNT

GRAPHEME_EXTR_COUNT = 0

GRAPHEME_EXTR_MAXBYTES

GRAPHEME_EXTR_MAXBYTES = 1

GRAPHEME_EXTR_MAXBYTES

GRAPHEME_EXTR_MAXBYTES = 1

GRAPHEME_EXTR_MAXCHARS

GRAPHEME_EXTR_MAXCHARS = 2

GRAPHEME_EXTR_MAXCHARS

GRAPHEME_EXTR_MAXCHARS = 2

HTMLPURIFIER_PREFIX

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

HTMLPURIFIER_PREFIX

HTMLPURIFIER_PREFIX = \dirname(__FILE__)

MB_CASE_LOWER

MB_CASE_LOWER = 1

MB_CASE_LOWER

MB_CASE_LOWER = 1

MB_CASE_TITLE

MB_CASE_TITLE = 2

MB_CASE_TITLE

MB_CASE_TITLE = 2

MB_CASE_UPPER

MB_CASE_UPPER = 0

MB_CASE_UPPER

MB_CASE_UPPER = 0

PHP_FLOAT_DIG

PHP_FLOAT_DIG = 15

PHP_FLOAT_EPSILON

PHP_FLOAT_EPSILON = 2.2204460492503E-16

PHP_FLOAT_MAX

PHP_FLOAT_MAX = 1.7976931348623157E+308

PHP_FLOAT_MIN

PHP_FLOAT_MIN = 2.2250738585072E-308

PHP_OS_FAMILY

PHP_OS_FAMILY = \Symfony\Polyfill\Php72\Php72::php_os_family()

SYMFONY_GRAPHEME_CLUSTER_RX

SYMFONY_GRAPHEME_CLUSTER_RX = \PCRE_VERSION >= '8.32' ? '\\X' : \Symfony\Polyfill\Intl\Grapheme\Grapheme::GRAPHEME_CLUSTER_RX

Functions

__autoload()

__autoload(mixed  $class) : mixed

Parameters

mixed $class

Returns

mixed —

abort()

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

抛出HTTP异常

Parameters

int|\Response $code

状态码 或者 Response对象实例

string $message

错误信息

array $header

参数

Returns

mixed —

app()

app(string  $name = '', array  $args = [], bool  $newInstance = false) : object|\App

快速获取容器中的实例 支持依赖注入

Parameters

string $name

类名或标识 默认获取当前应用实例

array $args

参数

bool $newInstance

是否每次创建新的实例

Returns

object|\App —

app_path()

app_path(string  $path = '') : string

获取当前应用目录

Parameters

string $path

Returns

string —

array_key_first()

array_key_first(array  $array) : mixed

Parameters

array $array

Returns

mixed —

array_key_last()

array_key_last(array  $array) : mixed

Parameters

array $array

Returns

mixed —

arrayColumns()

arrayColumns(mixed  $arr, mixed  $fields) : mixed

Parameters

mixed $arr
mixed $fields

Returns

mixed —

arraycopy()

arraycopy(mixed  $srcArray, mixed  $srcPos, mixed  $destArray, mixed  $destPos, mixed  $length) : mixed

Parameters

mixed $srcArray
mixed $srcPos
mixed $destArray
mixed $destPos
mixed $length

Returns

mixed —

arrayInArray()

arrayInArray(mixed  $arr1, mixed  $arr2) : mixed

Parameters

mixed $arr1
mixed $arr2

Returns

mixed —

arraySeek()

arraySeek(mixed  $array, mixed  $source) : mixed

Parameters

mixed $array
mixed $source

Returns

mixed —

arraySort()

arraySort(mixed  $arr, mixed  $field, mixed  $sort = SORT_ASC) : mixed

Parameters

mixed $arr
mixed $field
mixed $sort

Returns

mixed —

assoc_unique()

assoc_unique(mixed  $arr, mixed  $key) : mixed

Parameters

mixed $arr
mixed $key

Returns

mixed —

base_path()

base_path(string  $path = '') : string

获取应用基础目录

Parameters

string $path

Returns

string —

bind()

bind(string|array  $abstract, mixed  $concrete = null) : \Container

绑定一个类到容器

Parameters

string|array $abstract

类标识、接口(支持批量绑定)

mixed $concrete

要绑定的类、闭包或者实例

Returns

\Container —

buildExcel()

buildExcel(mixed  $fileName, mixed  $data, mixed  $down = true) : mixed

Parameters

mixed $fileName
mixed $data
mixed $down

Returns

mixed —

buildZip()

buildZip(mixed  $fileName, mixed  $files, mixed  $down = true) : mixed

Parameters

mixed $fileName
mixed $files
mixed $down

Returns

mixed —

cache()

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

缓存管理

Parameters

string $name

缓存名称

mixed $value

缓存值

mixed $options

缓存参数

string $tag

缓存标签

Returns

mixed —

cacheReset()

cacheReset(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

calArrMaxCount()

calArrMaxCount(mixed  $arr, mixed  $max) : mixed

Parameters

mixed $arr
mixed $max

Returns

mixed —

checkLogin()

checkLogin() : mixed

Returns

mixed —

class_basename()

class_basename(mixed  $class) : string

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

Parameters

mixed $class

类名

Returns

string —

class_uses_recursive()

class_uses_recursive(mixed  $class) : array

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

Parameters

mixed $class

类名

Returns

array —

collect()

collect(mixed  $value = null) : \Collection

Create a collection from the given value.

Parameters

mixed $value

Returns

\Collection —

composerRequire90b856d7abf7e0eea063f6ff76390209()

composerRequire90b856d7abf7e0eea063f6ff76390209(mixed  $fileIdentifier, mixed  $file) : mixed

Parameters

mixed $fileIdentifier
mixed $file

Returns

mixed —

config()

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

获取和设置配置参数

Parameters

string|array $name

参数名

mixed $value

参数值

Returns

mixed —

config_path()

config_path(string  $path = '') : string

获取应用配置目录

Parameters

string $path

Returns

string —

cookie()

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

Cookie管理

Parameters

string $name

cookie名称

mixed $value

cookie值

mixed $option

参数

Returns

mixed —

ctype_alnum()

ctype_alnum(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_alnum()

ctype_alnum(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_alpha()

ctype_alpha(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_alpha()

ctype_alpha(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_cntrl()

ctype_cntrl(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_cntrl()

ctype_cntrl(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_digit()

ctype_digit(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_digit()

ctype_digit(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_graph()

ctype_graph(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_graph()

ctype_graph(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_lower()

ctype_lower(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_lower()

ctype_lower(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_print()

ctype_print(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_print()

ctype_print(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_punct()

ctype_punct(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_punct()

ctype_punct(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_space()

ctype_space(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_space()

ctype_space(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_upper()

ctype_upper(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_upper()

ctype_upper(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

ctype_xdigit()

ctype_xdigit(mixed  $text) : mixed

Parameters

mixed $text

Returns

mixed —

ctype_xdigit()

ctype_xdigit(mixed  $text) : bool

Parameters

mixed $text

Returns

bool —

curl()

curl(mixed  $url, mixed  $header, mixed  $data, mixed  $method = 'POST') : mixed

Parameters

mixed $url
mixed $header
mixed $data
mixed $method

Returns

mixed —

data_fill()

data_fill(mixed  $target, string|array  $key, mixed  $value) : mixed

Fill in data where it's missing.

Parameters

mixed $target
string|array $key
mixed $value

Returns

mixed —

data_get()

data_get(mixed  $target, string|array|int  $key, mixed  $default = null) : mixed

Get an item from an array or object using "dot" notation.

Parameters

mixed $target
string|array|int $key
mixed $default

Returns

mixed —

data_set()

data_set(mixed  $target, string|array  $key, mixed  $value, bool  $overwrite = true) : mixed

Set an item on an array or object using dot notation.

Parameters

mixed $target
string|array $key
mixed $value
bool $overwrite

Returns

mixed —

db()

db(mixed  $model) : mixed

Parameters

mixed $model

Returns

mixed —

dd()

dd(mixed  ...$vars) : mixed

Parameters

mixed $vars variadic

Returns

mixed —

delCache()

delCache() : mixed

Returns

mixed —

delDir()

delDir(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

delOverdueFile()

delOverdueFile(mixed  $path, mixed  $time = 30) : mixed

Parameters

mixed $path
mixed $time

Returns

mixed —

display()

display(string  $content, array  $vars = [], int  $code = 200, callable  $filter = null) : \think\response\View

渲染模板输出

Parameters

string $content

渲染内容

array $vars

模板变量

int $code

状态码

callable $filter

内容过滤

Returns

\think\response\View —

dot()

dot(mixed  $items) : \Adbar\Dot

Create a new Dot object with the given items

Parameters

mixed $items

Returns

\Adbar\Dot —

download()

download(string  $filename, string  $name = '', bool  $content = false, int  $expire = 180) : \think\response\File

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

Parameters

string $filename

要下载的文件

string $name

显示文件名

bool $content

是否为内容

int $expire

有效期(秒)

Returns

\think\response\File —

dump()

dump(mixed  $var, mixed  ...$moreVars) : mixed

Parameters

mixed $var
mixed $moreVars variadic

Returns

mixed —

dump()

dump(mixed  ...$vars) : void

浏览器友好的变量输出

Parameters

mixed $vars variadic

要输出的变量

echoBlue()

echoBlue( $string) : mixed

Parameters

$string

Returns

mixed —

echoBrown()

echoBrown( $string) : mixed

Parameters

$string

Returns

mixed —

echoCyan()

echoCyan( $string) : mixed

Parameters

$string

Returns

mixed —

echoGreen()

echoGreen( $string) : mixed

Parameters

$string

Returns

mixed —

echoPurple()

echoPurple( $string) : mixed

Parameters

$string

Returns

mixed —

echoRed()

echoRed( $string) : mixed

Parameters

$string

Returns

mixed —

env()

env(string  $name = null, string  $default = null) : mixed

获取环境变量值

Parameters

string $name

环境变量名(支持二级 .号分割)

string $default

默认值

Returns

mixed —

event()

event(mixed  $event, mixed  $args = null) : mixed

触发事件

Parameters

mixed $event

事件名(或者类名)

mixed $args

参数

Returns

mixed —

ewm()

ewm(mixed  $text, mixed  $type = true) : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —

existFull()

existFull(mixed  $arr, mixed  $keys) : mixed

Parameters

mixed $arr
mixed $keys

Returns

mixed —

fastSql()

fastSql(mixed  $arr, mixed  $config) : mixed

Parameters

mixed $arr
mixed $config

Returns

mixed —

fdiv()

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

Parameters

float $num1
float $num2

Returns

float —

fetchFile()

fetchFile(mixed  $file) : mixed

Parameters

mixed $file

Returns

mixed —

fill_array()

fill_array(mixed  $index, mixed  $count, mixed  $value) : mixed

Parameters

mixed $index
mixed $count
mixed $value

Returns

mixed —

findSubData()

findSubData(mixed  $arr, mixed  $id) : mixed

Parameters

mixed $arr
mixed $id

Returns

mixed —

findTreeArr()

findTreeArr(mixed  $mode, mixed  $data, mixed  $field = false) : mixed

Parameters

mixed $mode
mixed $data
mixed $field

Returns

mixed —

floatToIntBits()

floatToIntBits(mixed  $float_val) : mixed

Parameters

mixed $float_val

Returns

mixed —

frameScope()

frameScope(mixed  $sql, mixed  $field = 'frame') : mixed

Parameters

mixed $sql
mixed $field

Returns

mixed —

get_debug_type()

get_debug_type(mixed  $value) : string

Parameters

mixed $value

Returns

string —

get_resource_id()

get_resource_id(mixed  $resource) : int

Parameters

mixed $resource

Returns

int —

getallheaders()

getallheaders() : mixed

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

Returns

mixed —

getDirSize()

getDirSize(mixed  $dir) : mixed

Parameters

mixed $dir

Returns

mixed —

getFields()

getFields() : mixed

Returns

mixed —

getFrameDeploy()

getFrameDeploy() : mixed

Returns

mixed —

getMysqlSize()

getMysqlSize() : mixed

Returns

mixed —

getOldDay()

getOldDay(mixed  $day = 7) : mixed

Parameters

mixed $day

Returns

mixed —

getPeriod()

getPeriod() : mixed

Returns

mixed —

getRootMemu()

getRootMemu() : mixed

Returns

mixed —

getSys()

getSys(mixed  $name = []) : mixed

Parameters

mixed $name

Returns

mixed —

getToken()

getToken() : mixed

Returns

mixed —

getUserAuth()

getUserAuth(mixed  $type) : mixed

Parameters

mixed $type

Returns

mixed —

getUserID()

getUserID() : mixed

Returns

mixed —

getUserRoot()

getUserRoot() : mixed

Returns

mixed —

getXlsx()

getXlsx(mixed  $file) : mixed

Parameters

mixed $file

Returns

mixed —

grapheme_extract()

grapheme_extract(mixed  $haystack, mixed  $size, mixed  $type, mixed  $start, mixed  $next) : mixed

Parameters

mixed $haystack
mixed $size
mixed $type
mixed $start
mixed $next

Returns

mixed —

grapheme_extract()

grapheme_extract(?string  $haystack, ?int  $size, ?int  $type = GRAPHEME_EXTR_COUNT, ?int  $offset, mixed  $next = null) : string|false

Parameters

?string $haystack
?int $size
?int $type
?int $offset
mixed $next

Returns

string|false —

grapheme_stripos()

grapheme_stripos(mixed  $haystack, mixed  $needle, mixed  $offset) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $offset

Returns

mixed —

grapheme_stripos()

grapheme_stripos(?string  $haystack, ?string  $needle, ?int  $offset) : int|false

Parameters

?string $haystack
?string $needle
?int $offset

Returns

int|false —

grapheme_stristr()

grapheme_stristr(mixed  $haystack, mixed  $needle, mixed  $beforeNeedle = false) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $beforeNeedle

Returns

mixed —

grapheme_stristr()

grapheme_stristr(?string  $haystack, ?string  $needle, ?bool  $beforeNeedle = false) : string|false

Parameters

?string $haystack
?string $needle
?bool $beforeNeedle

Returns

string|false —

grapheme_strlen()

grapheme_strlen(mixed  $input) : mixed

Parameters

mixed $input

Returns

mixed —

grapheme_strlen()

grapheme_strlen(?string  $string) : int|false|null

Parameters

?string $string

Returns

int|false|null —

grapheme_strpos()

grapheme_strpos(mixed  $haystack, mixed  $needle, mixed  $offset) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $offset

Returns

mixed —

grapheme_strpos()

grapheme_strpos(?string  $haystack, ?string  $needle, ?int  $offset) : int|false

Parameters

?string $haystack
?string $needle
?int $offset

Returns

int|false —

grapheme_strripos()

grapheme_strripos(mixed  $haystack, mixed  $needle, mixed  $offset) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $offset

Returns

mixed —

grapheme_strripos()

grapheme_strripos(?string  $haystack, ?string  $needle, ?int  $offset) : int|false

Parameters

?string $haystack
?string $needle
?int $offset

Returns

int|false —

grapheme_strrpos()

grapheme_strrpos(mixed  $haystack, mixed  $needle, mixed  $offset) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $offset

Returns

mixed —

grapheme_strrpos()

grapheme_strrpos(?string  $haystack, ?string  $needle, ?int  $offset) : int|false

Parameters

?string $haystack
?string $needle
?int $offset

Returns

int|false —

grapheme_strstr()

grapheme_strstr(mixed  $haystack, mixed  $needle, mixed  $beforeNeedle = false) : mixed

Parameters

mixed $haystack
mixed $needle
mixed $beforeNeedle

Returns

mixed —

grapheme_strstr()

grapheme_strstr(?string  $haystack, ?string  $needle, ?bool  $beforeNeedle = false) : string|false

Parameters

?string $haystack
?string $needle
?bool $beforeNeedle

Returns

string|false —

grapheme_substr()

grapheme_substr(mixed  $string, mixed  $offset, mixed  $length = null) : mixed

Parameters

mixed $string
mixed $offset
mixed $length

Returns

mixed —

grapheme_substr()

grapheme_substr(?string  $string, ?int  $offset, ?int  $length = null) : string|false

Parameters

?string $string
?int $offset
?int $length

Returns

string|false —

halt()

halt(mixed  ...$vars) : mixed

调试变量并且中断输出

Parameters

mixed $vars variadic

调试变量或者信息

Returns

mixed —

hashCode()

hashCode(mixed  $s) : mixed

Parameters

mixed $s

Returns

mixed —

hrtime()

hrtime(mixed  $as_number = false) : mixed

Parameters

mixed $as_number

Returns

mixed —

htmlpurifier()

htmlpurifier(mixed  $html) : mixed

Parameters

mixed $html

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 —

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 —

input()

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

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

Parameters

string $key

获取的变量名

mixed $default

默认值

string $filter

过滤方法

Returns

mixed —

install()

install() : mixed

Returns

mixed —

invoke()

invoke(mixed  $call, array  $args = []) : mixed

调用反射实例化对象或者执行方法 支持依赖注入

Parameters

mixed $call

类名或者callable

array $args

参数

Returns

mixed —

is_arrays()

is_arrays(mixed  $arr, mixed  $fields) : mixed

Parameters

mixed $arr
mixed $fields

Returns

mixed —

is_countable()

is_countable(mixed  $value) : mixed

Parameters

mixed $value

Returns

mixed —

isJson()

isJson(mixed  $string) : mixed

Parameters

mixed $string

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 —

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 —

listFile()

listFile(mixed  $path, mixed  $state = true) : mixed

Parameters

mixed $path
mixed $state

Returns

mixed —

math()

math(mixed  $digit = 6) : mixed

Parameters

mixed $digit

Returns

mixed —

mathArraySum()

mathArraySum(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

mb_check_encoding()

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

Parameters

mixed $value
mixed $encoding

Returns

mixed —

mb_check_encoding()

mb_check_encoding(array|string|null  $value = null, ?string  $encoding = null) : bool

Parameters

array|string|null $value
?string $encoding

Returns

bool —

mb_chr()

mb_chr(mixed  $codepoint, mixed  $encoding = null) : mixed

Parameters

mixed $codepoint
mixed $encoding

Returns

mixed —

mb_chr()

mb_chr(?int  $codepoint, ?string  $encoding = null) : string|false

Parameters

?int $codepoint
?string $encoding

Returns

string|false —

mb_chr()

mb_chr(mixed  $codepoint, mixed  $encoding = null) : mixed

Parameters

mixed $codepoint
mixed $encoding

Returns

mixed —

mb_convert_case()

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

Parameters

mixed $string
mixed $mode
mixed $encoding

Returns

mixed —

mb_convert_case()

mb_convert_case(?string  $string, ?int  $mode, ?string  $encoding = null) : string

Parameters

?string $string
?int $mode
?string $encoding

Returns

string —

mb_convert_encoding()

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

Parameters

mixed $string
mixed $to_encoding
mixed $from_encoding

Returns

mixed —

mb_convert_encoding()

mb_convert_encoding(array|string|null  $string, ?string  $to_encoding, array|string|null  $from_encoding = null) : array|string|false

Parameters

array|string|null $string
?string $to_encoding
array|string|null $from_encoding

Returns

array|string|false —

mb_convert_variables()

mb_convert_variables(mixed  $to_encoding, mixed  $from_encoding, mixed  ...$vars) : mixed

Parameters

mixed $to_encoding
mixed $from_encoding
mixed $vars variadic

Returns

mixed —

mb_convert_variables()

mb_convert_variables(?string  $to_encoding, array|string|null  $from_encoding, mixed  $var, mixed  ...$vars) : string|false

Parameters

?string $to_encoding
array|string|null $from_encoding
mixed $var
mixed $vars variadic

Returns

string|false —

mb_decode_mimeheader()

mb_decode_mimeheader(mixed  $string) : mixed

Parameters

mixed $string

Returns

mixed —

mb_decode_mimeheader()

mb_decode_mimeheader(?string  $string) : string

Parameters

?string $string

Returns

string —

mb_decode_numericentity()

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

Parameters

mixed $string
mixed $map
mixed $encoding

Returns

mixed —

mb_decode_numericentity()

mb_decode_numericentity(?string  $string, array  $map, ?string  $encoding = null) : string

Parameters

?string $string
array $map
?string $encoding

Returns

string —

mb_detect_encoding()

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

Parameters

mixed $string
mixed $encodings
mixed $strict

Returns

mixed —

mb_detect_encoding()

mb_detect_encoding(?string  $string, array|string|null  $encodings = null, ?bool  $strict = false) : string|false

Parameters

?string $string
array|string|null $encodings
?bool $strict

Returns

string|false —

mb_detect_order()

mb_detect_order(mixed  $encoding = null) : mixed

Parameters

mixed $encoding

Returns

mixed —

mb_detect_order()

mb_detect_order(array|string|null  $encoding = null) : array|bool

Parameters

array|string|null $encoding

Returns

array|bool —

mb_encode_mimeheader()

mb_encode_mimeheader(mixed  $string, mixed  $charset = null, mixed  $transfer_encoding = null, mixed  $newline = "
", mixed  $indent) : mixed

Parameters

mixed $string
mixed $charset
mixed $transfer_encoding
mixed $newline
mixed $indent

Returns

mixed —

mb_encode_mimeheader()

mb_encode_mimeheader(?string  $string, ?string  $charset = null, ?string  $transfer_encoding = null, ?string  $newline = "
", ?int  $indent) : string

Parameters

?string $string
?string $charset
?string $transfer_encoding
?string $newline
?int $indent

Returns

string —

mb_encode_numericentity()

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

Parameters

mixed $string
mixed $map
mixed $encoding
mixed $hex

Returns

mixed —

mb_encode_numericentity()

mb_encode_numericentity(?string  $string, array  $map, ?string  $encoding = null, ?bool  $hex = false) : string

Parameters

?string $string
array $map
?string $encoding
?bool $hex

Returns

string —

mb_encoding_aliases()

mb_encoding_aliases(mixed  $encoding) : mixed

Parameters

mixed $encoding

Returns

mixed —

mb_encoding_aliases()

mb_encoding_aliases(?string  $encoding) : array

Parameters

?string $encoding

Returns

array —

mb_get_info()

mb_get_info(mixed  $type = 'all') : mixed

Parameters

mixed $type

Returns

mixed —

mb_get_info()

mb_get_info(?string  $type = 'all') : array|string|int|false

Parameters

?string $type

Returns

array|string|int|false —

mb_http_input()

mb_http_input(mixed  $type = null) : mixed

Parameters

mixed $type

Returns

mixed —

mb_http_input()

mb_http_input(?string  $type = null) : array|string|false

Parameters

?string $type

Returns

array|string|false —

mb_http_output()

mb_http_output(mixed  $encoding = null) : mixed

Parameters

mixed $encoding

Returns

mixed —

mb_http_output()

mb_http_output(?string  $encoding = null) : string|bool

Parameters

?string $encoding

Returns

string|bool —

mb_internal_encoding()

mb_internal_encoding(mixed  $encoding = null) : mixed

Parameters

mixed $encoding

Returns

mixed —

mb_internal_encoding()

mb_internal_encoding(?string  $encoding = null) : string|bool

Parameters

?string $encoding

Returns

string|bool —

mb_language()

mb_language(mixed  $language = null) : mixed

Parameters

mixed $language

Returns

mixed —

mb_language()

mb_language(?string  $language = null) : string|bool

Parameters

?string $language

Returns

string|bool —

mb_list_encodings()

mb_list_encodings() : mixed

Returns

mixed —

mb_list_encodings()

mb_list_encodings() : array

Returns

array —

mb_ord()

mb_ord(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_ord()

mb_ord(?string  $string, ?string  $encoding = null) : int|false

Parameters

?string $string
?string $encoding

Returns

int|false —

mb_ord()

mb_ord(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_output_handler()

mb_output_handler(mixed  $string, mixed  $status) : mixed

Parameters

mixed $string
mixed $status

Returns

mixed —

mb_output_handler()

mb_output_handler(?string  $string, ?int  $status) : string

Parameters

?string $string
?int $status

Returns

string —

mb_parse_str()

mb_parse_str(mixed  $string, mixed  $result = []) : mixed

Parameters

mixed $string
mixed $result

Returns

mixed —

mb_parse_str()

mb_parse_str(?string  $string, mixed  $result = []) : bool

Parameters

?string $string
mixed $result

Returns

bool —

mb_scrub()

mb_scrub(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_scrub()

mb_scrub(?string  $string, ?string  $encoding = null) : string

Parameters

?string $string
?string $encoding

Returns

string —

mb_scrub()

mb_scrub(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_str_split()

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

Parameters

mixed $string
mixed $length
mixed $encoding

Returns

mixed —

mb_str_split()

mb_str_split(?string  $string, ?int  $length = 1, ?string  $encoding = null) : array

Parameters

?string $string
?int $length
?string $encoding

Returns

array —

mb_stripos()

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

Parameters

mixed $haystack
mixed $needle
mixed $offset
mixed $encoding

Returns

mixed —

mb_stripos()

mb_stripos(?string  $haystack, ?string  $needle, ?int  $offset, ?string  $encoding = null) : int|false

Parameters

?string $haystack
?string $needle
?int $offset
?string $encoding

Returns

int|false —

mb_stristr()

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

Parameters

mixed $haystack
mixed $needle
mixed $before_needle
mixed $encoding

Returns

mixed —

mb_stristr()

mb_stristr(?string  $haystack, ?string  $needle, ?bool  $before_needle = false, ?string  $encoding = null) : string|false

Parameters

?string $haystack
?string $needle
?bool $before_needle
?string $encoding

Returns

string|false —

mb_strlen()

mb_strlen(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_strlen()

mb_strlen(?string  $string, ?string  $encoding = null) : int

Parameters

?string $string
?string $encoding

Returns

int —

mb_strpos()

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

Parameters

mixed $haystack
mixed $needle
mixed $offset
mixed $encoding

Returns

mixed —

mb_strpos()

mb_strpos(?string  $haystack, ?string  $needle, ?int  $offset, ?string  $encoding = null) : int|false

Parameters

?string $haystack
?string $needle
?int $offset
?string $encoding

Returns

int|false —

mb_strrchr()

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

Parameters

mixed $haystack
mixed $needle
mixed $before_needle
mixed $encoding

Returns

mixed —

mb_strrchr()

mb_strrchr(?string  $haystack, ?string  $needle, ?bool  $before_needle = false, ?string  $encoding = null) : string|false

Parameters

?string $haystack
?string $needle
?bool $before_needle
?string $encoding

Returns

string|false —

mb_strrichr()

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

Parameters

mixed $haystack
mixed $needle
mixed $before_needle
mixed $encoding

Returns

mixed —

mb_strrichr()

mb_strrichr(?string  $haystack, ?string  $needle, ?bool  $before_needle = false, ?string  $encoding = null) : string|false

Parameters

?string $haystack
?string $needle
?bool $before_needle
?string $encoding

Returns

string|false —

mb_strripos()

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

Parameters

mixed $haystack
mixed $needle
mixed $offset
mixed $encoding

Returns

mixed —

mb_strripos()

mb_strripos(?string  $haystack, ?string  $needle, ?int  $offset, ?string  $encoding = null) : int|false

Parameters

?string $haystack
?string $needle
?int $offset
?string $encoding

Returns

int|false —

mb_strrpos()

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

Parameters

mixed $haystack
mixed $needle
mixed $offset
mixed $encoding

Returns

mixed —

mb_strrpos()

mb_strrpos(?string  $haystack, ?string  $needle, ?int  $offset, ?string  $encoding = null) : int|false

Parameters

?string $haystack
?string $needle
?int $offset
?string $encoding

Returns

int|false —

mb_strstr()

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

Parameters

mixed $haystack
mixed $needle
mixed $before_needle
mixed $encoding

Returns

mixed —

mb_strstr()

mb_strstr(?string  $haystack, ?string  $needle, ?bool  $before_needle = false, ?string  $encoding = null) : string|false

Parameters

?string $haystack
?string $needle
?bool $before_needle
?string $encoding

Returns

string|false —

mb_strtolower()

mb_strtolower(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_strtolower()

mb_strtolower(?string  $string, ?string  $encoding = null) : string

Parameters

?string $string
?string $encoding

Returns

string —

mb_strtoupper()

mb_strtoupper(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_strtoupper()

mb_strtoupper(?string  $string, ?string  $encoding = null) : string

Parameters

?string $string
?string $encoding

Returns

string —

mb_strwidth()

mb_strwidth(mixed  $string, mixed  $encoding = null) : mixed

Parameters

mixed $string
mixed $encoding

Returns

mixed —

mb_strwidth()

mb_strwidth(?string  $string, ?string  $encoding = null) : int

Parameters

?string $string
?string $encoding

Returns

int —

mb_substitute_character()

mb_substitute_character(mixed  $substitute_character = null) : mixed

Parameters

mixed $substitute_character

Returns

mixed —

mb_substitute_character()

mb_substitute_character(string|int|null  $substitute_character = null) : string|int|bool

Parameters

string|int|null $substitute_character

Returns

string|int|bool —

mb_substr()

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

Parameters

mixed $string
mixed $start
mixed $length
mixed $encoding

Returns

mixed —

mb_substr()

mb_substr(?string  $string, ?int  $start, ?int  $length = null, ?string  $encoding = null) : string

Parameters

?string $string
?int $start
?int $length
?string $encoding

Returns

string —

mb_substr_count()

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

Parameters

mixed $haystack
mixed $needle
mixed $encoding

Returns

mixed —

mb_substr_count()

mb_substr_count(?string  $haystack, ?string  $needle, ?string  $encoding = null) : int

Parameters

?string $haystack
?string $needle
?string $encoding

Returns

int —

md5_16()

md5_16(mixed  $str) : mixed

Parameters

mixed $str

Returns

mixed —

moreTableFind()

moreTableFind(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

normalizer_is_normalized()

normalizer_is_normalized(mixed  $string, mixed  $form = pNormalizer::FORM_C) : mixed

Parameters

mixed $string
mixed $form

Returns

mixed —

normalizer_is_normalized()

normalizer_is_normalized(?string  $string, ?int  $form = pNormalizer::FORM_C) : bool

Parameters

?string $string
?int $form

Returns

bool —

normalizer_normalize()

normalizer_normalize(mixed  $string, mixed  $form = pNormalizer::FORM_C) : mixed

Parameters

mixed $string
mixed $form

Returns

mixed —

normalizer_normalize()

normalizer_normalize(?string  $string, ?int  $form = pNormalizer::FORM_C) : string|false

Parameters

?string $string
?int $form

Returns

string|false —

numberOfTrailingZeros()

numberOfTrailingZeros(mixed  $i) : mixed

Parameters

mixed $i

Returns

mixed —

PageCalc()

PageCalc(mixed  $page, mixed  $limit, mixed  $type = 'array') : mixed

Parameters

mixed $page
mixed $limit
mixed $type

Returns

mixed —

parmToIndex()

parmToIndex(mixed  $parm) : mixed

Parameters

mixed $parm

Returns

mixed —

parse_name()

parse_name(string  $name, int  $type, bool  $ucfirst = true) : string

字符串命名风格转换 type 0 将Java风格转换为C的风格 1 将C风格转换为Java的风格

Parameters

string $name

字符串

int $type

转换类型

bool $ucfirst

首字母是否大写(驼峰规则)

Returns

string —

pathChange()

pathChange(mixed  $path = false) : mixed

Parameters

mixed $path

Returns

mixed —

preg_last_error_msg()

preg_last_error_msg() : string

Returns

string —

public_path()

public_path(string  $path = '') : string

获取web根目录

Parameters

string $path

Returns

string —

pushLog()

pushLog(mixed  $info, mixed  $user = false) : mixed

Parameters

mixed $info
mixed $user

Returns

mixed —

redirect()

redirect(string  $url = '', int  $code = 302) : \think\response\Redirect

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

Parameters

string $url

重定向地址

int $code

状态码

Returns

\think\response\Redirect —

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 —

returnJson()

returnJson(mixed  $info) : mixed

Parameters

mixed $info

Returns

mixed —

root_path()

root_path(string  $path = '') : string

获取项目根目录

Parameters

string $path

Returns

string —

roundFloat()

roundFloat(mixed  $number, mixed  $digit) : mixed

Parameters

mixed $number
mixed $digit

Returns

mixed —

runtime_path()

runtime_path(string  $path = '') : string

获取应用运行时目录

Parameters

string $path

Returns

string —

sapi_windows_vt100_support()

sapi_windows_vt100_support(mixed  $stream, mixed  $enable = null) : mixed

Parameters

mixed $stream
mixed $enable

Returns

mixed —

sdvig3()

sdvig3(mixed  $a, mixed  $b) : mixed

Parameters

mixed $a
mixed $b

Returns

mixed —

search()

search(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

session()

session(string  $name = '', mixed  $value = '') : mixed

Session管理

Parameters

string $name

session名称

mixed $value

session值

Returns

mixed —

spl_object_id()

spl_object_id(mixed  $object) : mixed

Parameters

mixed $object

Returns

mixed —

sqlAuth()

sqlAuth(mixed  $model, mixed  $sql = []) : mixed

Parameters

mixed $model
mixed $sql

Returns

mixed —

str_contains()

str_contains(string  $haystack, string  $needle) : bool

Parameters

string $haystack
string $needle

Returns

bool —

str_ends_with()

str_ends_with(string  $haystack, string  $needle) : bool

Parameters

string $haystack
string $needle

Returns

bool —

str_starts_with()

str_starts_with(string  $haystack, string  $needle) : bool

Parameters

string $haystack
string $needle

Returns

bool —

stream_isatty()

stream_isatty(mixed  $stream) : mixed

Parameters

mixed $stream

Returns

mixed —

strEnhtml()

strEnhtml(mixed  $str) : mixed

Parameters

mixed $str

Returns

mixed —

strings()

strings() : \Strings

Returns

\Strings —

tap()

tap(mixed  $value, callable|null  $callback = null) : mixed

对一个值调用给定的闭包,然后返回该值

Parameters

mixed $value
callable|null $callback

Returns

mixed —

throw_if()

throw_if(mixed  $condition, \Throwable|string  $exception, array  ...$parameters) : mixed

按条件抛异常

Parameters

mixed $condition
\Throwable|string $exception
array $parameters variadic

Throws

\Throwable

Returns

mixed —

throw_unless()

throw_unless(mixed  $condition, \Throwable|string  $exception, array  ...$parameters) : mixed

按条件抛异常

Parameters

mixed $condition
\Throwable|string $exception
array $parameters variadic

Throws

\Throwable

Returns

mixed —

token()

token() : mixed

Returns

mixed —

token()

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

获取Token令牌

Parameters

string $name

令牌名称

mixed $type

令牌生成方法

Returns

string —

token_field()

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

生成令牌隐藏表单

Parameters

string $name

令牌名称

mixed $type

令牌生成方法

Returns

string —

token_meta()

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

生成令牌meta

Parameters

string $name

令牌名称

mixed $type

令牌生成方法

Returns

string —

trace()

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

记录日志信息

Parameters

mixed $log

log信息 支持字符串和数组

string $level

日志级别

Returns

array|void —

trait_uses_recursive()

trait_uses_recursive(string  $trait) : array

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

Parameters

string $trait

Trait

Returns

array —

trigger_deprecation()

trigger_deprecation(string  $package, string  $version, string  $message, mixed  ...$args) : void

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 variadic

Values to insert in the message using printf() formatting

txm()

txm(mixed  $text, mixed  $type = true) : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —

unitRadix()

unitRadix(mixed  $unit, mixed  $data) : mixed

Parameters

mixed $unit
mixed $data

Returns

mixed —

unitSwitch()

unitSwitch(mixed  $nums, mixed  $data) : mixed

Parameters

mixed $nums
mixed $data

Returns

mixed —

url()

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

Url生成

Parameters

string $url

路由地址

array $vars

变量

bool|string $suffix

生成的URL后缀

bool|string $domain

域名

Returns

\UrlBuild —

uRShift()

uRShift(mixed  $a, mixed  $b) : mixed

Parameters

mixed $a
mixed $b

Returns

mixed —

userInfo()

userInfo(mixed  $id, mixed  $field = false) : mixed

Parameters

mixed $id
mixed $field

Returns

mixed —

utf8_decode()

utf8_decode(mixed  $string) : mixed

Parameters

mixed $string

Returns

mixed —

utf8_encode()

utf8_encode(mixed  $string) : mixed

Parameters

mixed $string

Returns

mixed —

uuid()

uuid(mixed  $prefix = '') : mixed

Parameters

mixed $prefix

Returns

mixed —

validate()

validate(string|array  $validate = '', array  $message = [], bool  $batch = false, bool  $failException = true) : \Validate

生成验证对象

Parameters

string|array $validate

验证器类名或者验证规则数组

array $message

错误提示信息

bool $batch

是否批量验证

bool $failException

是否抛出异常

Returns

\Validate —

value()

value(mixed  $value) : mixed

Return the default value of the given value.

Parameters

mixed $value

Returns

mixed —

verify()

verify(mixed  $data, mixed  $rule, mixed  $info = false) : mixed

Parameters

mixed $data
mixed $rule
mixed $info

Returns

mixed —

view()

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

渲染模板输出

Parameters

string $template

模板文件

array $vars

模板变量

int $code

状态码

callable $filter

内容过滤

Returns

\think\response\View —

writeFile()

writeFile(mixed  $path, mixed  $str, mixed  $type = 'w+') : mixed

Parameters

mixed $path
mixed $str
mixed $type

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 —

zhToPy()

zhToPy(mixed  $text, mixed  $type = 'head') : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —