Class Sylar_SqlSession

Description

Implements interfaces:

Sql Class for Session Storage on DB

It manage the sql command needed from Session Objects to storage and access data

Located in /sylar/classes/common/db/mysql/security/SqlSession.php (line 42)


	
			
Method Summary
 Sylar_SqlSession __construct ()
 void __destruct ()
 array loadUserGroups (string $user_id)
 array loadUserPermissions (string $user_id)
 array login (string $encryptedPassword, [string $username = null], [string $email = null], [int $user_id = null])
 boolean setUserAsLogged (string $username, int $user_id)
 boolean setUserAsNotLogged (string $username, int $user_id)
Methods
Constructor __construct (line 44)
Sylar_SqlSession __construct ()
Destructor __destruct (line 49)
void __destruct ()
loadUserGroups (line 142)

Query SQL to extract all groups where the user is in

array loadUserGroups (string $user_id)
  • string $user_id
loadUserPermissions (line 179)

Query SQL to extract all permission of user

array loadUserPermissions (string $user_id)
  • string $user_id
login (line 68)

Query SQL for login procedure If Login query is ok it return an hash with all info to Session Class. Return false otherwise.

Login process can be done with password and other information like email, username and userid.

array login (string $encryptedPassword, [string $username = null], [string $email = null], [int $user_id = null])
  • string $encryptedPassword
  • string $username
  • string $email
  • int $user_id
setUserAsLogged (line 230)

Set the information about user as logged on the storage DB

boolean setUserAsLogged (string $username, int $user_id)
  • string $username
  • int $user_id: not request field. if it's 0 the method ignore it
setUserAsNotLogged (line 266)

Set the information about user as NOT logged on the storage DB

boolean setUserAsNotLogged (string $username, int $user_id)
  • string $username
  • int $user_id: not request field. if it's 0 the method ignore it

Documentation generated on Thu, 24 Apr 2008 16:14:22 +0200 by phpDocumentor 1.3.0RC3