PHP Класс RTMediaNotification, rtMedia

Автор: Jignesh Nakrani ([email protected])
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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