StatisticsController
class StatisticsController extends Controller
Traits
Methods
Determines if the request was done by an automated script (with API token or ajax).
Redirects to the _redirect URL, to a route or else back.
Compute the annotation statistics of image or video volumes.
Provides the statistics-data for a specific Volume.
Details
in
Controller at line 21
bool
isAutomatedRequest(Request|null $request = null)
Determines if the request was done by an automated script (with API token or ajax).
in
Controller at line 15
protected RedirectResponse
fuzzyRedirect()
Redirects to the _redirect URL, to a route or else back.
in
ComputesAnnotationStatistics at line 22
protected array
getAnnotationStatistics(string $type, callable $restrict)
Compute the annotation statistics of image or video volumes.
The statistics are derived from the same join of annotations, annotation labels and files. The join is computed only once (as materialized CTE) and all statistics are fetched with a single query.
at line 28
Collection
index(int $id)
Provides the statistics-data for a specific Volume.