class KalturaPlaylistService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaPlaylistService
Expanded class hierarchy of KalturaPlaylistService
File
- kaltura_client/
KalturaClient.php, line 4209
View source
class KalturaPlaylistService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add(KalturaPlaylist $playlist, $updateStats = false) {
$kparams = array();
$this->client
->addParam($kparams, "playlist", $playlist
->toParams());
$this->client
->addParam($kparams, "updateStats", $updateStats);
$this->client
->queueServiceActionCall("playlist", "add", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function get($id, $version = -1) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "version", $version);
$this->client
->queueServiceActionCall("playlist", "get", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function update($id, KalturaPlaylist $playlist, $updateStats = false) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "playlist", $playlist
->toParams());
$this->client
->addParam($kparams, "updateStats", $updateStats);
$this->client
->queueServiceActionCall("playlist", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
function delete($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("playlist", "delete", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "null");
return $resultObject;
}
function listAction(KalturaPlaylistFilter $filter = null, KalturaFilterPager $pager = null) {
$kparams = array();
if ($filter !== null) {
$this->client
->addParam($kparams, "filter", $filter
->toParams());
}
if ($pager !== null) {
$this->client
->addParam($kparams, "pager", $pager
->toParams());
}
$this->client
->queueServiceActionCall("playlist", "list", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylistListResponse");
return $resultObject;
}
function execute($id, $detailed = false) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "detailed", $detailed);
$this->client
->queueServiceActionCall("playlist", "execute", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function executeFromContent($playlistType, $playlistContent, $detailed = false) {
$kparams = array();
$this->client
->addParam($kparams, "playlistType", $playlistType);
$this->client
->addParam($kparams, "playlistContent", $playlistContent);
$this->client
->addParam($kparams, "detailed", $detailed);
$this->client
->queueServiceActionCall("playlist", "executeFromContent", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "array");
return $resultObject;
}
function getStatsFromContent($playlistType, $playlistContent) {
$kparams = array();
$this->client
->addParam($kparams, "playlistType", $playlistType);
$this->client
->addParam($kparams, "playlistContent", $playlistContent);
$this->client
->queueServiceActionCall("playlist", "getStatsFromContent", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaPlaylist");
return $resultObject;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function | |||
KalturaPlaylistService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |
||
KalturaServiceBase:: |
protected | property | * |