Bristol SU Support Package
|
Public Member Functions | |
__construct (Request $request, RoleRepository $roleRepository, GroupRepository $groupRepository, UserRepository $userRepository) | |
getGroup () | |
getRole () | |
getUser () | |
setGroup (Group $group) | |
setRole (Role $role) | |
setUser (User $user) | |
reset () | |
![]() | |
setUser (User $user) | |
Private Attributes | |
$request | |
$roleRepository | |
$groupRepository | |
$userRepository | |
Api Authentication for getting authentication models from the query string
Definition at line 18 of file ApiAuthentication.php.
BristolSU\Support\Authentication\ApiAuthentication::__construct | ( | Request | $request, |
RoleRepository | $roleRepository, | ||
GroupRepository | $groupRepository, | ||
UserRepository | $userRepository | ||
) |
Initialise the API authentication
Request | $request | Request object to get parameters from |
RoleRepository | $roleRepository | Role repository for retrieving roles |
GroupRepository | $groupRepository | Group repository for retrieving groups |
UserRepository | $userRepository | User repository for retrieving users |
Definition at line 57 of file ApiAuthentication.php.
References BristolSU\Support\Authentication\ApiAuthentication\$groupRepository, BristolSU\Support\Authentication\ApiAuthentication\$request, BristolSU\Support\Authentication\ApiAuthentication\$roleRepository, and BristolSU\Support\Authentication\ApiAuthentication\$userRepository.
BristolSU\Support\Authentication\ApiAuthentication::getGroup | ( | ) |
Get a group from the group_id parameter
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 73 of file ApiAuthentication.php.
References BristolSU\Support\Authentication\ApiAuthentication\getRole().
BristolSU\Support\Authentication\ApiAuthentication::getRole | ( | ) |
Get a role from the role_id parameter
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 93 of file ApiAuthentication.php.
Referenced by BristolSU\Support\Authentication\ApiAuthentication\getGroup().
BristolSU\Support\Authentication\ApiAuthentication::getUser | ( | ) |
Get a user from the user_id parameter
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 109 of file ApiAuthentication.php.
BristolSU\Support\Authentication\ApiAuthentication::reset | ( | ) |
Reset the query strings to null
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 158 of file ApiAuthentication.php.
BristolSU\Support\Authentication\ApiAuthentication::setGroup | ( | Group | $group | ) |
Set the group
Group | $group |
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 126 of file ApiAuthentication.php.
BristolSU\Support\Authentication\ApiAuthentication::setRole | ( | Role | $role | ) |
Set the role
Role | $role |
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 137 of file ApiAuthentication.php.
BristolSU\Support\Authentication\ApiAuthentication::setUser | ( | User | $user | ) |
|
private |
Definition at line 40 of file ApiAuthentication.php.
Referenced by BristolSU\Support\Authentication\ApiAuthentication\__construct().
|
private |
Definition at line 26 of file ApiAuthentication.php.
Referenced by BristolSU\Support\Authentication\ApiAuthentication\__construct().
|
private |
Definition at line 33 of file ApiAuthentication.php.
Referenced by BristolSU\Support\Authentication\ApiAuthentication\__construct().
|
private |
Definition at line 47 of file ApiAuthentication.php.
Referenced by BristolSU\Support\Authentication\ApiAuthentication\__construct().