PHP 클래스 Inpsyde\MultilingualPress\Relations\Post\Search\StatusAwareSearchResultsView

부터: 3.0.0
상속: implements Inpsyde\MultilingualPress\Relations\Post\Search\SearchResultsView
파일 보기 프로젝트 열기: inpsyde/multilingual-press

공개 메소드들

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