ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Manage data for ilMembershipCronNotifications cron job. More...
Public Member Functions | |
__construct ($last_run, $cron_id) | |
getAggregatedNews () | |
Get aggregated news. More... | |
getLikes ($news_id, $user_id) | |
Get likes for a news and user. More... | |
getComments ($news_id, $user_id) | |
Get comments for a news and user. More... | |
Protected Member Functions | |
load () | |
Load. More... | |
checkMissingNews ($user_id, $ref_id, $news_id) | |
Get missing news. More... | |
loadMissingNews () | |
Load missing news (news for new likes and/or comments) More... | |
getObjectsForRefId ($a_ref_id) | |
Get subtree object IDs for ref id. More... | |
ping () | |
Ping. More... | |
Protected Attributes | |
$last_run | |
$cron_id | |
$log | |
$objects | |
$news = array() | |
$news_per_user | |
$user_news_aggr = array() | |
$likes = array() | |
$comments = array() | |
$missing_news_per_user = array() | |
$missing_news = array() | |
Manage data for ilMembershipCronNotifications cron job.
Definition at line 11 of file class.ilMembershipCronNotificationsData.php.
ilMembershipCronNotificationsData::__construct | ( | $last_run, | |
$cron_id | |||
) |
Definition at line 56 of file class.ilMembershipCronNotificationsData.php.
References $cron_id, $DIC, $last_run, ilLoggerFactory\getLogger(), and load().
|
protected |
Get missing news.
int | $user_id | |
int | $ref_id | |
int | $news_id |
Definition at line 219 of file class.ilMembershipCronNotificationsData.php.
Referenced by load().
ilMembershipCronNotificationsData::getAggregatedNews | ( | ) |
Get aggregated news.
Definition at line 300 of file class.ilMembershipCronNotificationsData.php.
References $user_news_aggr.
ilMembershipCronNotificationsData::getComments | ( | $news_id, | |
$user_id | |||
) |
Get comments for a news and user.
int | $news_id | |
int | $user_id |
Definition at line 327 of file class.ilMembershipCronNotificationsData.php.
ilMembershipCronNotificationsData::getLikes | ( | $news_id, | |
$user_id | |||
) |
Get likes for a news and user.
int | $news_id | |
int | $user_id |
Definition at line 312 of file class.ilMembershipCronNotificationsData.php.
|
protected |
|
protected |
Load.
Definition at line 71 of file class.ilMembershipCronNotificationsData.php.
References $c, $i, $n, ilNote\_getAllNotesOfSingleRepObject(), checkMissingNews(), ilMembershipNotifications\getActiveUsersforAllObjects(), getObjectsForRefId(), IL_NOTE_PUBLIC, loadMissingNews(), and ping().
Referenced by __construct().
|
protected |
Load missing news (news for new likes and/or comments)
Definition at line 233 of file class.ilMembershipCronNotificationsData.php.
References $n, $news, $r, and ilNewsItem\queryNewsByIds().
Referenced by load().
|
protected |
Ping.
Definition at line 290 of file class.ilMembershipCronNotificationsData.php.
References ilCronManager\ping().
Referenced by load().
|
protected |
Definition at line 45 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 15 of file class.ilMembershipCronNotificationsData.php.
Referenced by __construct().
|
protected |
Definition at line 13 of file class.ilMembershipCronNotificationsData.php.
Referenced by __construct().
|
protected |
Definition at line 40 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 17 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 49 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 47 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 24 of file class.ilMembershipCronNotificationsData.php.
Referenced by loadMissingNews().
|
protected |
Definition at line 29 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 19 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 35 of file class.ilMembershipCronNotificationsData.php.
Referenced by getAggregatedNews().