Свойство | Type | Description | |
---|---|---|---|
$activeGambits | Flarum\Core\Search\GambitInterface[] | ||
$actor | |||
$defaultSort | array | ||
$query |
Méthode | Description | |
---|---|---|
__construct ( |
||
addActiveGambit ( Flarum\Core\Search\GambitInterface $gambit ) : void | Add a gambit as being active in this search. | |
getActiveGambits ( ) : Flarum\Core\Search\GambitInterface[] | Get a list of the gambits that are active in this search. | |
getActor ( ) : |
Get the user who is performing the search. | |
getDefaultSort ( ) : array | Get the default sort order for the search. | |
getQuery ( ) : |
Get the query builder for the search results query. | |
setDefaultSort ( array $defaultSort ) : mixed | Set the default sort order for the search. This will only be applied if a sort order has not been specified in the search criteria. |
public __construct ( |
||
$query | ||
$actor |
public addActiveGambit ( Flarum\Core\Search\GambitInterface $gambit ) : void | ||
$gambit | Flarum\Core\Search\GambitInterface | |
Résultat | void |
public getActiveGambits ( ) : Flarum\Core\Search\GambitInterface[] | ||
Résultat | Flarum\Core\Search\GambitInterface[] |
public getActor ( ) : |
||
Résultat |
public getDefaultSort ( ) : array | ||
Résultat | array |
public getQuery ( ) : |
||
Résultat |
public setDefaultSort ( array $defaultSort ) : mixed | ||
$defaultSort | 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. |
Résultat | mixed |
protected GambitInterface[],Flarum\Core\Search $activeGambits | ||
Résultat | Flarum\Core\Search\GambitInterface[] |