PHP Класс Inpsyde\MultilingualPress\Relations\Post\Search\StatusAwareSearchResultsView

С версии: 3.0.0
Наследование: implements Inpsyde\MultilingualPress\Relations\Post\Search\SearchResultsView
Показать файл Открыть проект

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

Метод Описание
__construct ( Inpsyde\MultilingualPress\Relations\Post\Search\Search $search ) Constructor. Sets up the properties.
render ( RelationshipContext $context ) : void Renders the markup for the search results according to the given context.

Приватные методы

Метод Описание
get_post_title ( WP_Post $post ) : string Returns the title of the given post, including the status if not published.
get_translated_status ( string $status ) : string Returns the according translation of the given post status, if available.

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

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

Constructor. Sets up the properties.
С версии: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Relations\Post\Search\Search $search )
$search Inpsyde\MultilingualPress\Relations\Post\Search\Search Search object.

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

Renders the markup for the search results according to the given context.
С версии: 3.0.0
public render ( RelationshipContext $context ) : void
$context Inpsyde\MultilingualPress\Relations\Post\RelationshipContext Relationship context data object.
Результат void