PHP 클래스 RTMediaBuddyPressActivity, rtMedia

저자: faishal
파일 보기 프로젝트 열기: rtCamp/rtMedia

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

public __construct ( )

activity_after_media_comment() 공개 메소드

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

activity_after_media_like() 공개 메소드

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 bp_activity_deleted_activities ( $activity_ids_deleted )

bp_activity_posted_update() 공개 메소드

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

bp_after_activity_post_form() 공개 메소드

bp_get_activity_parent_content() 공개 메소드

public bp_get_activity_parent_content ( $content )

bp_groups_posted_update() 공개 메소드

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

bp_prefetch_activity_object_data() 공개 메소드

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

comment_sync() 공개 메소드

public comment_sync ( $comment_id, $param )

delete_comment_sync() 공개 메소드

public delete_comment_sync ( $activity_id, $comment_id )

manage_user_last_activity_update() 공개 메소드

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() 공개 메소드

override_allowed_tags() 공개 메소드

public override_allowed_tags ( $activity_allowedtags )

remove_activity_after_media_comment_delete() 공개 메소드

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() 공개 메소드

To check whether user can delete the activity or not
부터: 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.
리턴 boolean $can_delete