Bristol SU Support Package
|
Public Member Functions | |
__construct (Session $session, GroupRepository $groupRepository, UserRepository $userRepository, RoleRepository $roleRepository) | |
getGroup () | |
getRole () | |
getUser () | |
setGroup (Group $group) | |
setRole (Role $role) | |
setUser (User $user) | |
reset () | |
Private Attributes | |
$session | |
$groupRepository | |
$userRepository | |
$roleRepository | |
Authentication for getting a user, group or role from the session
Definition at line 18 of file SessionAuthentication.php.
BristolSU\Support\Testing\Authentication\SessionAuthentication::__construct | ( | Session | $session, |
GroupRepository | $groupRepository, | ||
UserRepository | $userRepository, | ||
RoleRepository | $roleRepository | ||
) |
Initialise the session
Session | $session | Session |
GroupRepository | $groupRepository | Group Repository |
UserRepository | $userRepository | User Repository |
UserAuthentication | $userAuthentication | Database User Authentication |
Definition at line 58 of file SessionAuthentication.php.
References BristolSU\Support\Testing\Authentication\SessionAuthentication\$groupRepository, BristolSU\Support\Testing\Authentication\SessionAuthentication\$roleRepository, BristolSU\Support\Testing\Authentication\SessionAuthentication\$session, and BristolSU\Support\Testing\Authentication\SessionAuthentication\$userRepository.
BristolSU\Support\Testing\Authentication\SessionAuthentication::getGroup | ( | ) |
Get the group
Returns the group belonging to a role if logged into a role, otherwise the group logged in
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 73 of file SessionAuthentication.php.
References BristolSU\Support\Testing\Authentication\SessionAuthentication\getRole().
BristolSU\Support\Testing\Authentication\SessionAuthentication::getRole | ( | ) |
Get the role
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 93 of file SessionAuthentication.php.
Referenced by BristolSU\Support\Testing\Authentication\SessionAuthentication\getGroup().
BristolSU\Support\Testing\Authentication\SessionAuthentication::getUser | ( | ) |
Get the user
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 109 of file SessionAuthentication.php.
BristolSU\Support\Testing\Authentication\SessionAuthentication::reset | ( | ) |
Unset the user, group and role
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 158 of file SessionAuthentication.php.
BristolSU\Support\Testing\Authentication\SessionAuthentication::setGroup | ( | Group | $group | ) |
Set the group
Group | $group |
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 126 of file SessionAuthentication.php.
BristolSU\Support\Testing\Authentication\SessionAuthentication::setRole | ( | Role | $role | ) |
Set the role
Role | $role |
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 137 of file SessionAuthentication.php.
BristolSU\Support\Testing\Authentication\SessionAuthentication::setUser | ( | User | $user | ) |
Set the user
User | $user |
Implements BristolSU\Support\Authentication\Contracts\Authentication.
Definition at line 148 of file SessionAuthentication.php.
|
private |
Definition at line 34 of file SessionAuthentication.php.
Referenced by BristolSU\Support\Testing\Authentication\SessionAuthentication\__construct().
|
private |
Definition at line 47 of file SessionAuthentication.php.
Referenced by BristolSU\Support\Testing\Authentication\SessionAuthentication\__construct().
|
private |
Definition at line 26 of file SessionAuthentication.php.
Referenced by BristolSU\Support\Testing\Authentication\SessionAuthentication\__construct().
|
private |
Definition at line 40 of file SessionAuthentication.php.
Referenced by BristolSU\Support\Testing\Authentication\SessionAuthentication\__construct().