WPOptionWrapperTest
in package
implements
WPOptionWrapperBase
Tags
Interfaces, Classes, Traits and Enums
Table of Contents
- $_options : array<string|int, mixed>
- addOption() : bool
- deleteOption() : bool
- getOption() : mixed
- updateOption() : bool
Properties
$_options
private
array<string|int, mixed>
$_options
= []
Methods
addOption()
public
addOption(string $option[, mixed $value = '' ][, bool $autoload = true ]) : bool
Parameters
- $option : string
- $value : mixed = ''
- $autoload : bool = true
Return values
bool —success
deleteOption()
public
deleteOption(string $option) : bool
Parameters
- $option : string
Return values
bool —getOption()
public
getOption(string $option[, mixed $default = false ]) : mixed
Parameters
- $option : string
- $default : mixed = false
Return values
mixed —updateOption()
public
updateOption(string $option, mixed $value[, bool $autoload = null ]) : bool
Parameters
- $option : string
- $value : mixed
- $autoload : bool = null