Core  3.2
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

 preInsert ()
 
 setExpiration ($expiration="")
 
 genToken ()
 
 getToken ()
 
 preUpdate ()
 
- Public Member Functions inherited from DbObj
 __construct ($dbaccess= '', $id= '', $res= '', $dbid=0)
 
 Select ($id)
 
 getValues ()
 
 affectColumn ($fields, $reset=true)
 
 affect ($array, $more=false, $reset=true)
 
 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 ()
 
 setError ($moreerr= '')
 
 autoUpdate ()
 
 savePoint ($point)
 
 lockPoint ($exclusiveLock, $exclusiveLockPrefix= '')
 
 setMasterLock ($useLock)
 
 rollbackPoint ($point)
 
 commitPoint ($point)
 

Static Public Member Functions

static getExpirationDate ($delayInSeconds)
 
static deleteExpired ()
 

Data Fields

 $Class = '$Id: Class.UserToken.php,v 1.6 2009/01/16 13:33:00 jerome Exp $'
 
 $fields
 
 $token
 
 $userid
 
 $authorid
 
 $expire
 
 $expendable
 
 $context
 
 $cdate
 
 $description
 
 $type = "CORE"
 
 $id_fields
 
 $dbtable = 'usertoken'
 
 $sqlcreate
 
 $tokenByteLength = 20
 
 $expiration = 86400
 
const INFINITY = "infinity"
 
- Data Fields inherited from DbObj
 $dbid = - 1
 
 $dbaccess = ''
 
 $fields
 
 $dbtable = ''
 
 $id_fields
 
 $criterias = array()
 
 $sup_fields = array()
 
 $sup_where = array()
 
 $sup_tables = array()
 
 $fulltextfields = array()
 
 $order_by = ""
 
 $isset = false
 
 $msg_err = ''
 
 $err_code = ''
 
 $res = ''
 
 $debug = false
 
 $sqlcreate
 
 $sqlinit
 
 $log
 

Additional Inherited Members

- Static Public Attributes inherited from DbObj
static $savepoint = array()
 
static $lockpoint = array()
 
static $sqlStrict = null
 
- Protected Member Functions inherited from DbObj
 tryCreate ()
 

Detailed Description

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

Member Function Documentation

static deleteExpired ( )
static

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

+ Here is the call graph for this function:

genToken ( )

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

static getExpirationDate (   $delayInSeconds)
static

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

getToken ( )

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

preInsert ( )

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

+ Here is the call graph for this function:

preUpdate ( )

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

setExpiration (   $expiration = "")

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

Field Documentation

$authorid

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

$cdate

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

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

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

$context

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

$dbtable = 'usertoken'

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

$description

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

$expendable

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

$expiration = 86400

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

$expire

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

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

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

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

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

$sqlcreate
Initial value:
= "
CREATE TABLE usertoken (
token text NOT NULL PRIMARY KEY,
type text,
cdate timestamp without time zone,
authorid int,
userid INT NOT NULL,
expire TIMESTAMP NOT NULL,
expendable BOOLEAN DEFAULT FALSE,
description text,
context text
);
CREATE INDEX usertoken_idx ON usertoken(token);
"

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

$token

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

$tokenByteLength = 20

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

$type = "CORE"

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

$userid

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

const INFINITY = "infinity"

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


The documentation for this class was generated from the following file:
← centre documentaire © anakeen