Class CMSUsers
Users Helper Class Definition.
Methods summary
public static
array
|
#
getAccessibilityScope( )
Get Global Application CMS accessibility scope.
Get Global Application CMS accessibility scope.
Returns
array
Uses
|
public static
boolean
|
#
userCan( array $scope, CMS\Models\CMSUser $user = null )
Verifies whether a user can access a specific resource scope.
Verifies whether a user can access a specific resource scope.
Parameters
- $scope
- Example array('controller' => '' , 'action' =>'').
- $user
- User instance to verify.
Returns
boolean
|
public static
string
|
#
getGravatar( string $email, integer $s = 70, string $d = 'mm', string $r = 'g' )
Get either a Gravatar URL or complete image tag for a specified email address.
Get either a Gravatar URL or complete image tag for a specified email address.
Parameters
- $email
- The email address.
- $s
- Size in pixels, defaults to 80px [ 1 - 2048 ].
- $d
- Default image-set to use [ 404 | mm | identicon | monsterid | wavatar ].
- $r
- Maximum rating (inclusive) [ g | pg | r | x ].
Returns
string String containing either just a URL or a complete image tag.
Uses
|
public static
|
#
block( CMS\Models\CMSUser $user, string $action = 'block' )
Flags a user as blocked.
Parameters
- $user
- User instance
- $action
- Type of notification action.
|
Constants summary
string |
NOTIFY
Access block user notification type.
Access block user notification type.
Type
string
|
|