Core

HivePress core class.

Table of Contents

$classes  : array<string|int, mixed>
HivePress classes.
$configs  : array<string|int, mixed>
HivePress configurations.
$extensions  : array<string|int, mixed>
HivePress extensions.
$instance  : Core
The single class instance.
$objects  : array<string|int, mixed>
HivePress objects.
__call()  : mixed
Catches calls to undefined methods.
__get()  : mixed
Catches getting undefined properties.
__wakeup()  : mixed
Forbids unserializing instances.
activate()  : mixed
Activates HivePress plugin.
autoload()  : mixed
Autoloads HivePress classes.
deactivate()  : mixed
Deactivates HivePress plugin.
get_classes()  : array<string|int, mixed>
Gets HivePress classes.
get_config()  : array<string|int, mixed>
Gets HivePress configuration.
get_paths()  : array<string|int, mixed>
Gets HivePress filepaths.
install()  : mixed
Installs HivePress plugin.
instance()  : Core
Returns the single class instance.
setup()  : mixed
Setups HivePress plugin.
__clone()  : mixed
Forbid cloning instances.
__construct()  : mixed
Class constructor.
load_packages()  : mixed
Loads Composer packages.
load_textdomains()  : mixed
Loads text domains.
setup_extensions()  : mixed
Setups HivePress extensions.

Properties

$extensions

HivePress extensions.

protected array<string|int, mixed> $extensions = []

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

__get()

Catches getting undefined properties.

public __get(string $name) : mixed
Parameters
$name : string

Property name.

Return values
mixed

__wakeup()

Forbids unserializing instances.

public __wakeup() : mixed
Tags
throws
BadMethodCallException

Invalid method.

Return values
mixed

activate()

Activates HivePress plugin.

public static activate() : mixed
Return values
mixed

autoload()

Autoloads HivePress classes.

public autoload(string $class) : mixed
Parameters
$class : string

Class name.

Return values
mixed

deactivate()

Deactivates HivePress plugin.

public static deactivate() : mixed
Return values
mixed

get_classes()

Gets HivePress classes.

public get_classes(string $namespace) : array<string|int, mixed>
Parameters
$namespace : string

Class namespace.

Return values
array<string|int, mixed>

get_config()

Gets HivePress configuration.

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

Configuration name.

Return values
array<string|int, mixed>

get_paths()

Gets HivePress filepaths.

public get_paths() : array<string|int, mixed>
Return values
array<string|int, mixed>

install()

Installs HivePress plugin.

public install() : mixed
Return values
mixed

__clone()

Forbid cloning instances.

protected __clone() : mixed
Return values
mixed

__construct()

Class constructor.

protected __construct() : mixed
Return values
mixed

load_packages()

Loads Composer packages.

protected load_packages() : mixed
Return values
mixed

load_textdomains()

Loads text domains.

protected load_textdomains() : mixed
Return values
mixed

setup_extensions()

Setups HivePress extensions.

protected setup_extensions() : mixed
Return values
mixed