ForumHolder::new_posts_available
Are new posts available?
Signature
public function new_posts_available(int
$id,
[array&
$data = ,
[int
$lastVisit = NULL,
[int
$lastPostID = NULL,
[
$forumID = NULL,
[
$threadID = NULL]]]]] )
Parameters
$id
—
int
$data
—
array
- Optional: If an array is passed, the timestamp of
the last created post and it's ID will be stored in
it (keys: 'last_id', 'last_created')
$lastVisit
—
int
- Unix timestamp of the last visit (GMT)
$lastPostID
—
int
- ID of the last read post
$forumID
—
$threadID
—
Returns
- bool
- Returns TRUE if there are new posts available, otherwise
FALSE.