Helper extends Component

Implements a facade for HivePress helpers.

Table of Contents

__call()  : mixed
Catches calls to undefined methods.
__construct()  : mixed
Class constructor.
boot()  : mixed
Bootstraps component properties.
set_callbacks()  : mixed
Sets the action and filter callbacks.
set_property()  : mixed
Sets a property value.

Methods

__call()

Catches calls to undefined methods.

public __call(string $name, array<string|int, mixed> $args) : mixed
Parameters
$name : string

Method name.

$args : array<string|int, mixed>

Method arguments.

Tags
throws
BadMethodCallException

Invalid method.

Return values
mixed

__construct()

Class constructor.

public __construct([array<string|int, mixed> $args = [] ]) : mixed
Parameters
$args : array<string|int, mixed> = []

Component arguments.

Return values
mixed

set_callbacks()

Sets the action and filter callbacks.

protected final set_callbacks(array<string|int, mixed> $callbacks) : mixed
Parameters
$callbacks : array<string|int, mixed>

Callback arguments.

Return values
mixed

set_property()

Sets a property value.

protected final set_property(string $name, mixed $value[, string $prefix = '' ]) : mixed
Parameters
$name : string

Property name.

$value : mixed

Property value.

$prefix : string = ''

Method prefix.

Return values
mixed