Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
ForumVisit Class Reference

Static Public Member Functions

static getCount ($parent_id, $visitdate)
 
static setVisit ($seminar_id)
 
static setVisitdates ($seminar_id)
 
static getLastVisit ($seminar_id)
 
static getVisit ($seminar_id)
 

Data Fields

const LAST_VISIT_MAX = 7776000
 

Member Function Documentation

static getCount (   $parent_id,
  $visitdate 
)
static

return number of new entries since last visit up to 3 month ago

Parameters
string$parent_idthe seminar_id for the entries
string$visitdatecount all entries newer than this timestamp
Returns
int the number of entries
static getLastVisit (   $seminar_id)
static

return the last_visitdate for the passed seminar and currently logged in user

Parameters
string$seminar_idthe seminar to get the last_visitdate for
Returns
int a timestamp
static getVisit (   $seminar_id)
static

return the visitdate for the passed seminar and currently logged in user

Parameters
string$seminar_idthe seminar to get the visitdate for
Returns
int a timestamp
static setVisit (   $seminar_id)
static

Set the seminar denoted by the passed id as visited by the currently logged in user

Parameters
string$seminar_id
static setVisitdates (   $seminar_id)
static

Stores the visitdate in last_visitdate and sets the current time for as new visitdate

Parameters
string$seminar_idthe seminar that has been entered

Field Documentation

const LAST_VISIT_MAX = 7776000

This is the maximum number of seconds that unread entries are marked as new.


The documentation for this class was generated from the following file: