PHP 클래스 Papi_Core_Meta_Store, papi

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

공개 프로퍼티들

프로퍼티 타입 설명
$id integer The WordPress meta id if it exists.

보호된 프로퍼티들

프로퍼티 타입 설명
$meta_values array Properties meta values.
$properties array Current properties.
$type string The meta type.
$type_class Papi_Core_Type The type class.

공개 메소드들

메소드 설명
factory ( integer $post_id, string $type = 'post' ) : mixed Get store from factory.
format_value ( string $slug, mixed $value ) : mixed Format property value from the property.
get_property ( string $slug, string $child_slug = '' ) : Papi_Core_Property Get property from entry type.
get_property_meta_value ( string $slug ) : mixed Get property meta value.
get_property_option ( string $slug, string $option, mixed $default = null ) : boolean Get property option or default value.
get_type ( ) : string Get meta type.
get_type_class ( ) : Papi_Core_Type Get type class.
get_value ( integer $id = null, string $slug = null, mixed $default = null, string $type = 'post' ) : mixed Get value.
load_value ( string $slug ) : mixed Load property value from the property.
set_property_meta_value ( string $slug, mixed $value ) Set property meta value.
valid ( ) : boolean Check if it's a valid store.

보호된 메소드들

메소드 설명
prepare_load_value ( Papi_Core_Property $property, mixed $value ) : mixed Prepare load value.
prepare_property ( Papi_Core_Property $property ) : Papi_Core_Property Prepare property before returning it.
property ( string $slug = '' ) : Papi_Core_Property Get current property.

메소드 상세

factory() 공개 정적인 메소드

Get store from factory.
public static factory ( integer $post_id, string $type = 'post' ) : mixed
$post_id integer
$type string
리턴 mixed

format_value() 공개 메소드

Format property value from the property.
public format_value ( string $slug, mixed $value ) : mixed
$slug string
$value mixed
리턴 mixed

get_property() 추상적인 공개 메소드

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

get_property_meta_value() 공개 메소드

Get property meta value.
public get_property_meta_value ( string $slug ) : mixed
$slug string
리턴 mixed

get_property_option() 공개 메소드

Get property option or default value.
public get_property_option ( string $slug, string $option, mixed $default = null ) : boolean
$slug string
$option string
$default mixed
리턴 boolean

get_type() 공개 메소드

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

get_type_class() 공개 메소드

Get type class.
public get_type_class ( ) : Papi_Core_Type
리턴 Papi_Core_Type

get_value() 공개 메소드

Get value.
public get_value ( integer $id = null, string $slug = null, mixed $default = null, string $type = 'post' ) : mixed
$id integer
$slug string
$default mixed
$type string
리턴 mixed

load_value() 공개 메소드

Load property value from the property.
public load_value ( string $slug ) : mixed
$slug string
리턴 mixed

prepare_load_value() 보호된 메소드

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

prepare_property() 보호된 메소드

Prepare property before returning it.
protected prepare_property ( Papi_Core_Property $property ) : Papi_Core_Property
$property Papi_Core_Property
리턴 Papi_Core_Property

property() 보호된 메소드

Get current property.
protected property ( string $slug = '' ) : Papi_Core_Property
$slug string
리턴 Papi_Core_Property

set_property_meta_value() 공개 메소드

Set property meta value.
public set_property_meta_value ( string $slug, mixed $value )
$slug string
$value mixed

valid() 추상적인 공개 메소드

Check if it's a valid store.
abstract public valid ( ) : boolean
리턴 boolean

프로퍼티 상세

$id 공개적으로 프로퍼티

The WordPress meta id if it exists.
public int $id
리턴 integer

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

Properties meta values.
protected array $meta_values
리턴 array

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

Current properties.
protected array $properties
리턴 array

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

The meta type.
protected string $type
리턴 string

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

The type class.
protected Papi_Core_Type $type_class
리턴 Papi_Core_Type