You are here

class KalturaDataService in Kaltura 6.2

Hierarchy

Expanded class hierarchy of KalturaDataService

File

kaltura_client/KalturaClient.php, line 3839

View source
class KalturaDataService extends KalturaServiceBase {
  function __construct(KalturaClient $client) {
    parent::__construct($client);
  }
  function add(KalturaDataEntry $dataEntry) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "dataEntry", $dataEntry
      ->toParams());
    $this->client
      ->queueServiceActionCall("data", "add", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaDataEntry");
    return $resultObject;
  }
  function get($entryId, $version = -1) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "entryId", $entryId);
    $this->client
      ->addParam($kparams, "version", $version);
    $this->client
      ->queueServiceActionCall("data", "get", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaDataEntry");
    return $resultObject;
  }
  function update($entryId, KalturaDataEntry $documentEntry) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "entryId", $entryId);
    $this->client
      ->addParam($kparams, "documentEntry", $documentEntry
      ->toParams());
    $this->client
      ->queueServiceActionCall("data", "update", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaDataEntry");
    return $resultObject;
  }
  function delete($entryId) {
    $kparams = array();
    $this->client
      ->addParam($kparams, "entryId", $entryId);
    $this->client
      ->queueServiceActionCall("data", "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(KalturaDataEntryFilter $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("data", "list", $kparams);
    if ($this->client
      ->isMultiRequest()) {
      return null;
    }
    $resultObject = $this->client
      ->doQueue();
    $this->client
      ->throwExceptionIfError($resultObject);
    $this->client
      ->validateObjectType($resultObject, "KalturaDataListResponse");
    return $resultObject;
  }

}

Members