Property | Type | Description | |
---|---|---|---|
$arrData | array | Data | |
$intId | integer | User ID | |
$objInstance | Object instance (Singleton) | ||
$strCookie | string | Cookie name | |
$strHash | string | Authentication hash | |
$strIp | string | IP address | |
$strTable | string | Table |
Method | Description | |
---|---|---|
__clone ( ) | Prevent cloning of the object (Singleton) | |
__get ( string $strKey ) : mixed | Return an object property | |
__isset ( string $strKey ) : boolean | Check whether a property is set | |
__set ( string $strKey, mixed $varValue ) | Set an object property | |
__toString ( ) : string | Get a string representation of the user | |
authenticate ( ) : boolean | Authenticate a user | |
findBy ( string $strColumn, mixed $varValue ) : boolean | Find a user in the database | |
getData ( ) : array | Return the current record as associative array | |
getInstance ( ) : static | Instantiate a new user object (Factory) | |
getTable ( ) : string | Return the table name | |
isMemberOf ( integer $id ) : boolean | Return true if the user is member of a particular group | |
login ( ) : boolean | Try to login the current user | |
logout ( ) : boolean | Remove the authentication cookie and destroy the current session | |
save ( ) | Update the current record |
Method | Description | |
---|---|---|
__construct ( ) | Import the database object | |
checkAccountStatus ( ) : boolean | Check the account status and return true if it is active | |
generateSession ( ) | Generate a session | |
regenerateSessionId ( ) | Regenerate the session ID | |
setUserFromDb ( ) | Set all user properties from a database record |
public __toString ( ) : string | ||
return | string | The string representation |
public authenticate ( ) : boolean | ||
return | boolean | True if the user could be authenticated |
protected checkAccountStatus ( ) : boolean | ||
return | boolean | True if the account is active |
public static getInstance ( ) : static | ||
return | static | The object instance |
public isMemberOf ( integer $id ) : boolean | ||
$id | integer | The group ID |
return | boolean | True if the user is a member of the group |
abstract protected setUserFromDb ( ) |
protected static User,contao $objInstance | ||
return |