PHP Класс Inpsyde\MultilingualPress\Relations\Post\RelationshipContext

С версии: 3.0.0
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $data = [] ) Constructor. Sets up the properties.
from_existing ( RelationshipContext $context, array $data ) : RelationshipContext Returns a new context object, instantiated according to the data in the given context object and the array.
from_request ( ) : static Returns a new context object, instantiated according to the data in the current request.
new_post_id ( ) : integer Returns the new post ID.
new_post_title ( ) : string Returns the new post title.
remote_post_id ( ) : integer Returns the remote post ID.
remote_site_id ( ) : integer Returns the remote site ID.
source_post ( ) : WP_Pos\WP_Post | null Returns the source post object.
source_post_id ( ) : integer Returns the source post ID.
source_site_id ( ) : integer Returns the source site ID.

Описание методов

__construct() публичный метод

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( array $data = [] )
$data array Optional. Initial context data. Defaults to empty array.

from_existing() публичный статический метод

Returns a new context object, instantiated according to the data in the given context object and the array.
С версии: 3.0.0
public static from_existing ( RelationshipContext $context, array $data ) : RelationshipContext
$context RelationshipContext Context object.
$data array Context data.
Результат RelationshipContext Context object.

from_request() публичный статический метод

Returns a new context object, instantiated according to the data in the current request.
С версии: 3.0.0
public static from_request ( ) : static
Результат static Context object.

new_post_id() публичный метод

Returns the new post ID.
С версии: 3.0.0
public new_post_id ( ) : integer
Результат integer New post ID.

new_post_title() публичный метод

Returns the new post title.
С версии: 3.0.0
public new_post_title ( ) : string
Результат string New post title.

remote_post_id() публичный метод

Returns the remote post ID.
С версии: 3.0.0
public remote_post_id ( ) : integer
Результат integer Remote post ID.

remote_site_id() публичный метод

Returns the remote site ID.
С версии: 3.0.0
public remote_site_id ( ) : integer
Результат integer Remote site ID.

source_post() публичный метод

Returns the source post object.
С версии: 3.0.0
public source_post ( ) : WP_Pos\WP_Post | null
Результат WP_Pos\WP_Post | null Source post object.

source_post_id() публичный метод

Returns the source post ID.
С версии: 3.0.0
public source_post_id ( ) : integer
Результат integer Source post ID.

source_site_id() публичный метод

Returns the source site ID.
С версии: 3.0.0
public source_site_id ( ) : integer
Результат integer Source site ID.