UserInfo
class UserInfo extends ConcreteObject implements ObjectInterface, ObjectInterface, ExportableInterface (View source)
Traits
Properties
$error | from ConcreteObject | ||
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
loadError($error)
No description
isError()
No description
getError()
No description
setPropertiesFromArray($arr)
No description
static
camelcase($file)
No description
static
uncamelcase($string)
No description
CategoryInterface
getObjectAttributeCategory()
No description
AttributeValueInterface|null
getAttributeValueObject(AttributeKeyInterface|string $ak, bool $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(string|null $action = null, int|null $requesterUID = null)
No description
activate()
No description
bool
triggerDeactivate(int|null $requesterUID = null)
No description
deactivate()
No description
string|null
resetUserPassword(int $length = 256)
No description
AvatarInterface
getUserAvatar()
No description
URLInterface|null
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