PHP 클래스 Pressbooks\Modules\ThemeOptions\PDFOptions

상속: extends Pressbooks\Options
파일 보기 프로젝트 열기: pressbooks/pressbooks

공개 프로퍼티들

프로퍼티 타입 설명
$currentVersion integer The value for option: pressbooks_theme_options_pdf_version
$defaults array PDF theme defaults.
$options array PDF theme options.

공개 메소드들

메소드 설명
__construct ( array $options ) Constructor.
display ( ) Display the PDF options tab description.
doInitialUpgrade ( ) Substitute human-readable values, add new defaults, replace pdf_page_size with pdf_page_width and pdf_page_height.
filterDefaults ( array $defaults ) : array Filter the array of default values for the PDF options tab.
getBooleanOptions ( ) : array Get an array of options which return booleans.
getDefaults ( ) : array Get an array of default values for the PDF options tab.
getFloatOptions ( ) : array Get an array of options which return floats.
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 PDF options tab.
getStringOptions ( ) : array Get an array of options which return strings.
getTitle ( ) : string Get the localized title of the PDF options tab.
init ( ) Configure the PDF options tab using the settings API.
render ( ) Render the PDF options tab form (NOT USED).
renderBlankPagesField ( array $args ) Render the pdf_blankpages radio buttons.
renderBodyFontSizeField ( array $args ) Render the pdf_body_font_size input.
renderBodyLineHightField ( array $args ) Render the pdf_body_line_height input.
renderBottomMarginField ( array $args ) Render the pdf_page_margin_bottom input.
renderCropMarksField ( array $args ) Render the pdf_crop_marks checkbox.
renderFontSizeField ( array $args ) Render the pdf_fontsize checkbox.
renderFootnoteStyleField ( array $args ) Render the pdf_footnotes_style radio buttons.
renderHyphenationField ( array $args ) Render the pdf_hyphens checkbox.
renderImageResolutionField ( array $args ) Render the pdf_image_resolution radio buttons.
renderInsideMarginField ( array $args ) Render the pdf_page_margin_inside input.
renderMarginsField ( array $args ) Render the margins diagram.
renderOrphansField ( array $args ) Render the orphans input.
renderOutsideMarginField ( array $args ) Render the pdf_page_margin_outside input.
renderPageHeightField ( array $args ) Render the pdf_page_height input.
renderPageSizeField ( array $args ) Render the pdf_page_size select.
renderPageWidthField ( array $args ) Render the pdf_page_width input.
renderParagraphSeparationField ( array $args ) Render the pdf_paragraph_separation radio buttons.
renderRomanizePartsField ( array $args ) Render the pdf_romanize_parts checkbox.
renderRunningContentBackMatterLeftField ( array $args ) Render the running_content_back_matter_left input.
renderRunningContentBackMatterRightField ( array $args ) Render the running_content_back_matter_right input.
renderRunningContentChapterLeftField ( array $args ) Render the running_content_chapter_left input.
renderRunningContentChapterRightField ( array $args ) Render the running_content_chapter_right input.
renderRunningContentField ( array $args ) Render the running content instructional diagram.
renderRunningContentFrontMatterLeftField ( array $args ) Render the running_content_front_matter_left input.
renderRunningContentFrontMatterRightField ( array $args ) Render the running_content_front_matter_right input.
renderRunningContentIntroductionLeftField ( array $args ) Render the running_content_introduction_left input.
renderRunningContentIntroductionRightField ( array $args ) Render the running_content_introduction_right input.
renderRunningContentPartLeftField ( array $args ) Render the running_content_part_left input.
renderRunningContentPartRightField ( array $args ) Render the running_content_part_right input.
renderTOCField ( array $args ) Render the pdf_toc checkbox.
renderTopMarginField ( array $args ) Render the pdf_page_margin_top input.
renderWidowsField ( array $args ) Render the widows input.
upgrade ( integer $version ) Upgrade handler for PDF options.

메소드 상세

__construct() 공개 메소드

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

display() 공개 메소드

Display the PDF options tab description.
public display ( )

doInitialUpgrade() 공개 메소드

Substitute human-readable values, add new defaults, replace pdf_page_size with pdf_page_width and pdf_page_height.
public doInitialUpgrade ( )

filterDefaults() 정적인 공개 메소드

Filter the array of default values for the PDF options tab.
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 PDF options tab.
static public getDefaults ( ) : array
리턴 array $defaults

getFloatOptions() 정적인 공개 메소드

Get an array of options which return floats.
static public getFloatOptions ( ) : array
리턴 array $options

getIntegerOptions() 정적인 공개 메소드

Get an array of options which return integers.
static public getIntegerOptions ( ) : array
리턴 array $options

getPredefinedOptions() 정적인 공개 메소드

Get an array of options which return predefined values.
static public getPredefinedOptions ( ) : array
리턴 array $options

getSlug() 정적인 공개 메소드

Get the slug for the PDF options tab.
static public getSlug ( ) : string
리턴 string $slug

getStringOptions() 정적인 공개 메소드

Get an array of options which return strings.
static public getStringOptions ( ) : array
리턴 array $options

getTitle() 정적인 공개 메소드

Get the localized title of the PDF options tab.
static public getTitle ( ) : string
리턴 string $title

init() 공개 메소드

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

render() 공개 메소드

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

renderBlankPagesField() 공개 메소드

Render the pdf_blankpages radio buttons.
public renderBlankPagesField ( array $args )
$args array

renderBodyFontSizeField() 공개 메소드

Render the pdf_body_font_size input.
public renderBodyFontSizeField ( array $args )
$args array

renderBodyLineHightField() 공개 메소드

Render the pdf_body_line_height input.
public renderBodyLineHightField ( array $args )
$args array

renderBottomMarginField() 공개 메소드

Render the pdf_page_margin_bottom input.
public renderBottomMarginField ( array $args )
$args array

renderCropMarksField() 공개 메소드

Render the pdf_crop_marks checkbox.
public renderCropMarksField ( array $args )
$args array

renderFontSizeField() 공개 메소드

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

renderFootnoteStyleField() 공개 메소드

Render the pdf_footnotes_style radio buttons.
public renderFootnoteStyleField ( array $args )
$args array

renderHyphenationField() 공개 메소드

Render the pdf_hyphens checkbox.
public renderHyphenationField ( array $args )
$args array

renderImageResolutionField() 공개 메소드

Render the pdf_image_resolution radio buttons.
public renderImageResolutionField ( array $args )
$args array

renderInsideMarginField() 공개 메소드

Render the pdf_page_margin_inside input.
public renderInsideMarginField ( array $args )
$args array

renderMarginsField() 공개 메소드

Render the margins diagram.
public renderMarginsField ( array $args )
$args array

renderOrphansField() 공개 메소드

Render the orphans input.
public renderOrphansField ( array $args )
$args array

renderOutsideMarginField() 공개 메소드

Render the pdf_page_margin_outside input.
public renderOutsideMarginField ( array $args )
$args array

renderPageHeightField() 공개 메소드

Render the pdf_page_height input.
public renderPageHeightField ( array $args )
$args array

renderPageSizeField() 공개 메소드

Render the pdf_page_size select.
public renderPageSizeField ( array $args )
$args array

renderPageWidthField() 공개 메소드

Render the pdf_page_width input.
public renderPageWidthField ( array $args )
$args array

renderParagraphSeparationField() 공개 메소드

Render the pdf_paragraph_separation radio buttons.
public renderParagraphSeparationField ( array $args )
$args array

renderRomanizePartsField() 공개 메소드

Render the pdf_romanize_parts checkbox.
public renderRomanizePartsField ( array $args )
$args array

renderRunningContentBackMatterLeftField() 공개 메소드

Render the running_content_back_matter_left input.

renderRunningContentBackMatterRightField() 공개 메소드

Render the running_content_back_matter_right input.

renderRunningContentChapterLeftField() 공개 메소드

Render the running_content_chapter_left input.

renderRunningContentChapterRightField() 공개 메소드

Render the running_content_chapter_right input.

renderRunningContentField() 공개 메소드

Render the running content instructional diagram.
public renderRunningContentField ( array $args )
$args array

renderRunningContentFrontMatterLeftField() 공개 메소드

Render the running_content_front_matter_left input.

renderRunningContentFrontMatterRightField() 공개 메소드

Render the running_content_front_matter_right input.

renderRunningContentIntroductionLeftField() 공개 메소드

Render the running_content_introduction_left input.

renderRunningContentIntroductionRightField() 공개 메소드

Render the running_content_introduction_right input.

renderRunningContentPartLeftField() 공개 메소드

Render the running_content_part_left input.

renderRunningContentPartRightField() 공개 메소드

Render the running_content_part_right input.

renderTOCField() 공개 메소드

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

renderTopMarginField() 공개 메소드

Render the pdf_page_margin_top input.
public renderTopMarginField ( array $args )
$args array

renderWidowsField() 공개 메소드

Render the widows input.
public renderWidowsField ( array $args )
$args array

upgrade() 공개 메소드

Upgrade handler for PDF options.
public upgrade ( integer $version )
$version integer

프로퍼티 상세

$currentVersion 정적으로 공개적으로 프로퍼티

The value for option: pressbooks_theme_options_pdf_version
또한 보기: upgrade()
static public int $currentVersion
리턴 integer

$defaults 공개적으로 프로퍼티

PDF theme defaults.
public array $defaults
리턴 array

$options 공개적으로 프로퍼티

PDF theme options.
public array $options
리턴 array