You are here

function KalturaBaseEntryService::addFromUploadedFile in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 3924

Class

KalturaBaseEntryService

Code

function addFromUploadedFile(KalturaBaseEntry $entry, $uploadTokenId, $type = -1) {
  $kparams = array();
  $this->client
    ->addParam($kparams, "entry", $entry
    ->toParams());
  $this->client
    ->addParam($kparams, "uploadTokenId", $uploadTokenId);
  $this->client
    ->addParam($kparams, "type", $type);
  $this->client
    ->queueServiceActionCall("baseentry", "addFromUploadedFile", $kparams);
  if ($this->client
    ->isMultiRequest()) {
    return null;
  }
  $resultObject = $this->client
    ->doQueue();
  $this->client
    ->throwExceptionIfError($resultObject);
  $this->client
    ->validateObjectType($resultObject, "KalturaBaseEntry");
  return $resultObject;
}