Class ilChatInvitations. More...
Public Member Functions | |
| ilChatInvitations () | |
| Constructor. | |
| _countNewInvitations ($a_user_id) | |
Class ilChatInvitations.
Definition at line 32 of file class.ilChatInvitations.php.
| ilChatInvitations::_countNewInvitations | ( | $ | a_user_id | ) |
Definition at line 42 of file class.ilChatInvitations.php.
References $ilias.
Referenced by ilMainMenuGUI::setTemplateVars().
{
global $ilDB, $ilias;
if (!$a_user_id)
{
return 0;
}
$q = "SELECT count(*) as invitations FROM chat_invitations WHERE guest_id = ".$ilDB->quote($a_user_id)." ".
"AND guest_informed = 0 ".
"AND invitation_time > ".(time() - 2 * 60 * 60)." ";
$row = $ilias->db->getRow($q,DB_FETCHMODE_OBJECT);
return $row->invitations;
}
Here is the caller graph for this function:| ilChatInvitations::ilChatInvitations | ( | ) |
1.7.1