PHP Class Pressbooks\Admin\ExportOptions

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

Méthodes publiques

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

Méthodes publiques

Méthode Description
__construct ( array $options ) Constructor.
display ( ) Display the export options page description.
doInitialUpgrade ( )
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 ( ) : array Get an array of default values for the export options page.
getSlug ( ) : string Get the slug for the export options page.
getTitle ( ) : string Get the localized title of the export options page.
init ( ) Configure the export options page using the settings API.
render ( )
renderEmailValidationLogsField ( array $args ) Render the email_validation_logs radio buttons.
upgrade ( $version )

Method Details

__construct() public méthode

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

display() public méthode

Display the export options page description.
public display ( )

doInitialUpgrade() public méthode

public doInitialUpgrade ( )

filterDefaults() static public méthode

Filter the array of default values for this set of options
static public filterDefaults ( array $defaults ) : array
$defaults array
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

Get an array of default values for the export options page.
static public getDefaults ( ) : array
Résultat array $defaults

getSlug() static public méthode

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

getTitle() static public méthode

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

init() public méthode

Configure the export options page using the settings API.
public init ( )

render() public méthode

public render ( )

renderEmailValidationLogsField() public méthode

Render the email_validation_logs radio buttons.
public renderEmailValidationLogsField ( array $args )
$args array

upgrade() public méthode

public upgrade ( $version )

Property Details

$currentVersion static_oe public_oe property

The value for option: pressbooks_export_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