Class rex_user

Class for users.

Package: redaxo\core\login
Author: gharlan
Located at redaxo/src/core/lib/login/user.php

Methods summary

public
# __construct( rex_sql $sql )

Constructor.

public string
# getValue( string $key )

Returns the value for the given key.

public integer
# getId( )

Returns the ID.

public string
# getLogin( )

Returns the user login.

public string
# getName( )

Returns the name.

public string
# getEmail( )

Returns the email.

public boolean
# isAdmin( )

Returns if the user is an admin.

public string
# getLanguage( )

Returns the language.

public string
# getStartPage( )

Returns the start page.

public boolean
# hasRole( )

Returns if the user has a role.

public boolean
# hasPerm( string $perm )

Returns if the user has the given permission.

public rex_complex_perm
# getComplexPerm( string $key )

Returns the complex perm for the user.

public static
# setRoleClass( string $class )

Sets the role class.

Properties summary

protected rex_sql $sql

SQL instance.

protected rex_user_role_interface $role

User role instance.

protected static string $roleClass

Class name for user roles.