Class ilChatInvitations.
More...
Detailed Description
Class ilChatInvitations.
- Author
- Sascha Hofmann
- Version
- $Id$
Definition at line 32 of file class.ilChatInvitations.php.
Member Function Documentation
static ilChatInvitations::_countNewInvitations |
( |
|
$a_user_id | ) |
|
|
static |
Definition at line 42 of file class.ilChatInvitations.php.
References $ilDB, $res, $row, and DB_FETCHMODE_OBJECT.
{
if (!$a_user_id)
{
return 0;
}
SELECT COUNT(*) invitations FROM chat_invitations
WHERE guest_id = %s
AND guest_informed = %s
AND invitation_time > %s',
array('integer', 'integer', 'integer'),
array($a_user_id, '0', time() - 2 * 60 * 60));
return $row->invitations;
}
static ilChatInvitations::_getNewInvitations |
( |
|
$a_user_id | ) |
|
|
static |
Definition at line 64 of file class.ilChatInvitations.php.
References $ilDB, $res, $row, and DB_FETCHMODE_ASSOC.
Referenced by ilChatInvitationGUI\getHTML().
{
if(!(int)$a_user_id)
{
return array();
}
SELECT * FROM chat_invitations
WHERE guest_id = %s
AND guest_informed = %s
AND invitation_time > %s',
array('integer', 'integer', 'integer'),
array($a_user_id, '0', time() - 2 * 60 * 60));
$rows = array();
{
}
return is_array($rows) ? $rows : array();
}
ilChatInvitations::ilChatInvitations |
( |
| ) |
|
The documentation for this class was generated from the following file: