class UsersController extends Controller

Traits

AuthorizesRequests
ValidatesRequests

Methods

bool
isAutomatedRequest(Request|null $request = null)

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

get(Request $request)

Shows the admin users page.

newUser()

Shows the admin new user page.

edit($id)

Shows the admin edit user page.

delete($id)

Shows the admin delete user page.

show(Modules $modules, int $id)

Shows the user information page.

string|array
roleClassMap(Role|null $role = null)

Determines the Boostrap label class for a role label.

array
showProject(User $user)

Add project statistics to the view.

array
showVolume(User $user)

Add volume statistics to the view.

array
showAnnotations(User $user)

Add annotation statistics to the view.

array
showVideos(User $user)

Add project statistics to the view.

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

Parameters

Request|null $request

Return Value

bool

at line 24
get(Request $request)

Shows the admin users page.

Parameters

Request $request

at line 69
newUser()

Shows the admin new user page.

at line 77
edit($id)

Shows the admin edit user page.

Parameters

$id

at line 91
delete($id)

Shows the admin delete user page.

Parameters

$id

at line 103
show(Modules $modules, int $id)

Shows the user information page.

Parameters

Modules $modules
int $id

User ID

at line 126
protected string|array roleClassMap(Role|null $role = null)

Determines the Boostrap label class for a role label.

Parameters

Role|null $role

Return Value

string|array

at line 148
protected array showProject(User $user)

Add project statistics to the view.

Parameters

User $user

Return Value

array

at line 177
protected array showVolume(User $user)

Add volume statistics to the view.

Parameters

User $user

Return Value

array

at line 215
protected array showAnnotations(User $user)

Add annotation statistics to the view.

Parameters

User $user

Return Value

array

at line 245
array showVideos(User $user)

Add project statistics to the view.

Parameters

User $user

Return Value

array