Toggle navigation
Hot Examples
RU
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Найти
Главная
PartKeepr
AuthBundle
Entity
User
setAdmin
PartKeepr\AuthBundle\Entity\User::setAdmin PHP Метод
Документация по классу User
Показать файл
Открыть проект
setAdmin()
публичный
Метод
Sets the admin flag.
public
setAdmin
(
boolean
$bAdmin
)
$bAdmin
boolean
True if the user is an admin, false otherwise
public function setAdmin($bAdmin) { $this->admin = (bool) $bAdmin; }
User
__construct
compareHashedPassword
comparePassword
eraseCredentials
getEmail
getInitialUserPreferences
getLastSeen
getNewPassword
getPassword
getProvider
getRoles
getSalt
getTipHistories
getUsername
isActive
isAdmin
isEqualTo
isLegacy
isProtected
setActive
setAdmin
setEmail
setInitialUserPreferences
setLegacy
setNewPassword
setPassword
setProtected
setProvider
setRawUsername
setTipHistories
setUsername
updateSeen