PHP Class RTMediaBuddyPressActivity, rtMedia

Author: faishal
Show file Open project: rtCamp/rtMedia

Public Methods

Method Description
__construct ( )
activity_after_media_comment ( $params ) Create BuddyPress activity when user comment on media
activity_after_media_like ( $obj ) Create BP activity when user like and delete associated activity when user remove like.
bp_activity_deleted_activities ( $activity_ids_deleted )
bp_activity_posted_update ( $content, $user_id, $activity_id )
bp_after_activity_post_form ( )
bp_get_activity_parent_content ( $content )
bp_groups_posted_update ( $content, $user_id, $group_id, $activity_id )
bp_prefetch_activity_object_data ( $activities ) To add dynamic activity actions for translation of activity items
comment_sync ( $comment_id, $param )
delete_comment_sync ( $activity_id, $comment_id )
manage_user_last_activity_update ( $content, $user_id, $activity_id ) Update bp_latest_update user meta with lasted public update.
non_threaded_comments ( )
override_allowed_tags ( $activity_allowedtags )
remove_activity_after_media_comment_delete ( $comment_id ) Remove activity when comment on media is deleted
rtm_bp_activity_permalink_access ( boolean $args ) : boolean To check user has access to view single activity
rtm_bp_activity_user_can_delete ( boolean $can_delete, object $activity ) : boolean To check whether user can delete the activity or not

Method Details

__construct() public method

public __construct ( )

activity_after_media_comment() public method

Create BuddyPress activity when user comment on media
public activity_after_media_comment ( $params )
$params array

activity_after_media_like() public method

Create BP activity when user like and delete associated activity when user remove like.
public activity_after_media_like ( $obj )
$obj RTMediaLike

bp_activity_deleted_activities() public method

public bp_activity_deleted_activities ( $activity_ids_deleted )

bp_activity_posted_update() public method

public bp_activity_posted_update ( $content, $user_id, $activity_id )

bp_after_activity_post_form() public method

bp_get_activity_parent_content() public method

public bp_get_activity_parent_content ( $content )

bp_groups_posted_update() public method

public bp_groups_posted_update ( $content, $user_id, $group_id, $activity_id )

bp_prefetch_activity_object_data() public method

To add dynamic activity actions for translation of activity items
public bp_prefetch_activity_object_data ( $activities )
$activities

comment_sync() public method

public comment_sync ( $comment_id, $param )

delete_comment_sync() public method

public delete_comment_sync ( $activity_id, $comment_id )

manage_user_last_activity_update() public method

Update bp_latest_update user meta with lasted public update.
public manage_user_last_activity_update ( $content, $user_id, $activity_id )
$content
$user_id
$activity_id

non_threaded_comments() public method

override_allowed_tags() public method

public override_allowed_tags ( $activity_allowedtags )

remove_activity_after_media_comment_delete() public method

Remove activity when comment on media is deleted
public remove_activity_after_media_comment_delete ( $comment_id )
$comment_id

rtm_bp_activity_user_can_delete() public method

To check whether user can delete the activity or not
Since: 4.0.2
public rtm_bp_activity_user_can_delete ( boolean $can_delete, object $activity ) : boolean
$can_delete boolean Whether the user can delete the item.
$activity object Current activity item object.
return boolean $can_delete