PHP Class Pressbooks\Admin\Network\SharingAndPrivacyOptions

Inheritance: extends Pressbooks\Options
Mostrar archivo Open project: pressbooks/pressbooks

Public Properties

Property 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.

Public Methods

Method 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 method

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

display() public method

Display the network sharing and privacy options page description.
public display ( )

filterDefaults() static public method

Filter the array of default values for this set of options
static public filterDefaults ( array $defaults ) : array
$defaults array
return array $defaults

getBooleanOptions() static public method

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

getDefaults() static public method

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

getSlug() static public method

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

getTitle() static public method

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

init() public method

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

render() public method

public render ( )

renderAllowRedistributionField() public method

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

upgrade() public method

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
return integer

$defaults public_oe property

Sharing and Privacy defaults.
public array $defaults
return array

$options public_oe property

Sharing and Privacy options.
public array $options
return array