final class Framework extends Singleton

The wrappper class for a proprietary set of code which seeks to facilitate WordPress development and encourage use of the documented coding standards.

(https://make.wordpress.org/core/handbook/best-practices/coding-standards/php/)

Constants

VERSION

COMPATIBILITY_VERSIONS

Properties

static protected Singleton[] $_instances from  Singleton
protected Autoloader $autoloader
protected array $plugins

Methods

__construct()

Protected constructor to prevent multiple Framework instances from being created. Instantiate the Shadow Plugin.

static Singleton
instance(mixed $args = null)

Maybe initialize singleton instance and return the instance.

static array
get_instances()

Return a copy of the instances array.

get_class_reflection()

A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.

static string
get_version()

Return the current framework verion.

Autoloader
get_autoloader()

Return the WPPF\v1_2_2\Autoloader instance.

register_plugin(Plugin $Plugin)

Add a plugin instance to the list of registered plugins.

Details

at line 64
final protected __construct()

Protected constructor to prevent multiple Framework instances from being created. Instantiate the Shadow Plugin.

in Singleton at line 42
final static Singleton instance(mixed $args = null)

Maybe initialize singleton instance and return the instance.

Parameters

mixed $args

The arguments to pass to the singleton constructor if constructing.

Return Value

Singleton

This instance.

in Singleton at line 63
final static array get_instances()

Return a copy of the instances array.

Return Value

array

A list of Singleton instances that have been instantiated.

in Singleton at line 72
final protected ReflectionClass get_class_reflection()

A short one-liner tool to get a ReflectionClass so we can get runtime info for the static class instance and not this abstract.

Return Value

ReflectionClass

The runtime instance of this class being evalutated.

at line 59
final static string get_version()

Return the current framework verion.

Return Value

string

Framework version.

at line 73
final Autoloader get_autoloader()

Return the WPPF\v1_2_2\Autoloader instance.

Return Value

Autoloader

The instance.

at line 82
final register_plugin(Plugin $Plugin)

Add a plugin instance to the list of registered plugins.

Parameters

Plugin $Plugin