PHP Класс Pressbooks\Admin\Network\SharingAndPrivacyOptions

Наследование: extends Pressbooks\Options
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
$currentVersion integer The value for option: pressbooks_network_sharingandprivacy_options_version
$defaults array Sharing and Privacy defaults.
$options array Sharing and Privacy options.

Открытые методы

Метод Описание
__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 )

Описание методов

__construct() публичный метод

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

display() публичный метод

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

filterDefaults() статический публичный метод

Filter the array of default values for this set of options
static public filterDefaults ( array $defaults ) : array
$defaults array
Результат array $defaults

getBooleanOptions() статический публичный метод

Get an array of options which return booleans.
static public getBooleanOptions ( ) : array
Результат array $options

getDefaults() статический публичный метод

Get an array of default values for the network export options page.
static public getDefaults ( ) : array
Результат array $defaults

getSlug() статический публичный метод

Get the slug for the network export options page.
static public getSlug ( ) : string
Результат string $slug

getTitle() статический публичный метод

Get the localized title of the network export options tab.
static public getTitle ( ) : string
Результат string $title

init() публичный метод

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

render() публичный метод

public render ( )

renderAllowRedistributionField() публичный метод

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

upgrade() публичный метод

public upgrade ( $version )

Описание свойств

$currentVersion статическое публичное свойство

The value for option: pressbooks_network_sharingandprivacy_options_version
См. также: upgrade()
static public int $currentVersion
Результат integer

$defaults публичное свойство

Sharing and Privacy defaults.
public array $defaults
Результат array

$options публичное свойство

Sharing and Privacy options.
public array $options
Результат array