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

부터: 3.0.0
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

메소드 설명
__construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations ) Constructor. Sets up the properties.
handle_connect_existing_post ( ) : void Connects the current post with an existing remote one.
handle_connect_new_post ( ) : void Connects the current post with a new remote one.
handle_disconnect_post ( ) : void Disconnects the current post and the one given in the request.
initialize ( ) : void Initializes the relationship controller.

비공개 메소드들

메소드 설명
connect_existing_post ( ) : boolean Connects the current post with an existing remote one.
connect_new_post ( ) : boolean | WP_Erro\WP_Error Connects the current post with a new remote one.
disconnect_post ( ) : void Disconnects the current post with the one given in the request.
get_callback ( ) : callable Returns the appropriate callback for the current action.
get_real_post_type ( WP_Post $post ) : string Returns the post type of the "real" post according to the given one.

메소드 상세

__construct() 공개 메소드

Constructor. Sets up the properties.
부터: 3.0.0
public __construct ( Inpsyde\MultilingualPress\API\ContentRelations $content_relations )
$content_relations Inpsyde\MultilingualPress\API\ContentRelations Content relations API object.

handle_connect_existing_post() 공개 메소드

Connects the current post with an existing remote one.
부터: 3.0.0
public handle_connect_existing_post ( ) : void
리턴 void

handle_connect_new_post() 공개 메소드

Connects the current post with a new remote one.
부터: 3.0.0
public handle_connect_new_post ( ) : void
리턴 void

handle_disconnect_post() 공개 메소드

Disconnects the current post and the one given in the request.
부터: 3.0.0
public handle_disconnect_post ( ) : void
리턴 void

initialize() 공개 메소드

Initializes the relationship controller.
부터: 3.0.0
public initialize ( ) : void
리턴 void