HtmlBlock
extends HtmlBlock
in package
Class created by Core/Internal/PluginsDeploy
Table of Contents
Properties
- $css : string
- $extensionCache : array<string|int, mixed>
- Cache for extension lookups by method name.
- $extensions : array<string|int, mixed>
- Stores class extensions.
- $footer : bool
- $html : string
- $style : string
- $verificode : string
Methods
- __call() : mixed
- Executes the first matched extension.
- __construct() : mixed
- addExtension() : void
- clearExtensions() : void
- Clears all registered extensions.
- getExtensions() : array<string|int, mixed>
- Returns a list of all registered extension names.
- hasExtension() : bool
- pipe() : mixed
- pipeFalse() : bool
- removeExtension() : bool
- Removes all extensions with the specified name.
- render() : string
- setVerificode() : void
- buildExtensionCache() : void
- Builds and caches sorted extensions for a method name.
Properties
$css
protected
string
$css
$extensionCache
Cache for extension lookups by method name.
protected
static array<string|int, mixed>
$extensionCache
= []
$extensions
Stores class extensions.
protected
static array<string|int, mixed>
$extensions
= []
$footer
protected
bool
$footer
= false
$html
protected
string
$html
$style
protected
string
$style
$verificode
protected
string
$verificode
Methods
__call()
Executes the first matched extension.
public
__call(string $name[, array<string|int, mixed> $arguments = [] ]) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed> = []
Tags
__construct()
public
__construct(string $html) : mixed
Parameters
- $html : string
addExtension()
public
static addExtension(mixed $extension[, int $priority = 100 ]) : void
Parameters
- $extension : mixed
- $priority : int = 100
-
Priority for all methods in this extension (0-1000, default 100)
clearExtensions()
Clears all registered extensions.
public
static clearExtensions() : void
getExtensions()
Returns a list of all registered extension names.
public
static getExtensions() : array<string|int, mixed>
Return values
array<string|int, mixed>hasExtension()
public
hasExtension(mixed $name) : bool
Parameters
- $name : mixed
Return values
boolpipe()
public
pipe(string $name, array<string|int, mixed> ...$arguments) : mixed
Parameters
- $name : string
- $arguments : array<string|int, mixed>
pipeFalse()
public
pipeFalse(string $name, array<string|int, mixed> ...$arguments) : bool
Parameters
- $name : string
- $arguments : array<string|int, mixed>
Return values
boolremoveExtension()
Removes all extensions with the specified name.
public
static removeExtension(string $name) : bool
Parameters
- $name : string
Return values
bool —True if at least one extension was removed
render()
public
render([bool $footer = false ]) : string
Parameters
- $footer : bool = false
Return values
stringsetVerificode()
public
setVerificode(string $code) : void
Parameters
- $code : string
buildExtensionCache()
Builds and caches sorted extensions for a method name.
private
buildExtensionCache(string $name) : void
Parameters
- $name : string