PHP Class Flarum\Core\Search\SearchCriteria

Datei anzeigen Open project: flarum/core

Public Properties

Property 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.

Public Methods

Method Description
__construct ( User $actor, string $query, array $sort = null )

Method Details

__construct() public method

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
return Flarum\Core\User

$query public_oe property

The search query.
public string $query
return 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
return array