DiogenesCoreLogger Class Reference

Inheritance diagram for DiogenesCoreLogger:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 DiogenesCoreLogger ($uid, $suid='', $auth='', $sauth='')
 writeSession ($uid, $suid, $auth, $sauth)
 readActions ()
 log ($action, $data="")
 debug ()

Public Attributes

 $uid
 $session
 $actions
 $table_actions
 $table_events
 $table_sessions

Detailed Description

class for logging user activity

Definition at line 25 of file diogenes.core.logger.inc.php.


Member Function Documentation

DiogenesCoreLogger::DiogenesCoreLogger ( uid,
suid = '',
auth = '',
sauth = '' 
)

The constructor, creates a new entry in the sessions table

Parameters:
$uid the id of the logged user
$suid the id of the administrator who has just su'd to the user
$auth authentication method for the logged user
$sauth authentication method for the su'er
Returns:
VOID

Definition at line 48 of file diogenes.core.logger.inc.php.

References $uid, readActions(), and writeSession().

Referenced by DiogenesWebDAVLogger::DiogenesWebDAVLogger().

Here is the call graph for this function:

DiogenesCoreLogger::writeSession ( uid,
suid,
auth,
sauth 
)

Creates a new session entry in database and return its ID.

Parameters:
$uid the id of the logged user
$suid the id of the administrator who has just su'd to the user
$auth authentication method for the logged user
$sauth authentication method for the su'er
Returns:
session the session id

Reimplemented in DiogenesWebDAVLogger.

Definition at line 73 of file diogenes.core.logger.inc.php.

Referenced by DiogenesCoreLogger().

DiogenesCoreLogger::readActions (  ) 

Reads available actions from database.

Returns:
actions the available actions

Definition at line 98 of file diogenes.core.logger.inc.php.

References $actions.

Referenced by DiogenesCoreLogger().

DiogenesCoreLogger::log ( action,
data = "" 
)

Logs an action and its related data.

Parameters:
$action le type d'action
$data les données (id de liste, etc.)
Returns:
VOID

Definition at line 117 of file diogenes.core.logger.inc.php.

Referenced by DiogenesWebDAVLogger::DiogenesWebDAVLogger().

DiogenesCoreLogger::debug (  ) 

Print out the id for the current session

Returns:
VOID

Definition at line 129 of file diogenes.core.logger.inc.php.


Member Data Documentation

DiogenesCoreLogger::$uid

user id

Definition at line 27 of file diogenes.core.logger.inc.php.

Referenced by DiogenesCoreLogger(), DiogenesWebDAVLogger::DiogenesWebDAVLogger(), and DiogenesWebDAVLogger::writeSession().

DiogenesCoreLogger::$session

id of the session

Definition at line 29 of file diogenes.core.logger.inc.php.

Referenced by DiogenesWebDAVLogger::writeSession().

DiogenesCoreLogger::$actions

list of available actions

Definition at line 31 of file diogenes.core.logger.inc.php.

Referenced by readActions().

DiogenesCoreLogger::$table_actions

db table holding the list of actions

Definition at line 34 of file diogenes.core.logger.inc.php.

DiogenesCoreLogger::$table_events

db table holding the list of actions

Definition at line 36 of file diogenes.core.logger.inc.php.

DiogenesCoreLogger::$table_sessions

db table holding the list of actions

Definition at line 38 of file diogenes.core.logger.inc.php.


The documentation for this class was generated from the following file:
Generated on Fri Jan 11 01:20:09 2008 for Diogenes by  doxygen 1.5.1