Main Page | Directories | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages | Examples

tx_sv_authbase Class Reference

Inherits t3lib_svbase.

Inherited by tx_sv_auth.

List of all members.

Public Member Functions

 initAuth ($mode, $loginData, $info, &$pObj)
 init service
 writelog ($type, $action, $error, $details_nr, $details, $data, $tablename='', $recuid='', $recpid='')
 Writes to log database table in pObj.

Public Attributes

 $pObj
 $mode
 $login = array()
 $info = array()
 service description array
 $db_user = array()
 $db_groups = array()
 $writeAttemptLog = 0


Member Function Documentation

tx_sv_authbase::initAuth mode,
loginData,
info,
&$  pObj
 

init service

Parameters:
string Subtype of the service which is used to call the service.
array Submitted login form data
array Information array. Holds submitted form data etc.
object Parent object
Returns:
void

Definition at line 55 of file class.tx_sv_authbase.php.

References t3lib_svbase::getServiceOption().

00055                                                          {
00056 
00057       $this->pObj = &$pObj;
00058       
00059       $this->mode = $mode;
00060       $this->login = $loginData;
00061       $this->info = $info;
00062 
00063       $this->db_user = $this->getServiceOption('db_user', $info['db_user'], FALSE);
00064       $this->db_groups = $this->getServiceOption('db_groups', $info['db_groups'], FALSE);
00065       
00066       $this->writeAttemptLog = $this->pObj->writeAttemptLog;   
00067       $this->writeDevLog    = $this->pObj->writeDevLog;  
00068    }

tx_sv_authbase::writelog type,
action,
error,
details_nr,
details,
data,
tablename = '',
recuid = '',
recpid = ''
 

Writes to log database table in pObj.

Parameters:
integer $type: denotes which module that has submitted the entry. This is the current list: 1=tce_db; 2=tce_file; 3=system (eg. sys_history save); 4=modules; 254=Personal settings changed; 255=login / out action: 1=login, 2=logout, 3=failed login (+ errorcode 3), 4=failure_warning_email sent
integer 
action
denotes which specific operation that wrote the entry (eg. 'delete', 'upload', 'update' and so on...). Specific for each
type. Also used to trigger update of the interface. (see the log-module for the meaning of each number !!)
integer $error: flag. 0 = message, 1 = error (user problem), 2 = System Error (which should not happen), 3 = security notice (admin)
integer 
details_nr
The message number. Specific for each
type and $action. in the future this will make it possible to translate errormessages to other languages
string $details: Default text that follows the message
array $data: Data that follows the log. Might be used to carry special information. If an array the first 5 entries (0-4) will be sprintf'ed the details-text...
string 
tablename
Special field used by tce_main.php. These (
tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
integer 
recuid
Special field used by tce_main.php. These (
tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
integer 
recpid
Special field used by tce_main.php. These (
tablename, $recuid, $recpid) holds the reference to the record which the log-entry is about. (Was used in attic status.php to update the interface.)
Returns:
void
See also:
t3lib_userauthgroup::writelog()

Definition at line 85 of file class.tx_sv_authbase.php.

References error().

Referenced by tx_sv_auth::authUser(), and tx_sv_auth::getUser().

00085                                                                                                             {
00086       if($this->pObj->writeAttemptLog) {
00087          $this->pObj->writelog($type,$action,$error,$details_nr,$details,$data,$tablename,$recuid,$recpid);
00088       }
00089    }


Member Data Documentation

tx_sv_authbase::$db_groups = array()
 

Definition at line 42 of file class.tx_sv_authbase.php.

tx_sv_authbase::$db_user = array()
 

Definition at line 41 of file class.tx_sv_authbase.php.

tx_sv_authbase::$info = array()
 

service description array

Reimplemented from t3lib_svbase.

Definition at line 39 of file class.tx_sv_authbase.php.

tx_sv_authbase::$login = array()
 

Definition at line 38 of file class.tx_sv_authbase.php.

tx_sv_authbase::$mode
 

Definition at line 36 of file class.tx_sv_authbase.php.

tx_sv_authbase::$pObj
 

Definition at line 34 of file class.tx_sv_authbase.php.

tx_sv_authbase::$writeAttemptLog = 0
 

Definition at line 44 of file class.tx_sv_authbase.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 3 01:07:53 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913