Core
3.2
PHP API documentation
Main Page
Related Pages
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
Class.SessionCache.php
Go to the documentation of this file.
1
<?php
2
/*
3
* @author Anakeen
4
* @package FDL
5
*/
6
/**
7
* Cache session date of validated
8
*
9
* @author Anakeen
10
* @version $Id: Class.SessionCache.php,v 1.4 2005/06/28 13:53:24 eric Exp $
11
* @package FDL
12
* @subpackage CORE
13
*/
14
/**
15
*/
16
17
include_once (
'Class.DbObj.php'
);
18
19
class
SessionCache
extends
DbObj
20
{
21
22
var
$fields
= array(
23
"index"
,
24
"lasttime"
25
);
26
27
var
$id_fields
= array(
28
"index"
29
);
30
31
var
$dbtable
=
"session_cache"
;
32
33
var
$sqlcreate
=
"create table session_cache ( index varchar(100),
34
lasttime int);"
;
35
36
function
__construct
(
$dbaccess
=
''
, $id =
''
,
$res
=
''
,
$dbid
= 0)
37
{
38
parent::__construct(
$dbaccess
, $id,
$res
,
$dbid
);
39
if
((!$this->
isAffected
()) && ($id !=
''
)) {
40
$this->index = $id;
41
42
$date = gettimeofday();
43
$this->lasttime = $date[
'sec'
];
44
$this->
Add
();
45
}
46
}
47
// modify with current date
48
function
setTime
()
49
{
50
$date = gettimeofday();
51
$this->lasttime = $date[
'sec'
];
52
$this->Modify();
53
}
54
}
55
?>
DbObj\$res
$res
Definition:
Class.DbObj.php:90
DbObj\Add
Add($nopost=false, $nopre=false)
Definition:
Class.DbObj.php:413
SessionCache\setTime
setTime()
Definition:
Class.SessionCache.php:48
DbObj
Definition:
Class.DbObj.php:28
DbObj\isAffected
isAffected()
Definition:
Class.DbObj.php:296
SessionCache\$sqlcreate
$sqlcreate
Definition:
Class.SessionCache.php:33
SessionCache
Definition:
Class.SessionCache.php:19
SessionCache\$id_fields
$id_fields
Definition:
Class.SessionCache.php:27
SessionCache\$dbtable
$dbtable
Definition:
Class.SessionCache.php:31
DbObj\$dbid
$dbid
Definition:
Class.DbObj.php:34
DbObj\$dbaccess
$dbaccess
Definition:
Class.DbObj.php:39
SessionCache\$fields
$fields
Definition:
Class.SessionCache.php:22
SessionCache\__construct
__construct($dbaccess= '', $id= '', $res= '', $dbid=0)
Definition:
Class.SessionCache.php:36
← centre documentaire
© anakeen