PHP Класс Pressbooks\Admin\PublishOptions

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

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

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

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

Метод Описание
__construct ( array $options ) Constructor.
display ( ) Display the publish options page description.
doInitialUpgrade ( )
filterDefaults ( array $defaults ) : array Filter the array of default values for this set of options
getDefaults ( ) : array Get an array of default values for the export options page.
getSlug ( ) : string Get the slug for the publish options page.
getTitle ( ) : string Get the localized title of the export options page.
getUrlOptions ( ) : array Get an array of options which return URLs.
init ( ) Configure the publish options page using the settings API.
render ( )
renderAmazonField ( ) Render the amazon field.
renderBarnesAndNobleField ( ) Render the barnesandnoble field.
renderKoboField ( ) Render the barnesandnoble field.
renderOReillyField ( ) Render the oreilly field.
renderOtherServiceField ( ) Render the ibooks field.
renderiBooksField ( ) Render the ibooks field.
upgrade ( $version )

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

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

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

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

Display the publish options page description.
public display ( )

doInitialUpgrade() публичный Метод

public doInitialUpgrade ( )

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

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

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

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

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

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

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

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

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

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

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

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

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

public render ( )

renderAmazonField() публичный Метод

Render the amazon field.
public renderAmazonField ( )

renderBarnesAndNobleField() публичный Метод

Render the barnesandnoble field.

renderKoboField() публичный Метод

Render the barnesandnoble field.
public renderKoboField ( )

renderOReillyField() публичный Метод

Render the oreilly field.
public renderOReillyField ( )

renderOtherServiceField() публичный Метод

Render the ibooks field.

renderiBooksField() публичный Метод

Render the ibooks field.
public renderiBooksField ( )

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

public upgrade ( $version )

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

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

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

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

Publish defaults.
public array $defaults
Результат array

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

Publish options.
public array $options
Результат array