PHP 클래스 Papi_Entry_Type, papi

상속: extends Papi_Core_Type
파일 보기 프로젝트 열기: wp-papi/papi 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$show_help_tabs Show help tabs.
$show_screen_options boolean Show screen options.
$type string The type name.

보호된 프로퍼티들

프로퍼티 타입 설명
$boxes array The array of meta boxes to register.
$load_boxes boolean Load all boxes.

공개 메소드들

메소드 설명
add_help_tabs ( ) Add help tabs.
body_classes ( ) : array Get custom admin body classes.
get_body_classes ( ) : array Get admin body css classes.
get_boxes ( ) : array Get boxes from the page type.
get_labels ( ) : array Get labels that should be changed when using fill_labels option.
get_properties ( ) : array Get root properties.
get_property ( string $slug, string $child_slug = '' ) : Papi_Property Get property from entry type.
help ( ) : array Add admin help tabs.
help_sidebar ( ) : boolean Add help sidebar content.
setup ( ) Setup entry type.
singleton ( ) : boolean Check if the entry type is a singleton.

보호된 메소드들

메소드 설명
box ( mixed $file_or_options = [], array $properties = [] ) Add new meta box with properties.
call_parent_register ( ) Call parent register if it exists to collect boxes on the parent entry type.
convert_properties ( array | object $properties ) : array Convert properties to properties objects.
merge_boxes ( array $boxes ) : array Merge boxes with same title.
property ( array | string $file_or_options = [], array $values = [] ) : null | Papi_Property Add new property to the page using array or rendering property template file.
tab ( mixed $file_or_options = [], array $properties = [] ) : null | Papi_Core_Tab Add a new tab.
template ( string $file, array $values = [] ) : array Load template file.

메소드 상세

add_help_tabs() 공개 메소드

Add help tabs.
public add_help_tabs ( )

body_classes() 공개 메소드

Get custom admin body classes.
public body_classes ( ) : array
리턴 array

box() 보호된 메소드

Add new meta box with properties.
protected box ( mixed $file_or_options = [], array $properties = [] )
$file_or_options mixed
$properties array

call_parent_register() 보호된 메소드

Call parent register if it exists to collect boxes on the parent entry type.
protected call_parent_register ( )

convert_properties() 보호된 메소드

Convert properties to properties objects.
protected convert_properties ( array | object $properties ) : array
$properties array | object
리턴 array

get_body_classes() 공개 메소드

Use body_classes method to add custom admin body classes.
public get_body_classes ( ) : array
리턴 array

get_boxes() 공개 메소드

Get boxes from the page type.
public get_boxes ( ) : array
리턴 array

get_labels() 공개 메소드

Get labels that should be changed when using fill_labels option.
public get_labels ( ) : array
리턴 array

get_properties() 공개 메소드

Get root properties.
public get_properties ( ) : array
리턴 array

get_property() 공개 메소드

Get property from entry type.
public get_property ( string $slug, string $child_slug = '' ) : Papi_Property
$slug string
$child_slug string
리턴 Papi_Property

help() 공개 메소드

Example: 'My custom title' => 'My custom content'
public help ( ) : array
리턴 array

help_sidebar() 공개 메소드

By default we return false to disable the sidebar content.
public help_sidebar ( ) : boolean
리턴 boolean

merge_boxes() 보호된 메소드

Merge boxes with same title.
protected merge_boxes ( array $boxes ) : array
$boxes array
리턴 array

property() 보호된 메소드

Add new property to the page using array or rendering property template file.
protected property ( array | string $file_or_options = [], array $values = [] ) : null | Papi_Property
$file_or_options array | string
$values array
리턴 null | Papi_Property

setup() 공개 메소드

Setup entry type.
public setup ( )

singleton() 공개 메소드

Check if the entry type is a singleton.
public singleton ( ) : boolean
리턴 boolean

tab() 보호된 메소드

Add a new tab.
protected tab ( mixed $file_or_options = [], array $properties = [] ) : null | Papi_Core_Tab
$file_or_options mixed
$properties array
리턴 null | Papi_Core_Tab

template() 보호된 메소드

Load template file.
protected template ( string $file, array $values = [] ) : array
$file string
$values array
리턴 array

프로퍼티 상세

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

The array of meta boxes to register.
protected array $boxes
리턴 array

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

Load all boxes.
protected bool $load_boxes
리턴 boolean

$show_help_tabs 공개적으로 프로퍼티

Show help tabs.
public $show_help_tabs

$show_screen_options 공개적으로 프로퍼티

Show screen options.
public bool $show_screen_options
리턴 boolean

$type 공개적으로 프로퍼티

The type name.
public string $type
리턴 string