PHP 클래스 Admin_Apple_Settings_Section, apple-news

부터: 0.6.0
상속: extends Apple_News
파일 보기 프로젝트 열기: alleyinteractive/apple-news 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$allowed_html array Allowed HTML for settings pages.

보호된 프로퍼티들

프로퍼티 타입 설명
$base_settings Apple_Exporter\Settings Base settings.
$fonts array All available iOS fonts.
$groups array Groups for the section.
$name string Name of the settings section.
$page string Settings page.
$settings array Settings for the section.
$slug string Slug of the settings section.

공개 메소드들

메소드 설명
__construct ( string $page ) Constructor.
after_section ( ) : string HTML to display after the section.
before_section ( ) : string HTML to display before the section.
get_section_info ( ) : string Gets section info.
get_value ( string $key, array $saved_settings = null ) : mixed Get the current value for an option.
groups ( ) : array Return an array which contains all groups and their related settings, embedded.
id ( ) : string Get the ID of the settings section.
name ( ) : string Get the settings section name.
render_field ( array $args ) Render a settings field.
sanitize_array ( array $value ) : array Sanitizes a single dimension array with text values.
save_settings ( ) Each section is responsible for saving its own settings since only it knows the nature of the fields and sanitization methods.

보호된 메소드들

메소드 설명
get_default_for ( string $name ) : string Get the default for a field.
get_description_for ( string $name ) : string Get the description for a field.
get_size_for ( string $name ) : integer Get the size for a field.
get_type_for ( string $name ) : string Get the type for a field.
is_multiple ( string $name ) : boolean Check if the field can hold multiple values.
is_required ( string $name ) : integer Check if a field is required.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( string $page )
$page string

after_section() 공개 메소드

HTML to display after the section.
public after_section ( ) : string
리턴 string

before_section() 공개 메소드

HTML to display before the section.
public before_section ( ) : string
리턴 string

get_default_for() 보호된 정적인 메소드

Get the default for a field.
protected static get_default_for ( string $name ) : string
$name string
리턴 string

get_description_for() 보호된 메소드

Get the description for a field.
protected get_description_for ( string $name ) : string
$name string
리턴 string

get_section_info() 공개 메소드

Gets section info.
public get_section_info ( ) : string
리턴 string

get_size_for() 보호된 메소드

Get the size for a field.
protected get_size_for ( string $name ) : integer
$name string
리턴 integer

get_type_for() 보호된 메소드

Get the type for a field.
protected get_type_for ( string $name ) : string
$name string
리턴 string

get_value() 공개 정적인 메소드

Get the current value for an option.
public static get_value ( string $key, array $saved_settings = null ) : mixed
$key string
$saved_settings array
리턴 mixed

groups() 공개 메소드

Return an array which contains all groups and their related settings, embedded.
public groups ( ) : array
리턴 array

id() 공개 메소드

Get the ID of the settings section.
public id ( ) : string
리턴 string

is_multiple() 보호된 메소드

Check if the field can hold multiple values.
protected is_multiple ( string $name ) : boolean
$name string
리턴 boolean

is_required() 보호된 메소드

Check if a field is required.
protected is_required ( string $name ) : integer
$name string
리턴 integer

name() 공개 메소드

Get the settings section name.
public name ( ) : string
리턴 string

render_field() 공개 메소드

Render a settings field.
public render_field ( array $args )
$args array

sanitize_array() 공개 메소드

Sanitizes a single dimension array with text values.
public sanitize_array ( array $value ) : array
$value array
리턴 array

save_settings() 공개 메소드

Each section is responsible for saving its own settings since only it knows the nature of the fields and sanitization methods.
public save_settings ( )

프로퍼티 상세

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

Allowed HTML for settings pages.
public static array $allowed_html
리턴 array

$base_settings 보호되어 있는 정적으로 프로퍼티

Base settings.
protected static Settings,Apple_Exporter $base_settings
리턴 Apple_Exporter\Settings

$fonts 보호되어 있는 정적으로 프로퍼티

All available iOS fonts.
부터: 0.4.0
protected static array $fonts
리턴 array

$groups 보호되어 있는 프로퍼티

Groups for the section.
protected array $groups
리턴 array

$name 보호되어 있는 프로퍼티

Name of the settings section.
protected string $name
리턴 string

$page 보호되어 있는 프로퍼티

Settings page.
protected string $page
리턴 string

$settings 보호되어 있는 프로퍼티

Settings for the section.
protected array $settings
리턴 array

$slug 보호되어 있는 프로퍼티

Slug of the settings section.
protected string $slug
리턴 string