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

class.tx_sv_authbase.php

Go to the documentation of this file.
00001 <?php
00002 /***************************************************************
00003 *  Copyright notice
00004 *
00005 *  (c) 1999-2004 Kasper Skaarhoj (kasperYYYY@typo3.com)
00006 *  All rights reserved
00007 *
00008 *  This script is part of the TYPO3 project. The TYPO3 project is
00009 *  free software; you can redistribute it and/or modify
00010 *  it under the terms of the GNU General Public License as published by
00011 *  the Free Software Foundation; either version 2 of the License, or
00012 *  (at your option) any later version.
00013 *
00014 *  The GNU General Public License can be found at
00015 *  http://www.gnu.org/copyleft/gpl.html.
00016 *
00017 *  This script is distributed in the hope that it will be useful,
00018 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
00019 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020 *  GNU General Public License for more details.
00021 *
00022 *  This copyright notice MUST APPEAR in all copies of the script!
00023 ***************************************************************/
00030 require_once(PATH_t3lib.'class.t3lib_svbase.php');
00031 
00032 class tx_sv_authbase extends t3lib_svbase    {
00033 
00034    var $pObj;                 // Parent object
00035    
00036    var $mode;                 // Subtype of the service which is used to call the service.
00037    
00038    var $login=array();           // Submitted login form data 
00039    var $info=array();            // Various data
00040    
00041    var $db_user=array();         // User db table definition
00042    var $db_groups=array();       // Usergroups db table definition
00043    
00044    var $writeAttemptLog = 0;     // If the writelog() functions is called if a login-attempt has be tried without success
00045 
00055    function initAuth($mode, $loginData, $info, &$pObj)   {
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    }
00069 
00085    function writelog($type,$action,$error,$details_nr,$details,$data,$tablename='',$recuid='',$recpid='')   {
00086       if($this->pObj->writeAttemptLog) {
00087          $this->pObj->writelog($type,$action,$error,$details_nr,$details,$data,$tablename,$recuid,$recpid);
00088       }
00089    }
00090    
00091 }
00092 
00093 
00094 ?>

Generated on Sun Oct 3 01:06:01 2004 for TYPO3core 3.7.0 dev by  doxygen 1.3.8-20040913