Property | Type | Description | |
---|---|---|---|
$component_action | |||
$component_id |
Method | Description | |
---|---|---|
__construct ( ) | ||
add_like_notify ( RTMediaLike $likeargs ) | add notification using bp_notifications_add_notification function delete and merge likes if already same notification exist on a media | |
fetch_media_like_stats ( integer $media_id ) : integer | Get like count of a media | |
format_like_notifications ( array $params ) : string/array | Format string and media url for notification | |
init ( ) | Hooked to bp_init. |
public add_like_notify ( RTMediaLike $likeargs ) | ||
$likeargs | RTMediaLike | RTMediaLike class object |
public fetch_media_like_stats ( integer $media_id ) : integer | ||
$media_id | integer | MediaID to count likes |
return | integer | Total like count on success or false |
public format_like_notifications ( array $params ) : string/array | ||
$params | array | array ('action', 'post_id', 'initiator_id', 'total_items', 'format' ) |
return | string/array |