PHP Class RTMediaNotification, rtMedia

Author: Jignesh Nakrani ([email protected])
Datei anzeigen Open project: rtCamp/rtMedia Class Usage Examples

Public Properties

Property Type Description
$component_action
$component_callback
$component_id
$component_slug

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( $args )

add_notification() public method

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
return integer | boolean notification id on success or false

delete_notification_by_item_id() public method

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() public method

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() public method

register a new component for notifications

Property Details

$component_action public_oe property

public $component_action

$component_callback public_oe property

public $component_callback

$component_id public_oe property

public $component_id

$component_slug public_oe property

public $component_slug