You are here

function KalturaPlaylistService::execute in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4288

Class

KalturaPlaylistService

Code

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;
}