Platform  3.1
PHP API documentation
 All Data Structures Namespaces Files Functions Variables Pages
UserToken Class Reference
+ Inheritance diagram for UserToken:
+ Collaboration diagram for UserToken:

Public Member Functions

 setHAlg ($hAlg)
 
 setRndSize ($rndSize)
 
 setExpiration ($expiration="")
 
 genToken ()
 
 getToken ()
 
 deleteExpired ()
 
 preUpdate ()
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 AffectColumn ($fields)
 
 Affect ($array)
 
 isAffected ()
 
 Complete ()
 
 PreInsert ()
 
 PostInsert ()
 
 PreUpdate ()
 
 PostUpdate ()
 
 PreDelete ()
 
 PostDelete ()
 
 PreSelect ($id)
 
 PostSelect ($id)
 
 Add ($nopost=false, $nopre=false)
 
 Modify ($nopost=false, $sfields="", $nopre=false)
 
 Delete ($nopost=false)
 
 Adds (&$tcopy, $nopost=false)
 
 lw ($prop)
 
 CloseConnect ()
 
 Create ($nopost=false)
 
 PostInit ()
 
 init_dbid ()
 
 exec_query ($sql, $lvl=0, $prepare=false)
 
 numrows ()
 
 fetch_array ($c, $type=PGSQL_ASSOC)
 
 Update ()
 
 savePoint ($point)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Data Fields

 $Class = '$Id: Class.UserToken.php,v 1.6 2009/01/16 13:33:00 jerome Exp $'
 
 $fields
 
 $id_fields
 
 $dbtable = 'usertoken'
 
 $sqlcreate
 
 $hAlg = 'sha1'
 
 $rndSize = 4
 
 $expiration = 86400
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = null
 
 $debug = false
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 

Detailed Description

Definition at line 24 of file Class.UserToken.php.

Member Function Documentation

deleteExpired ( )

Definition at line 120 of file Class.UserToken.php.

+ Here is the call graph for this function:

genToken ( )

Definition at line 87 of file Class.UserToken.php.

getToken ( )

Definition at line 112 of file Class.UserToken.php.

preUpdate ( )

Definition at line 126 of file Class.UserToken.php.

setExpiration (   $expiration = "")

Definition at line 68 of file Class.UserToken.php.

setHAlg (   $hAlg)

Definition at line 56 of file Class.UserToken.php.

setRndSize (   $rndSize)

Definition at line 62 of file Class.UserToken.php.

Field Documentation

$Class = '$Id: Class.UserToken.php,v 1.6 2009/01/16 13:33:00 jerome Exp $'

Definition at line 26 of file Class.UserToken.php.

$dbtable = 'usertoken'

Definition at line 40 of file Class.UserToken.php.

$expiration = 86400

Definition at line 55 of file Class.UserToken.php.

$fields
Initial value:
= array(
'token',
'userid',
'expire',
'expendable',
'context'
)

Definition at line 28 of file Class.UserToken.php.

$hAlg = 'sha1'

Definition at line 53 of file Class.UserToken.php.

$id_fields
Initial value:
= array(
'token'
)

Definition at line 36 of file Class.UserToken.php.

$rndSize = 4

Definition at line 54 of file Class.UserToken.php.

$sqlcreate
Initial value:
= "
CREATE TABLE usertoken (
token VARCHAR(256) NOT NULL PRIMARY KEY,
userid INT NOT NULL,
expire TIMESTAMP NOT NULL,
expendable BOOLEAN DEFAULT FALSE,
context text
);
CREATE INDEX usertoken_idx ON usertoken(token);
"

Definition at line 42 of file Class.UserToken.php.


The documentation for this class was generated from the following file:
← centre documentaire © anakeen - published under CC License - Dynacase