27        $ilDB->manipulate(
"DELETE FROM il_news_subscription WHERE " .
 
   28            " ref_id = " . 
$ilDB->quote($a_ref_id, 
"integer") . 
" " .
 
   29            " AND user_id = " . 
$ilDB->quote($a_user_id, 
"integer"));
 
   30        $ilDB->manipulate(
"INSERT INTO il_news_subscription (ref_id, user_id) VALUES (" .
 
   31            $ilDB->quote($a_ref_id, 
"integer") . 
", " .
 
   32            $ilDB->quote($a_user_id, 
"integer") . 
")");
 
   47        $ilDB->manipulate(
"DELETE FROM il_news_subscription WHERE ref_id  = " .
 
   48            $ilDB->quote($a_ref_id, 
"integer") . 
" AND user_id = " .
 
   49            $ilDB->quote($a_user_id, 
"integer"));
 
   65        $query = 
"SELECT * FROM il_news_subscription WHERE ref_id = " .
 
   66            $ilDB->quote($a_ref_id, 
"integer") . 
" AND user_id = " .
 
   67            $ilDB->quote($a_user_id, 
"integer");
 
   69        if ($rec = 
$ilDB->fetchAssoc($set)) {
 
   89        $query = 
"SELECT * FROM il_news_subscription WHERE user_id = " .
 
   90            $ilDB->quote($a_user_id, 
"integer");
 
   93        while ($rec = 
$ilDB->fetchAssoc($set)) {
 
   94            $ref_ids[] = $rec[
"ref_id"];
 
An exception for terminatinating execution or to throw for unit testing.
This class handles news subscriptions of users.
static _subscribe($a_ref_id, $a_user_id)
Subscribe a user to an object (ref id).
static _hasSubscribed($a_ref_id, $a_user_id)
Check whether user has subscribed to an object.
static _getSubscriptionsOfUser($a_user_id)
Get subscriptions of user.
static _unsubscribe($a_ref_id, $a_user_id)
Unsubscribe a user from an object (ref id).