Contao Utils Bundle

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

Properties

$framework

protected ContaoFrameworkInterface $framework

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|null

hasAccessToField()

public hasAccessToField(mixed $table, mixed $field) : bool
Parameters
$table : mixed
$field : mixed
Return values
bool

isAdmin()

public isAdmin() : bool
Return values
bool

        
On this page

Search results