UserUtil
in package
uses
PersonTrait
Class UserUtil.
Table of Contents
Constants
- TABLE = 'tl_user'
Properties
- $framework : ContaoFrameworkInterface
- $modelUtil : ModelUtil
Methods
- __construct() : mixed
- findActiveByGroups() : UserModel|array<string|int, UserModel>|Collection|null
- hasAccessToField() : bool
- isAdmin() : bool
Constants
TABLE
public
mixed
TABLE
= 'tl_user'
Properties
$framework
protected
ContaoFrameworkInterface
$framework
$modelUtil
protected
ModelUtil
$modelUtil
Methods
__construct()
public
__construct(ContaoFrameworkInterface $framework, ModelUtil $modelUtil) : mixed
Parameters
- $framework : ContaoFrameworkInterface
- $modelUtil : ModelUtil
findActiveByGroups()
public
findActiveByGroups(array<string|int, mixed> $groups[, array<string|int, mixed> $options = [] ]) : UserModel|array<string|int, UserModel>|Collection|null
use Utils service instead
Parameters
- $groups : array<string|int, mixed>
- $options : array<string|int, mixed> = []
Return values
UserModel|array<string|int, UserModel>|Collection|nullhasAccessToField()
public
hasAccessToField(mixed $table, mixed $field) : bool
Parameters
- $table : mixed
- $field : mixed
Return values
boolisAdmin()
public
isAdmin() : bool