ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
Manage data for ilMembershipCronNotifications cron job. More...
Public Member Functions | |
__construct (int $last_run, string $cron_id) | |
getAggregatedNews () | |
Get aggregated news. More... | |
getLikes (int $news_id, int $user_id) | |
Get likes for a news and user. More... | |
getComments (int $news_id, int $user_id) | |
Get comments for a news and user. More... | |
Protected Member Functions | |
load () | |
Load. More... | |
checkMissingNews (int $user_id, int $ref_id, int $news_id) | |
Get missing news*. More... | |
loadMissingNews () | |
Load missing news (news for new likes and/or comments) More... | |
getObjectsForRefId (int $a_ref_id) | |
Get subtree object IDs for ref id. More... | |
ping () | |
Ping. More... | |
Protected Attributes | |
Service | $notes |
int | $last_run_unix |
string | $last_run_date |
string | $cron_id |
ilLogger | $log |
array | $objects = [] |
array | $news = [] |
array | $news_per_user = [] |
array | $user_news_aggr = [] |
news array (may include aggregated news which contains news as subitems) More... | |
array | $likes = [] |
array | $comments = [] |
array | $missing_news_per_user = [] |
array | $missing_news = [] |
ilAccessHandler | $access |
Manage data for ilMembershipCronNotifications cron job.
Definition at line 30 of file class.ilMembershipCronNotificationsData.php.
ilMembershipCronNotificationsData::__construct | ( | int | $last_run, |
string | $cron_id | ||
) |
Definition at line 59 of file class.ilMembershipCronNotificationsData.php.
References $cron_id, $DIC, ILIAS\Repository\access(), ilLoggerFactory\getLogger(), and load().
|
protected |
Get missing news*.
Definition at line 219 of file class.ilMembershipCronNotificationsData.php.
References $ref_id, $user_id, and null.
Referenced by load().
ilMembershipCronNotificationsData::getAggregatedNews | ( | ) |
Get aggregated news.
Definition at line 297 of file class.ilMembershipCronNotificationsData.php.
References $user_news_aggr.
ilMembershipCronNotificationsData::getComments | ( | int | $news_id, |
int | $user_id | ||
) |
Get comments for a news and user.
Definition at line 316 of file class.ilMembershipCronNotificationsData.php.
References $user_id.
ilMembershipCronNotificationsData::getLikes | ( | int | $news_id, |
int | $user_id | ||
) |
Get likes for a news and user.
Definition at line 305 of file class.ilMembershipCronNotificationsData.php.
References $user_id.
|
protected |
Get subtree object IDs for ref id.
Definition at line 255 of file class.ilMembershipCronNotificationsData.php.
References $DIC.
Referenced by load().
|
protected |
Load.
Definition at line 76 of file class.ilMembershipCronNotificationsData.php.
References $access, $c, $ref_id, $user_id, checkMissingNews(), ilMembershipNotifications\getActiveUsersforAllObjects(), getObjectsForRefId(), 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 $news, $r, $ref_id, $user_id, and ilNewsItem\queryNewsByIds().
Referenced by load().
|
protected |
Ping.
Definition at line 287 of file class.ilMembershipCronNotificationsData.php.
References $DIC.
Referenced by load().
|
protected |
Definition at line 57 of file class.ilMembershipCronNotificationsData.php.
Referenced by load().
|
protected |
Definition at line 53 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 38 of file class.ilMembershipCronNotificationsData.php.
Referenced by __construct().
|
protected |
Definition at line 37 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 36 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 52 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 39 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 55 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 54 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 41 of file class.ilMembershipCronNotificationsData.php.
Referenced by loadMissingNews().
|
protected |
Definition at line 46 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 32 of file class.ilMembershipCronNotificationsData.php.
|
protected |
Definition at line 40 of file class.ilMembershipCronNotificationsData.php.
|
protected |
news array (may include aggregated news which contains news as subitems)
Definition at line 51 of file class.ilMembershipCronNotificationsData.php.
Referenced by getAggregatedNews().