UserInfo
class UserInfo extends Object implements ObjectInterface, ObjectInterface, ExportableInterface (View source)
Traits
Properties
$error | from Object | ||
protected AvatarServiceInterface | $avatarService | ||
protected Application | $application | ||
protected UserCategory | $attributeCategory | ||
protected EntityManagerInterface | $entityManager | ||
protected Connection | $connection | ||
protected User | $entity | ||
protected EventDispatcher|null | $director |
Methods
No description
No description
Sets the attribute of a user info object to the specified value, and saves it in the database.
No description
No description
No description
No description
No description
No description
No description
No description
No description
Deletes a user.
No description
Marks the current user as having had a password reset from the system.
Sent a private message.
Gets the User object of the current UserInfo object ($this).
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Magic method for user attributes. This is db expensive but pretty damn cool so if the attrib handle is "my_attribute", then get the attribute with $ui->getUserMyAttribute(), or "uFirstName" become $ui->getUserUfirstname();.
No description
Details
in
Object at line 10
loadError($error)
No description
in
Object at line 15
isError()
No description
in
Object at line 25
getError()
No description
in
Object at line 30
setPropertiesFromArray($arr)
No description
in
Object at line 37
static
camelcase($file)
No description
in
Object at line 42
static
uncamelcase($string)
No description
CategoryInterface
getObjectAttributeCategory()
No description
getAttributeValueObject($ak, $createIfNotExists = false)
No description
getAttribute($ak, $mode = false)
No description
Value
getAttributeValue($ak)
No description
clearAttribute($ak)
No description
Value
setAttribute($ak, mixed $value)
Sets the attribute of a user info object to the specified value, and saves it in the database.
__construct(EntityManagerInterface $entityManager, UserCategory $attributeCategory, Application $application, AvatarServiceInterface $avatarService)
No description
string
__toString()
No description
getPermissionObjectIdentifier()
No description
getPermissionResponseClassName()
No description
getPermissionAssignmentClassName()
No description
getPermissionObjectKeyCategoryHandle()
No description
setEntityObject(User $entity)
No description
User
getEntityObject()
No description
ItemInterface
getExporter()
No description
Group[]
getUserBadges()
No description
bool
triggerDelete(User $requester)
No description
bool
delete()
Deletes a user.
bool
canReadPrivateMessage(PrivateMessage $msg)
No description
updateUserAvatar(ImageInterface $image)
No description
markAsPasswordReset()
Marks the current user as having had a password reset from the system.
ErrorList|false|null
sendPrivateMessage(UserInfo $recipient, string $subject, string $text, PrivateMessage $inReplyTo = null)
Sent a private message.
User
getUserObject()
Gets the User object of the current UserInfo object ($this).
bool|null
update(array $data)
No description
updateGroups(int[] $groupArray)
No description
string
setupValidation()
No description
true
markValidated()
No description
bool
changePassword(string $newPassword)
No description
bool
triggerActivate(null|string $action = null, null|int $requesterUID = null)
No description
activate()
No description
bool
triggerDeactivate(null|int $requesterUID = null)
No description
deactivate()
No description
string|null
resetUserPassword(int $length = 256)
No description
AvatarInterface
getUserAvatar()
No description
null|URLInterface
getUserPublicProfileUrl()
No description
bool
hasAvatar()
No description
getLastLogin()
No description
string|null
getLastIPAddress()
No description
getPreviousLogin()
No description
isActive()
No description
isValidated()
No description
isFullRecord()
No description
getNumLogins()
No description
getUserID()
No description
getUserName()
No description
getUserDisplayName()
No description
getUserPassword()
No description
getUserEmail()
No description
getUserTimezone()
No description
getUserDefaultLanguage()
No description
getUserDateAdded()
No description
getLastOnline()
No description
saveUserAttributesForm(UserAttributeKey[] $attributes)
No description
saveUserAttributesDefault(array $attributes)
No description
mixed|null
__call($nm, $a)
Magic method for user attributes. This is db expensive but pretty damn cool so if the attrib handle is "my_attribute", then get the attribute with $ui->getUserMyAttribute(), or "uFirstName" become $ui->getUserUfirstname();.
protected EventDispatcher
getDirector()
No description
static
add($data)
deprecated
deprecated
No description
static
addSuperUser($uPasswordEncrypted, $uEmail)
deprecated
deprecated
No description
static
register($data)
deprecated
deprecated
No description
static
getByID($uID)
deprecated
deprecated
No description
static
getByUserName($uName)
deprecated
deprecated
No description
static
getByEmail($uEmail)
deprecated
deprecated
No description
static
getByValidationHash($uHash, $unredeemedHashesOnly = true)
deprecated
deprecated
No description