PHP 클래스 Papi_Core_Type, papi

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

공개 프로퍼티들

프로퍼티 타입 설명
$name string The name of the core type.
$sort_order integer The sort order of the core type.
$type string The type name. Used for WP CLI.

보호된 프로퍼티들

프로퍼티 타입 설명
$_class_name string The page type class name.
$_file_path string The file path of the core type file.

공개 메소드들

메소드 설명
__construct ( string $file_path = '' ) The constructor.
allowed ( ) : boolean Determine if the entry type is allowed.
boot ( ) Boot page type.
get_class_name ( ) : string Get the page type class name with namespace if exists.
get_file_path ( ) : string Get the page type file pat.h
get_id ( ) : string Get the page type identifier.
get_type ( ) : string Get type name.
has_name ( ) : boolean Check so we have a name on the page type.
match_id ( string $id ) : boolean Check if the the given identifier match the page type identifier.
new_class ( ) : null | object Create a new instance of the page type file.

보호된 메소드들

메소드 설명
get_meta ( ) : array Get meta data from type class and merge with the parent meta data.
setup_actions ( ) Setup actions.
setup_file ( string $file_path ) Load the file and setup file path, file name and class name properties.
setup_filters ( ) Setup filters.
setup_meta_data ( ) Setup meta data.

메소드 상세

__construct() 공개 메소드

Load a core type by the file.
public __construct ( string $file_path = '' )
$file_path string

allowed() 공개 메소드

Determine if the entry type is allowed.
public allowed ( ) : boolean
리턴 boolean

boot() 공개 메소드

Boot page type.
public boot ( )

get_class_name() 공개 메소드

Get the page type class name with namespace if exists.
public get_class_name ( ) : string
리턴 string

get_file_path() 공개 메소드

Get the page type file pat.h
public get_file_path ( ) : string
리턴 string

get_id() 공개 메소드

Get the page type identifier.
public get_id ( ) : string
리턴 string

get_meta() 보호된 메소드

Get meta data from type class and merge with the parent meta data.
protected get_meta ( ) : array
리턴 array

get_type() 공개 메소드

Get type name.
public get_type ( ) : string
리턴 string

has_name() 공개 메소드

Check so we have a name on the page type.
public has_name ( ) : boolean
리턴 boolean

match_id() 공개 메소드

Check if the the given identifier match the page type identifier.
public match_id ( string $id ) : boolean
$id string
리턴 boolean

new_class() 공개 메소드

Create a new instance of the page type file.
public new_class ( ) : null | object
리턴 null | object

setup_actions() 보호된 메소드

Setup actions.
protected setup_actions ( )

setup_file() 보호된 메소드

Load the file and setup file path, file name and class name properties.
protected setup_file ( string $file_path )
$file_path string

setup_filters() 보호된 메소드

Setup filters.
protected setup_filters ( )

setup_meta_data() 보호된 메소드

Setup meta data.
protected setup_meta_data ( )

프로퍼티 상세

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

The page type class name.
protected string $_class_name
리턴 string

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

The file path of the core type file.
protected string $_file_path
리턴 string

$name 공개적으로 프로퍼티

The name of the core type.
public string $name
리턴 string

$sort_order 공개적으로 프로퍼티

The sort order of the core type.
public int $sort_order
리턴 integer

$type 공개적으로 프로퍼티

The type name. Used for WP CLI.
public string $type
리턴 string