PHP Class Pressbooks\Modules\ThemeOptions\MPDFOptions

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

Méthodes publiques

Свойство Type Description
$currentVersion integer The value for option: pressbooks_theme_options_mpdf_version
$defaults array PDF theme defaults.
$options array PDF theme options.

Méthodes publiques

Méthode Description
__construct ( array $options ) Constructor.
display ( ) Display the mPDF options tab description.
filterDefaults ( array $defaults ) : array Filter the array of default values for the mPDF options tab.
getBooleanOptions ( ) : array Get an array of options which return booleans.
getDefaults ( ) : array Get an array of default values for the mPDF options tab.
getIntegerOptions ( ) : array Get an array of options which return integers.
getPredefinedOptions ( ) : array Get an array of options which return predefined values.
getSlug ( ) : string Get the slug for the mPDF options tab.
getTitle ( ) : string Get the localized title of the mPDF options tab.
init ( ) Configure the mPDF options tab using the settings API.
render ( ) Render the mPDF options tab form (NOT USED).
renderCoverImageField ( array $args ) Render the mpdf_include_cover checkbox.
renderFontSizeField ( array $args ) Render the mpdf_fontsize checkbox.
renderHyphensField ( array $args ) Render the mpdf_hyphens checkbox.
renderIndentParagraphsField ( array $args ) Render the mpdf_indent_paragraphs checkbox.
renderLeftMarginField ( array $args ) Render the mpdf_margin_left input.
renderMirrorMarginsField ( array $args ) Render the mpdf_mirror_margins checkbox.
renderPageSizeField ( array $args ) Render the mpdf_page_size input.
renderRightMarginField ( array $args ) Render the mpdf_margin_right input.
renderTOCField ( array $args ) Render the mpdf_include_toc checkbox.
upgrade ( integer $version ) Upgrade handler for mPDF options (none at present).

Method Details

__construct() public méthode

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

display() public méthode

Display the mPDF options tab description.
public display ( )

filterDefaults() static public méthode

Filter the array of default values for the mPDF options tab.
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 mPDF options tab.
static public getDefaults ( ) : array
Résultat array $defaults

getIntegerOptions() static public méthode

Get an array of options which return integers.
static public getIntegerOptions ( ) : array
Résultat array $options

getPredefinedOptions() static public méthode

Get an array of options which return predefined values.
static public getPredefinedOptions ( ) : array
Résultat array $options

getSlug() static public méthode

Get the slug for the mPDF options tab.
static public getSlug ( ) : string
Résultat string $slug

getTitle() static public méthode

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

init() public méthode

Configure the mPDF options tab using the settings API.
public init ( )

render() public méthode

Render the mPDF options tab form (NOT USED).
public render ( )

renderCoverImageField() public méthode

Render the mpdf_include_cover checkbox.
public renderCoverImageField ( array $args )
$args array

renderFontSizeField() public méthode

Render the mpdf_fontsize checkbox.
public renderFontSizeField ( array $args )
$args array

renderHyphensField() public méthode

Render the mpdf_hyphens checkbox.
public renderHyphensField ( array $args )
$args array

renderIndentParagraphsField() public méthode

Render the mpdf_indent_paragraphs checkbox.
public renderIndentParagraphsField ( array $args )
$args array

renderLeftMarginField() public méthode

Render the mpdf_margin_left input.
public renderLeftMarginField ( array $args )
$args array

renderMirrorMarginsField() public méthode

Render the mpdf_mirror_margins checkbox.
public renderMirrorMarginsField ( array $args )
$args array

renderPageSizeField() public méthode

Render the mpdf_page_size input.
public renderPageSizeField ( array $args )
$args array

renderRightMarginField() public méthode

Render the mpdf_margin_right input.
public renderRightMarginField ( array $args )
$args array

renderTOCField() public méthode

Render the mpdf_include_toc checkbox.
public renderTOCField ( array $args )
$args array

upgrade() public méthode

Upgrade handler for mPDF options (none at present).
public upgrade ( integer $version )
$version integer

Property Details

$currentVersion static_oe public_oe property

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

$defaults public_oe property

PDF theme defaults.
public array $defaults
Résultat array

$options public_oe property

PDF theme options.
public array $options
Résultat array