PHP Class Pressbooks\Admin\PublishOptions

Inheritance: extends Pressbooks\Options
Show file Open project: pressbooks/pressbooks

Public Properties

Property Type Description
$currentVersion integer The value for option: pressbooks_ecommerce_links_version
$defaults array Publish defaults.
$options array Publish options.

Public Methods

Method Description
__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 )

Method Details

__construct() public method

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

display() public method

Display the publish options page description.
public display ( )

doInitialUpgrade() public method

public doInitialUpgrade ( )

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

getDefaults() static public method

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

getSlug() static public method

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

getTitle() static public method

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

getUrlOptions() static public method

Get an array of options which return URLs.
static public getUrlOptions ( ) : array
return array $options

init() public method

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

render() public method

public render ( )

renderAmazonField() public method

Render the amazon field.
public renderAmazonField ( )

renderBarnesAndNobleField() public method

Render the barnesandnoble field.

renderKoboField() public method

Render the barnesandnoble field.
public renderKoboField ( )

renderOReillyField() public method

Render the oreilly field.
public renderOReillyField ( )

renderOtherServiceField() public method

Render the ibooks field.

renderiBooksField() public method

Render the ibooks field.
public renderiBooksField ( )

upgrade() public method

public upgrade ( $version )

Property Details

$currentVersion static public property

The value for option: pressbooks_ecommerce_links_version
See also: upgrade()
static public int $currentVersion
return integer

$defaults public property

Publish defaults.
public array $defaults
return array

$options public property

Publish options.
public array $options
return array