PHP 클래스 Inpsyde\MultilingualPress\Relations\Post\RelationshipContext

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press 1 사용 예제들

공개 메소드들

메소드 설명
__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.