◆ getCount()
static getCount |
( |
|
$parent_id, |
|
|
|
$visitdate |
|
) |
| |
|
static |
return number of new entries since last visit up to 3 month ago
- Parameters
-
string | $parent_id | the seminar_id for the entries |
string | $visitdate | count 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_id | the 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_id | the 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
-
◆ setVisitdates()
static setVisitdates |
( |
|
$seminar_id | ) |
|
|
static |
Stores the visitdate in last_visitdate and sets the current time for as new visitdate
- Parameters
-
string | $seminar_id | the seminar that has been entered |
◆ 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: