PHP 클래스 Papi_Post_Store, papi

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

보호된 프로퍼티들

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

공개 메소드들

메소드 설명
__construct ( integer $id ) The constructor.
get_permalink ( ) : string Get the permalink for the page.
get_post ( ) : WP_Post Get the WordPress post object.
get_property ( string $slug, string $child_slug = '' ) : null | Papi_Core_Property Load property from page type.
get_status ( ) : string Get the post status of a page.
valid ( ) : boolean Check if the page has the post object and that it's not null.

보호된 메소드들

메소드 설명
prepare_load_value ( Papi_Core_Property $property, mixed $value ) : mixed Prepare load value.

메소드 상세

__construct() 공개 메소드

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

get_post() 공개 메소드

Get the WordPress post object.
public get_post ( ) : WP_Post
리턴 WP_Post

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_status() 공개 메소드

 @return string
public get_status ( ) : string
리턴 string

prepare_load_value() 보호된 메소드

Prepare load value.
protected prepare_load_value ( Papi_Core_Property $property, mixed $value ) : mixed
$property Papi_Core_Property
$value mixed
리턴 mixed

valid() 공개 메소드

Check if the page has the post object and that it's not null.
public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

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

The WordPress post.
protected object $post
리턴 object

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

The meta type.
protected string $type
리턴 string