Stud.IP  5.4
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

◆ getCount()

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

◆ getLastVisit()

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

◆ getVisit()

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

◆ setVisit()

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

◆ setVisitdates()

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

◆ LAST_VISIT_MAX

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: