class SearchController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Response
index(Guard $auth, Request $request, Modules $modules)

Shows the search page.

array
searchLabelTrees(User $user, string $query, string $type, bool $includeFederatedSearch)

Add label tree results to the search view.

array
searchProjects(User $user, string $query, string $type, bool $includeFederatedSearch)

Add project results to the search view.

array
searchVolumes(User $user, string $query, string $type, bool $includeFederatedSearch)

Add volume results to the search view.

array
searchAnnotations(User $user, string $query, string $type)

Add image results to the search view.

array
searchVideos(User $user, string $query, string $type)

Add video results to the search view.

Details

in Controller at line 21
bool isAutomatedRequest(Request $request = null)

Determines if the request was done by an automated script (with API token or ajax).

Parameters

Request $request

Return Value

bool

at line 26
Response index(Guard $auth, Request $request, Modules $modules)

Shows the search page.

Parameters

Guard $auth
Request $request
Modules $modules

Return Value

Response

at line 66
protected array searchLabelTrees(User $user, string $query, string $type, bool $includeFederatedSearch)

Add label tree results to the search view.

Parameters

User $user
string $query
string $type
bool $includeFederatedSearch

Return Value

array

at line 133
protected array searchProjects(User $user, string $query, string $type, bool $includeFederatedSearch)

Add project results to the search view.

Parameters

User $user
string $query
string $type
bool $includeFederatedSearch

Return Value

array

at line 204
protected array searchVolumes(User $user, string $query, string $type, bool $includeFederatedSearch)

Add volume results to the search view.

Parameters

User $user
string $query
string $type
bool $includeFederatedSearch

Return Value

array

at line 268
protected array searchAnnotations(User $user, string $query, string $type)

Add image results to the search view.

Parameters

User $user
string $query
string $type

Return Value

array

at line 309
protected array searchVideos(User $user, string $query, string $type)

Add video results to the search view.

Parameters

User $user
string $query
string $type

Return Value

array