PHP Class OptionsMock

Inheritance: extends Pressbooks\Options
Afficher le fichier Open project: pressbooks/pressbooks

Méthodes publiques

Свойство Type Description
$currentVersion integer The value for option: pressbooks_mock_options_version
$defaults array Export defaults.
$options array Export options.

Méthodes publiques

Méthode Description
__construct ( array $options ) Constructor.
display ( ) Display the mock options page description.
filterDefaults ( array $defaults ) : array Filter the array of default values for this set of options
getBooleanOptions ( ) : array Get an array of options which return booleans.
getDefaults ( )
getFloatOptions ( ) : array Get an array of options which return floats.
getIntegerOptions ( ) : array Get an array of options which return integers.
getPredefinedOptions ( ) : array Get an array of options which return predefined values.
getSlug ( ) : string Get the slug for the mock options page.
getStringOptions ( ) : array Get an array of options which return strings.
getTitle ( ) : string Get the localized title of the mock options page.
init ( )
render ( )
upgrade ( $version )

Method Details

__construct() public méthode

Constructor.
public __construct ( array $options )
$options array The retrieved options.

display() public méthode

Display the mock options page description.
public display ( )

filterDefaults() static public méthode

Filter the array of default values for this set of options
static public filterDefaults ( array $defaults ) : array
$defaults array The input array of default values.
Résultat array $defaults

getBooleanOptions() static public méthode

Get an array of options which return booleans.
static public getBooleanOptions ( ) : array
Résultat array $options

getDefaults() static public méthode

static public getDefaults ( )

getFloatOptions() static public méthode

Get an array of options which return floats.
static public getFloatOptions ( ) : array
Résultat array $options

getIntegerOptions() static public méthode

Get an array of options which return integers.
static public getIntegerOptions ( ) : array
Résultat array $options

getPredefinedOptions() static public méthode

Get an array of options which return predefined values.
static public getPredefinedOptions ( ) : array
Résultat array $options

getSlug() static public méthode

Get the slug for the mock options page.
static public getSlug ( ) : string
Résultat string $slug

getStringOptions() static public méthode

Get an array of options which return strings.
static public getStringOptions ( ) : array
Résultat array $options

getTitle() static public méthode

Get the localized title of the mock options page.
static public getTitle ( ) : string
Résultat string $title

init() public méthode

public init ( )

render() public méthode

public render ( )

upgrade() public méthode

public upgrade ( $version )

Property Details

$currentVersion static_oe public_oe property

The value for option: pressbooks_mock_options_version
See also: upgrade()
static public int $currentVersion
Résultat integer

$defaults public_oe property

Export defaults.
public array $defaults
Résultat array

$options public_oe property

Export options.
public array $options
Résultat array