Property | Type | Description | |
---|---|---|---|
$activeGambits | Flarum\Core\Search\GambitInterface[] | ||
$actor | |||
$defaultSort | array | ||
$query |
Method | 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 | |
return | void |
public getActiveGambits ( ) : Flarum\Core\Search\GambitInterface[] | ||
return | Flarum\Core\Search\GambitInterface[] |
public getActor ( ) : |
||
return |
public getDefaultSort ( ) : array | ||
return | array |
public getQuery ( ) : |
||
return |
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. |
return | mixed |
protected GambitInterface[],Flarum\Core\Search $activeGambits | ||
return | Flarum\Core\Search\GambitInterface[] |