PHP 클래스 RTMediaNotification, rtMedia

저자: Jignesh Nakrani ([email protected])
파일 보기 프로젝트 열기: rtCamp/rtMedia 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$component_action
$component_callback
$component_id
$component_slug

공개 메소드들

메소드 설명
__construct ( $args )
add_notification ( integer $post_id, integer $post_author_id, integer $user_id ) : integer | boolean
delete_notification_by_item_id ( integer $post_author_id, integer $post_id ) deletes existing media notification of a perticular user
mark_notification_unread ( integer $media_id ) mark related notification as read once media is visit by user
notifier_setup_globals ( ) register a new component for notifications

메소드 상세

__construct() 공개 메소드

public __construct ( $args )

add_notification() 공개 메소드

public add_notification ( integer $post_id, integer $post_author_id, integer $user_id ) : integer | boolean
$post_id integer
$post_author_id integer
$user_id integer
리턴 integer | boolean notification id on success or false

delete_notification_by_item_id() 공개 메소드

deletes existing media notification of a perticular user
public delete_notification_by_item_id ( integer $post_author_id, integer $post_id )
$post_author_id integer Author of post
$post_id integer ID of a post to delete related notification

mark_notification_unread() 공개 메소드

mark related notification as read once media is visit by user
public mark_notification_unread ( integer $media_id )
$media_id integer ID of media to mark notification as read

notifier_setup_globals() 공개 메소드

register a new component for notifications

프로퍼티 상세

$component_action 공개적으로 프로퍼티

public $component_action

$component_callback 공개적으로 프로퍼티

public $component_callback

$component_id 공개적으로 프로퍼티

public $component_id

$component_slug 공개적으로 프로퍼티

public $component_slug