PHP Class Pressbooks\Admin\Network\SharingAndPrivacyOptions

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

Méthodes publiques

Свойство Type Description
$currentVersion integer The value for option: pressbooks_network_sharingandprivacy_options_version
$defaults array Sharing and Privacy defaults.
$options array Sharing and Privacy options.

Méthodes publiques

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

Method Details

__construct() public méthode

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

display() public méthode

Display the network sharing and privacy 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
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 network export options page.
static public getDefaults ( ) : array
Résultat array $defaults

getSlug() static public méthode

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

getTitle() static public méthode

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

init() public méthode

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

render() public méthode

public render ( )

renderAllowRedistributionField() public méthode

Render the allow_redistribution radio buttons.
public renderAllowRedistributionField ( array $args )
$args array

upgrade() public méthode

public upgrade ( $version )

Property Details

$currentVersion static_oe public_oe property

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

$defaults public_oe property

Sharing and Privacy defaults.
public array $defaults
Résultat array

$options public_oe property

Sharing and Privacy options.
public array $options
Résultat array