Confetti_Bits
in package
Confetti Bits Class.
Table of Contents
Properties
- $active_components : array<string|int, mixed>
- Array of active components.
- $active_panels : array<string|int, mixed>
- Array of active panels.
- $do_autoload : bool
- Flag to enable or disable autoload.
- $loaded_components : array<string|int, mixed>
- Array of loaded components.
- $optional_components : array<string|int, mixed>
- Array of optional components.
- $required_components : array<string|int, mixed>
- Array of required components.
- $data : array<string|int, mixed>
- Class data.
Methods
- __clone() : mixed
- Prevents the class from being cloned.
- __construct() : mixed
- __get() : mixed
- Magic method for getting ConfettiBits variables.
- __isset() : bool
- Magic method for checking the existence of a certain custom field.
- __set() : mixed
- Magic method for setting ConfettiBits variables.
- __unset() : mixed
- Magic method for unsetting ConfettiBits variables.
- __wakeup() : mixed
- Prevents serialization of the class.
- includes() : mixed
- Include required files.
- instance() : ConfettiBits
- Retrieves the singleton instance of this class.
- load_components() : mixed
- This method is passed to spl_autoload_register to load classes on demand.
- load_plugin_textdomain() : void
- Load the plugin text domain for translation.
- plugin_path() : string
- Get the plugin path.
- plugin_url() : string
- Get the plugin url.
- define() : mixed
- Our own define method to centralize all our constants.
- define_constants() : mixed
- Define constants.
- setup_globals() : mixed
- Setup globals.
Properties
$active_components
Array of active components.
public
array<string|int, mixed>
$active_components
= []
$active_panels
Array of active panels.
public
array<string|int, mixed>
$active_panels
= []
$do_autoload
Flag to enable or disable autoload.
public
bool
$do_autoload
= \true
$loaded_components
Array of loaded components.
public
array<string|int, mixed>
$loaded_components
= []
$optional_components
Array of optional components.
public
array<string|int, mixed>
$optional_components
= []
$required_components
Array of required components.
public
array<string|int, mixed>
$required_components
= []
$data
Class data.
private
array<string|int, mixed>
$data
Methods
__clone()
Prevents the class from being cloned.
public
__clone() : mixed
__construct()
public
__construct() : mixed
__get()
Magic method for getting ConfettiBits variables.
public
__get(string $key) : mixed
Parameters
- $key : string
-
Key to return the value for.
Tags
__isset()
Magic method for checking the existence of a certain custom field.
public
__isset(string $key) : bool
Parameters
- $key : string
-
Key to check the set status for.
Tags
Return values
bool__set()
Magic method for setting ConfettiBits variables.
public
__set(string $key, mixed $value) : mixed
Parameters
- $key : string
-
Key to set a value for.
- $value : mixed
-
Value to set.
Tags
__unset()
Magic method for unsetting ConfettiBits variables.
public
__unset(string $key) : mixed
Parameters
- $key : string
-
Key to unset a value for.
Tags
__wakeup()
Prevents serialization of the class.
public
__wakeup() : mixed
includes()
Include required files.
public
includes() : mixed
Tags
instance()
Retrieves the singleton instance of this class.
public
static instance() : ConfettiBits
Return values
ConfettiBits —Singleton instance of this class.
load_components()
This method is passed to spl_autoload_register to load classes on demand.
public
load_components(mixed $class) : mixed
Parameters
- $class : mixed
Tags
load_plugin_textdomain()
Load the plugin text domain for translation.
public
load_plugin_textdomain() : void
Tags
plugin_path()
Get the plugin path.
public
plugin_path() : string
Tags
Return values
string —The plugin path.
plugin_url()
Get the plugin url.
public
plugin_url() : string
Tags
Return values
string —The plugin url.
define()
Our own define method to centralize all our constants.
private
define(mixed $name, mixed $value) : mixed
Parameters
- $name : mixed
- $value : mixed
define_constants()
Define constants.
private
define_constants() : mixed
Tags
setup_globals()
Setup globals.
private
setup_globals() : mixed
Globals are accessible via Confetti_Bits()->{$global_name}.