Next4Me
 All Data Structures Files Functions Variables
Sessions Class Reference

clasa are ca si metode doInsert / checkSession / updateSession / deleteSession More...

Public Member Functions

 doInsert ($idUser, $token)
 deschide o sesiune noua
 checkSession ($token)
 verifica daca sesiunea este deschisa si daca mai e activa
 updateSession ($token)
 actualizeaza ultima data si ora ultimei actiuni
 deleteSession ($token)
 sterge sesiunea aferenta token-ului astfel facind logout

Protected Attributes

 $_name = "ControlSessions"
 tabela mapata de clasa
 $_primary = "IdControlSessions"
 cheie primara

Detailed Description

clasa are ca si metode doInsert / checkSession / updateSession / deleteSession

Definition at line 11 of file sessions.php.


Member Function Documentation

checkSession ( token)

verifica daca sesiunea este deschisa si daca mai e activa

Parameters:
[in]String$token
Returns:
array(IdUser, Token, UserAccount_Type);

Definition at line 41 of file sessions.php.

deleteSession ( token)

sterge sesiunea aferenta token-ului astfel facind logout

Parameters:
[in]String$token
Returns:
array(resultId, resultCode)

Definition at line 91 of file sessions.php.

doInsert ( idUser,
token 
)

deschide o sesiune noua

Parameters:
[in]Integer$IdUser
[in]String$token
Returns:
void

Definition at line 23 of file sessions.php.

updateSession ( token)

actualizeaza ultima data si ora ultimei actiuni

Parameters:
[in]String$token
Returns:
void

Definition at line 73 of file sessions.php.


The documentation for this class was generated from the following file: