UserLocationTrait
Table of Contents
Methods
-
canViewLocation()
: bool
-
getLocation()
: array<string, mixed>
-
getLocationValue()
: string
canViewLocation()
public
canViewLocation(User $context, User $user) : bool
Parameters
-
$context
: User
-
-
$user
: User
-
getLocation()
public
getLocation(User $context, User $resource) : array<string, mixed>
Parameters
-
$context
: User
-
-
$resource
: User
-
Return values
array<string, mixed>
getLocationValue()
public
getLocationValue(User $context, mixed $resource) : string
Parameters
-
$context
: User
-
-
$resource
: mixed
-