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

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

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

Метод Описание
__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