PHP Class Flarum\Core\Search\SearchCriteria

Afficher le fichier Open project: flarum/core

Méthodes publiques

Свойство Type Description
$actor Flarum\Core\User The user performing the search.
$query string The search query.
$sort array An array of sort-order pairs, where the column is the key, and the order is the value. The order may be 'asc', 'desc', or an array of IDs to order by.

Méthodes publiques

Méthode Description
__construct ( User $actor, string $query, array $sort = null )

Method Details

__construct() public méthode

public __construct ( User $actor, string $query, array $sort = null )
$actor Flarum\Core\User The user performing the search.
$query string The search query.
$sort array An array of sort-order pairs, where the column is the key, and the order is the value. The order may be 'asc', 'desc', or an array of IDs to order by.

Property Details

$actor public_oe property

The user performing the search.
public User,Flarum\Core $actor
Résultat Flarum\Core\User

$query public_oe property

The search query.
public string $query
Résultat string

$sort public_oe property

An array of sort-order pairs, where the column is the key, and the order is the value. The order may be 'asc', 'desc', or an array of IDs to order by.
public array $sort
Résultat array