PHP Класс Papi_Post_Store, papi

Наследование: extends Papi_Core_Meta_Store
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$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