Wizard implements Registerable
Setup wizard for the plugin.
Tags
Interfaces, Classes and Traits
- Registerable
Table of Contents
- $plugin : Licensed_Plugin
- Plugin instance
- $wizard : Wizard
- Wizard instance
- __construct() : mixed
- Setup the setup wizard. Pun intended.
- is_falsy() : bool
- Determine if a value is a falsy value.
- is_truthy() : bool
- Determine if a value is a truthy value.
- register() : void
- Boot the wizard.
- remove_falsey_values_from_fields() : array<string|int, mixed>
- Remove falsey values from fields.
Properties
$plugin
Plugin instance
private
Licensed_Plugin
$plugin
$wizard
Wizard instance
private
Wizard
$wizard
Methods
__construct()
Setup the setup wizard. Pun intended.
public
__construct(Licensed_Plugin $plugin) : mixed
Parameters
- $plugin : Licensed_Plugin
Return values
mixed —is_falsy()
Determine if a value is a falsy value.
public
static is_falsy(string $value) : bool
Parameters
- $value : string
-
The value to check.
Return values
bool —is_truthy()
Determine if a value is a truthy value.
public
static is_truthy(string $value) : bool
Parameters
- $value : string
-
The value to check.
Return values
bool —register()
Boot the wizard.
public
register() : void
Return values
void —remove_falsey_values_from_fields()
Remove falsey values from fields.
public
static remove_falsey_values_from_fields(array<string|int, mixed> $fields) : array<string|int, mixed>
Parameters
- $fields : array<string|int, mixed>