PHP Класс Wallmander\ElasticsearchIndexer\Controller\QueryIntegration

Автор: Mikael Mattsson ([email protected])
Показать файл Открыть проект

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

Метод Описание
actionLoopEnd ( WP_Query $query ) Make sure the correct blog is restored.
actionLoopStart ( WP_Query $query ) Ensure we've started a loop before we allow ourselves to change the blog.
actionPreGetPosts ( WP_Query $query ) Disables cache_results, adds header.
actionThePost ( array $post ) Switch to the correct site if the post site id is different than the actual one.
filterFoundPostsQuery ( string $sql, WP_Query $query ) : string Remove the found_rows from the SQL Query.
filterPostsRequest ( string $request, WP_Query $query ) : string Filter query string used for get_posts(). Search for posts and save for later.
filterThePosts ( array $posts, WP_Query $query ) : array

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

actionLoopEnd() публичный статический Метод

Make sure the correct blog is restored.
public static actionLoopEnd ( WP_Query $query )
$query WP_Query

actionLoopStart() публичный статический Метод

Ensure we've started a loop before we allow ourselves to change the blog.
public static actionLoopStart ( WP_Query $query )
$query WP_Query

actionPreGetPosts() публичный статический Метод

Disables cache_results, adds header.
public static actionPreGetPosts ( WP_Query $query )
$query WP_Query

actionThePost() публичный статический Метод

Switch to the correct site if the post site id is different than the actual one.
public static actionThePost ( array $post )
$post array

filterFoundPostsQuery() публичный статический Метод

Remove the found_rows from the SQL Query.
public static filterFoundPostsQuery ( string $sql, WP_Query $query ) : string
$sql string
$query WP_Query
Результат string

filterPostsRequest() публичный статический Метод

Return a query that will return nothing.
public static filterPostsRequest ( string $request, WP_Query $query ) : string
$request string
$query WP_Query
Результат string

filterThePosts() публичный статический Метод

public static filterThePosts ( array $posts, WP_Query $query ) : array
$posts array
$query WP_Query
Результат array