PHP Class SessionRequest

Show file Open project: sourcefabric/newscoop

Public Methods

Method Description
Create ( $p_sessionId, &$p_objectId, $p_objectTypeId = null, $p_userId = null, $p_updateStats = false )
UpdateStats ( integer $p_sessionId, integer $p_objectId ) : boolean Writes the statistics (when article read).

Method Details

Create() public static method

public static Create ( $p_sessionId, &$p_objectId, $p_objectTypeId = null, $p_userId = null, $p_updateStats = false )

UpdateStats() public static method

Writes the statistics (when article read).
public static UpdateStats ( integer $p_sessionId, integer $p_objectId ) : boolean
$p_sessionId integer used for not writing the stats multiple times
$p_objectId integer the article object whose stats shall be updated
return boolean