PHP Class Inpsyde\MultilingualPress\Relations\Post\Search\RequestAwareSearch

Since: 3.0.0
Inheritance: implements Inpsyde\MultilingualPress\Relations\Post\Search\Search
Show file Open project: inpsyde/multilingual-press

Public Methods

Method Description
get_posts ( RelationshipContext $context ) : WP_Pos\WP_Post[] Returns the latest/best-matching posts with respect to the given context.

Private Methods

Method Description
get_search_query ( ) : string Returns the search query included in the request, if exists.

Method Details

get_posts() public method

Returns the latest/best-matching posts with respect to the given context.
Since: 3.0.0
public get_posts ( RelationshipContext $context ) : WP_Pos\WP_Post[]
$context Inpsyde\MultilingualPress\Relations\Post\RelationshipContext Relationship context data object.
return WP_Pos\WP_Post[] The latest/best-matching posts.