function kaltura_notify_entry_add in Kaltura 7.3
Same name and namespace in other branches
- 7.2 includes/kaltura.notification.inc \kaltura_notify_entry_add()
Adds entry to the kaltura table via notification.
Parameters
mixed $type:
mixed $notification_data:
1 call to kaltura_notify_entry_add()
- kaltura_forward_notification in includes/
kaltura.notification.inc - Checks the notification type and forwards the notification to the appropriate function.
File
- includes/
kaltura.notification.inc, line 209 - Contains functions for handling all notifications from kaltura.
Code
function kaltura_notify_entry_add($type, $notification_data) {
$entry = kaltura_mk_karray($notification_data);
// We have no way to figure out when the entry was created on the KMC
// so the create date is when we received the notification.
$entry['kaltura_created_date'] = REQUEST_TIME;
$entity = kaltura_entry_create($entry);
kaltura_entry_save($entity);
}