PHP Class RTMediaLikeNotification, rtMedia

Author: Jignesh Nakrani ([email protected])
Inheritance: extends RTMediaNotification
Afficher le fichier Open project: rtCamp/rtMedia

Méthodes publiques

Свойство Type Description
$component_action
$component_id

Méthodes publiques

Méthode 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.

Method Details

__construct() public méthode

public __construct ( )

add_like_notify() public méthode

add notification using bp_notifications_add_notification function delete and merge likes if already same notification exist on a media
public add_like_notify ( RTMediaLike $likeargs )
$likeargs RTMediaLike RTMediaLike class object

fetch_media_like_stats() public méthode

Get like count of a media
public fetch_media_like_stats ( integer $media_id ) : integer
$media_id integer MediaID to count likes
Résultat integer Total like count on success or false

format_like_notifications() public méthode

Format string and media url for notification
public format_like_notifications ( array $params ) : string/array
$params array array ('action', 'post_id', 'initiator_id', 'total_items', 'format' )
Résultat string/array

init() public méthode

Hooked to bp_init.
public init ( )

Property Details

$component_action public_oe property

public $component_action

$component_id public_oe property

public $component_id