This class contains functions for global authentication in CONTENIDO.

package Core
subpackage Authentication

 Methods

Magic getter function for outdated variable names.

__get(string $name) : mixed

Parameters

$name

string

name of the variable

Returns

mixed

auth_loginform()

auth_loginform() 
deprecated 2012-09-22

auth_loglogin()

auth_loglogin() 
deprecated 2012-09-22

auth_preauth()

auth_preauth() 
deprecated 2012-09-22

auth_validatelogin()

auth_validatelogin() 
deprecated 2012-09-22

Getter for the auth information.

getAuthInfo() : array

Returns

arrayauth information

Checks, if user is authenticated (NOT logged in!).

isAuthenticated() : bool

Returns

bool

Checks, if user is currently in login form mode.

isLoginForm() : bool

Returns

bool

is_auth_form_uid()

is_auth_form_uid() 
deprecated 2012-09-22

is_authenticated()

is_authenticated() 
deprecated 2012-09-22

Logs out the current user, resets the auth information and freezes the session.

logout(bool $nobody) : bool

Parameters

$nobody

bool

If flag set to true, nobody is recreated as user.

Returns

booltrue

purl()

purl() 
deprecated 2012-09-22

Resets the global authentication information.

resetAuthInfo(bool $nobody) : void

Parameters

$nobody

bool

If flag set to true, the default authentication is switched to nobody. (optional, default: false)

Restarts the authentication process.

restart() : void

Starts the authentication process.

start() : void

unauth()

unauth($nobody) 
deprecated 2012-09-22

Parameters

$nobody

url()

url() 
deprecated 2012-09-22

Fetches the login form.

_fetchLoginForm() : void

Sets the authentication info for a user.

_setAuthInfo(string $userId) : void

Parameters

$userId

string

user ID to set

Sets or refreshs the expiration of the authentication.

_setExpiration(int $expiration) : void

Parameters

$expiration

int

new expiration (optional, default: null = current time plus lifetime minutes)

Starts the login process by pre authorizing.

_startLoginProcess() : void

 Properties

 

$auth : array
 

$_defaultNobody : bool
 

$_lifetime : integer

After that time the authentication expires.

 

$_in : bool

Nobody knows, for which reasons it exists.

 Constants

 

AUTH_UID_FORM

AUTH_UID_FORM 
 

AUTH_UID_NOBODY

AUTH_UID_NOBODY