PHP 클래스 Carbon_Fields\Container\Theme_Options_Container

상속: extends Container
파일 보기 프로젝트 열기: htmlburger/carbon-fields

공개 프로퍼티들

프로퍼티 타입 설명
$icon
$settings

보호된 프로퍼티들

프로퍼티 타입 설명
$registered_pages

공개 메소드들

메소드 설명
__construct ( string $title ) Create a new theme options fields container
add_fields ( array $fields ) Append array of fields to the current fields set. All items of the array must be instances of Field and their names should be unique for all Carbon containers.
attach ( ) Add theme options container pages.
detach ( ) Revert the result of attach()
drop_unique_page ( ) Unregister the container parent and child pages.
init ( ) Attach container as a theme options page/subpage.
is_active ( ) Whether this container is currently viewed.
is_valid_save ( ) : boolean Perform checks whether the current save() request is valid.
render ( ) Output the container markup
save ( mixed $user_data = null ) Perform save operation after successful is_valid_save() check.
set_icon ( $icon ) Set the icon of this theme options page.
set_page_file ( $file ) Set the theme options file name of this container.
set_page_parent ( $parent ) Change the parent theme options page of this container
set_page_permissions ( $permissions ) Set the permissions necessary to view the corresponding theme options page
verify_unique_page ( ) Make sure that there are no duplicate containers with the same name.

보호된 메소드들

메소드 설명
clear_string ( $string ) Sanitize the container title for use in the theme options file name.

메소드 상세

__construct() 공개 메소드

Create a new theme options fields container
public __construct ( string $title )
$title string Unique title of the container

add_fields() 공개 메소드

If a field does not have DataStore already, the container data store is assigned to them instead.
public add_fields ( array $fields )
$fields array

attach() 공개 메소드

Hook the container saving action.
public attach ( )

clear_string() 보호된 메소드

Sanitize the container title for use in the theme options file name.
protected clear_string ( $string )

detach() 공개 메소드

Revert the result of attach()
public detach ( )

drop_unique_page() 공개 메소드

Unregister the container parent and child pages.
public drop_unique_page ( )

init() 공개 메소드

Attach container as a theme options page/subpage.
public init ( )

is_active() 공개 메소드

Whether this container is currently viewed.
public is_active ( )

is_valid_save() 공개 메소드

Perform checks whether the current save() request is valid.
public is_valid_save ( ) : boolean
리턴 boolean

render() 공개 메소드

Output the container markup
public render ( )

save() 공개 메소드

The call is propagated to all fields in the container.
public save ( mixed $user_data = null )
$user_data mixed

set_icon() 공개 메소드

Applicable only for parent theme option pages.
public set_icon ( $icon )

set_page_file() 공개 메소드

Set the theme options file name of this container.
public set_page_file ( $file )

set_page_parent() 공개 메소드

Change the parent theme options page of this container
public set_page_parent ( $parent )

set_page_permissions() 공개 메소드

Set the permissions necessary to view the corresponding theme options page
public set_page_permissions ( $permissions )

verify_unique_page() 공개 메소드

Make sure that there are no duplicate containers with the same name.
public verify_unique_page ( )

프로퍼티 상세

$icon 공개적으로 프로퍼티

public $icon

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

protected static $registered_pages

$settings 공개적으로 프로퍼티

public $settings