Class UserInfo

Concrete\Core\Foundation\Object
Extended by Concrete\Core\User\UserInfo implements Concrete\Core\Permission\ObjectInterface
Namespace: Concrete\Core\User
Located at src/User/UserInfo.php

Methods summary

public
public string
# __toString( )
public integer
public string
public string|false
public string|false
public Group[]
# getUserBadges( )
public
# delete( )

Deletes a user.

public boolean
public
# updateUserAvatar( Imagine\Image\ImageInterface $image )
public Concrete\Core\Error\Error|false|null
# sendPrivateMessage( Concrete\Core\User\UserInfo $recipient, string $subject, string $text, Concrete\Core\User\PrivateMessage\PrivateMessage $inReplyTo = false )
public Concrete\Core\User\User
# getUserObject( )

Gets the User object of the current UserInfo object ($this).

public boolean|null
# update( array $data )
public
# updateGroups( int[] $groupArray )
public string
# setupValidation( )
public true
# markValidated( )
public boolean
# changePassword( string $newPassword )
public
# activate( )
public
public string
# resetUserPassword( )
public
public null|Concrete\Core\Url\UrlInterface
public boolean
# hasAvatar( )
public integer
# getLastLogin( )
public string|null
# getLastIPAddress( )
public integer
# getPreviousLogin( )
public boolean
# isActive( )
public boolean
# isValidated( )
public boolean
# isFullRecord( )
public integer
# getNumLogins( )
public integer
# getUserID( )
public string
# getUserName( )
public string
# getUserDisplayName( )
public string
# getUserPassword( )
public string
# getUserEmail( )
public string
# getUserTimezone( )

Returns the user's timezone.

public string
# getUserDefaultLanguage( )
public string
# getUserDateAdded( )

Gets the date a user was added to the system.

public string
# getLastOnline( )

Gets the date a user was last active on the site.

public
# saveUserAttributesForm( UserAttributeKey[] $attributes )
public
# setAttribute( UserAttributeKey|string $ak, mixed $value )

Sets the attribute of a user info object to the specified value, and saves it in the database.

public
# clearAttribute( UserAttributeKey|string $ak )
public
# reindex( )

Reindex the attributes on this file.

public mixed|null
# getAttribute( UserAttributeKey|string $ak, string|false $displayMode = false )

Gets the value of the attribute for the user.

public
# getAttributeField( UserAttributeKey|string $ak )
public Concrete\Core\Attribute\Value\UserValue|false
# getAttributeValueObject( UserAttributeKey|string $ak, boolean $createIfNotFound = false )
public 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();.

public static
# add( $data )
public static
# addSuperUser( $uPasswordEncrypted, $uEmail )
public static
# register( $data )
public static
# getByID( $uID )
public static
# getByUserName( $uName )
public static
# getByEmail( $uEmail )
public static
# getByValidationHash( $uHash, $unredeemedHashesOnly = true )

Properties summary

protected $avatarService
#
protected $application
#
protected $connection
#

Properties inherited from Concrete\Core\Foundation\Object

$error