Class TariqaAuthenticationLogged

Description

Tarîqa SOAP Authentication Server Class

Located in /TariqaAuthenticationLogged.class.php (line 18)

SoapServer
   |
   --TariqaAuthenticationLogged
Class Constant Summary
 e_account_locked = 0x1002
 e_account_locked_msg = "User account locked"
 e_config = 0x1011
 e_config_msg = "Invalid Configuration"
 e_database = 0x1021
 e_database_msg = "Database error"
 e_forbidden = 0x1005
 e_forbidden_msg = "Access Forbidden"
 e_http = 0x2001
 e_http404 = 0x2002
 e_http404_msg = "Not found"
 e_http_msg = "HTTP Error"
 e_internal_error = 0x0001
 e_internal_error_msg = "Internal Server Error"
 e_invalid_argument_msg = "Invalid/Missing argument"
 e_invalid_format = 0x1031
 e_invalid_format_msg = "Invalid file format"
 e_login = 0x1001
 e_login_msg = "Invalid Username/Password"
 e_missing_record = 0x1022
 e_missing_record_msg = "Database record not found"
 e_not_implemented_msg = "Not implemented"
 e_privilege = 0x1004
 e_privilege_msg = "Insufficient privileges"
 e_session = 0x1003
 e_session_msg = "Invalid Session Identifier"
 e_smtp = 0x3001
 e_smtp_msg = "SMTP Error"
Variable Summary
array $config
Method Summary
string|false CheckToken (string $token)
void CloseDatabase ()
UserDetails GetUserDetails (string $token)
boolean IsLoggedIn (string $token)
AuthenticationResponse Login (string $login, string $password)
boolean Logout (string $token)
boolean OpenDatabase ( &$error)
boolean SetPassword (string $token, string $oldPassword, string $newPassword)
boolean SetUserDetails (string $token, UserDetails $userDetails)
Variables
array $config = null (line 24)

Configuration array

  • access: protected
Methods
CheckToken (line 572)

Checks the validity of a token

  • return: Returns false on error, the userId in case of success
  • access: protected
string|false CheckToken (string $token)
  • string $token: The session identifier
CloseDatabase (line 560)

Closes the connection with the database

  • access: protected
void CloseDatabase ()
GetUserDetails (line 467)

Retrieve the user details

  • access: public
UserDetails GetUserDetails (string $token)
  • string $token: The session identifier
IsLoggedIn (line 362)

Checks if the session is valid

  • access: public
boolean IsLoggedIn (string $token)
  • string $token: The session identifier
Login (line 116)

Authenticates with TariqaSoap

  • return: An identification token and its expiry time
  • access: public
AuthenticationResponse Login (string $login, string $password)
  • string $login: The username
  • string $password: The password
Logout (line 371)

Logout from Tariqa Soap

  • access: public
boolean Logout (string $token)
  • string $token: The session identifier
OpenDatabase (line 537)

Establish a connection with the database

  • access: protected
boolean OpenDatabase ( &$error)
  • &$error
SetPassword (line 419)

Modify the user password

  • access: public
boolean SetPassword (string $token, string $oldPassword, string $newPassword)
  • string $token: The session identifier
  • string $oldPassword: The actual password
  • string $newPassword: The new password
SetUserDetails (line 500)

Modify the user details (Note that user_id and isAdministrator are READ-ONLY!)

  • access: public
boolean SetUserDetails (string $token, UserDetails $userDetails)
  • string $token: The session identifier
  • UserDetails $userDetails: (Please note that you can't modify the 'isAdministrator')
Class Constants
e_account_locked = 0x1002 (line 685)

Error message - User account is locked

e_account_locked_msg = "User account locked" (line 686)
e_config = 0x1011 (line 709)

Error message - Invalid Configuration File

e_config_msg = "Invalid Configuration" (line 710)
e_database = 0x1021 (line 715)

Error message - Database error

e_database_msg = "Database error" (line 716)
e_forbidden = 0x1005 (line 703)

Error message - Forbidden access

e_forbidden_msg = "Access Forbidden" (line 704)
e_http = 0x2001 (line 733)

Error code/message - HTTP Error

e_http404 = 0x2002 (line 739)

Error code/message - HTTP 404 Error

e_http404_msg = "Not found" (line 740)
e_http_msg = "HTTP Error" (line 734)
e_internal_error = 0x0001 (line 661)

Error code/message - Internal Server Error

e_internal_error_msg = "Internal Server Error" (line 662)
e_invalid_argument = 0x0002 (line 667)

Error code/message - Invalid/Missing argument

e_invalid_argument_msg = "Invalid/Missing argument" (line 668)
e_invalid_format = 0x1031 (line 727)

Error code/message - Invalid format

e_invalid_format_msg = "Invalid file format" (line 728)
e_login = 0x1001 (line 679)

Error code/message - Invalid login

e_login_msg = "Invalid Username/Password" (line 680)
e_missing_record = 0x1022 (line 721)

Error message - Record not found

e_missing_record_msg = "Database record not found" (line 722)
e_not_implemented = 0x0003 (line 673)

Error code/message - Not implemented

e_not_implemented_msg = "Not implemented" (line 674)
e_privilege = 0x1004 (line 697)

Error message - Insufficient privileges

e_privilege_msg = "Insufficient privileges" (line 698)
e_session = 0x1003 (line 691)

Error message - Invalid Token/Session Identifier

e_session_msg = "Invalid Session Identifier" (line 692)
e_smtp = 0x3001 (line 745)

Error code/message - SMTP Error

e_smtp_msg = "SMTP Error" (line 746)

Documentation generated on Mon, 30 Mar 2009 16:35:40 +0200 by phpDocumentor 1.4.1