PHP 클래스 Papi_Term_Store, papi

상속: extends Papi_Core_Meta_Store
파일 보기 프로젝트 열기: wp-papi/papi

보호된 프로퍼티들

프로퍼티 타입 설명
$term object The WordPress term.
$type string The meta type.

공개 메소드들

메소드 설명
__construct ( integer $id ) The constructor.
get_permalink ( ) : string Get the permalink for the term.
get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property Load property from page type.
get_term ( ) : WP_Term Get the WordPress term object.
valid ( ) : boolean Check if the term is a valid term object.

메소드 상세

__construct() 공개 메소드

The constructor.
public __construct ( integer $id )
$id integer

get_property() 공개 메소드

Load property from page type.
public get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property
$slug string
$child_slug string
리턴 null | Papi_Core_Property

get_term() 공개 메소드

Get the WordPress term object.
public get_term ( ) : WP_Term
리턴 WP_Term

valid() 공개 메소드

Check if the term is a valid term object.
public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

The WordPress term.
protected object $term
리턴 object

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

The meta type.
protected string $type
리턴 string