You are here

function kaltura_get_entry in Kaltura 6.2

Wrapper to retrieve a Kaltura Entry.

Used in node_kaltura_entry and field_kaltura to validate that the entry exists on the Kaltura server.

Must be wrapped in try...catch blocks, in order to handle Kaltura exceptions.

@TODO consider a static cache to reduce API hits against Kaltura

3 calls to kaltura_get_entry()
field_kaltura_field in plugins/field_kaltura/field_kaltura.module
Implementation of hook_field().
node_kaltura_entry_validate in plugins/node_kaltura_entry/node_kaltura_entry.module
Implementation of hook_validate().
node_kaltura_mix_validate in plugins/node_kaltura_mix/node_kaltura_mix.module
Implementation of hook_validate().

File

./kaltura.module, line 915
kaltura integration module - core functions

Code

function kaltura_get_entry($entry_id) {
  $kaltura_client = KalturaHelpers::getKalturaClient(0);
  $result = $kaltura_client->baseEntry
    ->get($entry_id);
  return $result;
}