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

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 25
index(Guard $auth, Request $request, Modules $modules)

Shows the search page.

Parameters

Guard $auth
Request $request
Modules $modules

at line 65
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 134
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 207
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 273
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 314
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