Documentation

Html extends Facade
in package

Facade base class Adds the ability to define a fallback instance.

Tags
see
HtmlBuilder

Table of Contents

$app  : Application
The application instance being facaded.
$resolvedInstance  : array<string|int, mixed>
The resolved object instances.
__callStatic()  : mixed
Handle dynamic, static calls to the object.
attributes()  :
clean()  :
clearResolvedInstance()  : void
Clear a resolved facade instance.
clearResolvedInstances()  : void
Clear all of the resolved instances.
decode()  :
email()  :
entities()  :
getFacadeApplication()  : Application
Get the application instance behind the facade.
getFacadeRoot()  : mixed
Get the root object behind the facade.
image()  :
limit()  :
link()  :
linkAction()  :
linkAsset()  :
linkRoute()  :
linkSecureAsset()  :
mailto()  :
obfuscate()  :
ol()  :
script()  :
secureLink()  :
setFacadeApplication()  : void
Set the application instance.
shouldReceive()  : Expectation
Initiate a mock expectation on the facade.
spy()  : void
Convert the facade into a Mockery spy.
strip()  :
style()  :
swap()  : void
Hotswap the underlying instance behind the facade.
ul()  :
createFreshMockInstance()  : Expectation
Create a fresh mock instance for the given class.
createMock()  : MockInterface
Create a fresh mock instance for the given class.
getFacadeAccessor()  : string
Get the registered name of the component.
getFacadeInstance()  : mixed
If the accessor is not found via getFacadeAccessor, use this instance as a fallback.
getMockableClass()  : string|null
Get the mockable class for the bound instance.
isMock()  : bool
Determines whether a mock is set as the instance of the facade.
resolveFacadeInstance()  : mixed
Resolve the facade root instance from the container.

Properties

$resolvedInstance

The resolved object instances.

protected static array<string|int, mixed> $resolvedInstance

Methods

__callStatic()

Handle dynamic, static calls to the object.

public static __callStatic(string $method, array<string|int, mixed> $args) : mixed
Parameters
$method : string
$args : array<string|int, mixed>
Tags
throws
RuntimeException
Return values
mixed

attributes()

public static attributes(array<string|int, mixed> $attributes) :
Parameters
$attributes : array<string|int, mixed>
Return values

clean()

public static clean(string $html) :
Parameters
$html : string
Return values

clearResolvedInstance()

Clear a resolved facade instance.

public static clearResolvedInstance(string $name) : void
Parameters
$name : string
Return values
void

clearResolvedInstances()

Clear all of the resolved instances.

public static clearResolvedInstances() : void
Return values
void

decode()

public static decode(string $value) :
Parameters
$value : string
Return values

email()

public static email(string $email) :
Parameters
$email : string
Return values

entities()

public static entities(string $value) :
Parameters
$value : string
Return values

getFacadeApplication()

Get the application instance behind the facade.

public static getFacadeApplication() : Application
Return values
Application

getFacadeRoot()

Get the root object behind the facade.

public static getFacadeRoot() : mixed
Return values
mixed

image()

public static image(string $url, string $alt = null, array<string|int, mixed> $attributes = [], bool $secure = null) :
Parameters
$url : string
$alt = null : string
$attributes = [] : array<string|int, mixed>
$secure = null : bool
Return values

limit()

public static limit(string $html, int $maxLength = 100, string $end = '...') :
Parameters
$html : string
$maxLength = 100 : int
$end = '...' : string
Return values
public static link(string $url, string $title = null, array<string|int, mixed> $attributes = [], bool $secure = null) :
Parameters
$url : string
$title = null : string
$attributes = [] : array<string|int, mixed>
$secure = null : bool
Return values

linkAction()

public static linkAction(string $action, string $title = null, array<string|int, mixed> $parameters = [], array<string|int, mixed> $attributes = []) :
Parameters
$action : string
$title = null : string
$parameters = [] : array<string|int, mixed>
$attributes = [] : array<string|int, mixed>
Return values

linkAsset()

public static linkAsset(string $url, string $title = null, array<string|int, mixed> $attributes = [], bool $secure = null) :
Parameters
$url : string
$title = null : string
$attributes = [] : array<string|int, mixed>
$secure = null : bool
Return values

linkRoute()

public static linkRoute(string $name, string $title = null, array<string|int, mixed> $parameters = [], array<string|int, mixed> $attributes = []) :
Parameters
$name : string
$title = null : string
$parameters = [] : array<string|int, mixed>
$attributes = [] : array<string|int, mixed>
Return values

linkSecureAsset()

public static linkSecureAsset(string $url, string $title = null, array<string|int, mixed> $attributes = []) :
Parameters
$url : string
$title = null : string
$attributes = [] : array<string|int, mixed>
Return values

mailto()

public static mailto(string $email, string $title = null, array<string|int, mixed> $attributes = []) :
Parameters
$email : string
$title = null : string
$attributes = [] : array<string|int, mixed>
Return values

obfuscate()

public static obfuscate(string $value) :
Parameters
$value : string
Return values

ol()

public static ol(array<string|int, mixed> $list, array<string|int, mixed> $attributes = []) :
Parameters
$list : array<string|int, mixed>
$attributes = [] : array<string|int, mixed>
Return values

script()

public static script(string $url, array<string|int, mixed> $attributes, bool $secure = null) :
Parameters
$url : string
$attributes : array<string|int, mixed>
$secure = null : bool
Return values
public static secureLink(string $url, string $title = null, array<string|int, mixed> $attributes = []) :
Parameters
$url : string
$title = null : string
$attributes = [] : array<string|int, mixed>
Return values

setFacadeApplication()

Set the application instance.

public static setFacadeApplication(Application $app) : void
Parameters
$app : Application
Return values
void

shouldReceive()

Initiate a mock expectation on the facade.

public static shouldReceive() : Expectation
Return values
Expectation

spy()

Convert the facade into a Mockery spy.

public static spy() : void
Return values
void

strip()

public static strip(string $string) :
Parameters
$string : string
Return values

style()

public static style(string $url, array<string|int, mixed> $attributes = [], bool $secure = null) :
Parameters
$url : string
$attributes = [] : array<string|int, mixed>
$secure = null : bool
Return values

swap()

Hotswap the underlying instance behind the facade.

public static swap(mixed $instance) : void
Parameters
$instance : mixed
Return values
void

ul()

public static ul(array<string|int, mixed> $list, array<string|int, mixed> $attributes = []) :
Parameters
$list : array<string|int, mixed>
$attributes = [] : array<string|int, mixed>
Return values

createFreshMockInstance()

Create a fresh mock instance for the given class.

protected static createFreshMockInstance() : Expectation
Return values
Expectation

createMock()

Create a fresh mock instance for the given class.

protected static createMock() : MockInterface
Return values
MockInterface

getFacadeAccessor()

Get the registered name of the component.

protected static getFacadeAccessor() : string
Return values
string

getFacadeInstance()

If the accessor is not found via getFacadeAccessor, use this instance as a fallback.

protected static getFacadeInstance() : mixed
Return values
mixed

getMockableClass()

Get the mockable class for the bound instance.

protected static getMockableClass() : string|null
Return values
string|null

isMock()

Determines whether a mock is set as the instance of the facade.

protected static isMock() : bool
Return values
bool

resolveFacadeInstance()

Resolve the facade root instance from the container.

protected static resolveFacadeInstance(string|object $name) : mixed
Parameters
$name : string|object
Return values
mixed

Search results