Property | Type | Description | |
---|---|---|---|
$id | integer | The WordPress meta id if it exists. |
Property | Type | Description | |
---|---|---|---|
$meta_values | array | Properties meta values. | |
$properties | array | Current properties. | |
$type | string | The meta type. | |
$type_class | Papi_Core_Type | The type class. |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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. |
abstract public get_property ( string $slug, string $child_slug = '' ) : Papi_Core_Property | ||
$slug | string | |
$child_slug | string | |
return | Papi_Core_Property |
public get_property_meta_value ( string $slug ) : mixed | ||
$slug | string | |
return | mixed |
public get_type_class ( ) : Papi_Core_Type | ||
return | Papi_Core_Type |
public load_value ( string $slug ) : mixed | ||
$slug | string | |
return | mixed |
protected prepare_load_value ( Papi_Core_Property $property, mixed $value ) : mixed | ||
$property | Papi_Core_Property | |
$value | mixed | |
return | mixed |
protected prepare_property ( Papi_Core_Property $property ) : Papi_Core_Property | ||
$property | Papi_Core_Property | |
return | Papi_Core_Property |
public set_property_meta_value ( string $slug, mixed $value ) | ||
$slug | string | |
$value | mixed |