PHP 클래스 OptionsMock

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

공개 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( array $options ) Constructor.
display ( ) Display the mock 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 ( )
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 mock options page.
getStringOptions ( ) : array Get an array of options which return strings.
getTitle ( ) : string Get the localized title of the mock options page.
init ( )
render ( )
upgrade ( $version )

메소드 상세

__construct() 공개 메소드

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

display() 공개 메소드

Display the mock 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 The input array of default values.
리턴 array $defaults

getBooleanOptions() 정적인 공개 메소드

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

getDefaults() 정적인 공개 메소드

static public getDefaults ( )

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 mock options page.
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 mock options page.
static public getTitle ( ) : string
리턴 string $title

init() 공개 메소드

public init ( )

render() 공개 메소드

public render ( )

upgrade() 공개 메소드

public upgrade ( $version )

프로퍼티 상세

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

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

$defaults 공개적으로 프로퍼티

Export defaults.
public array $defaults
리턴 array

$options 공개적으로 프로퍼티

Export options.
public array $options
리턴 array