コード例 #1
0
 /**
  * Replace content associated with the given document entry.
  * 	 
  * 
  * @return \Kaltura\Client\Plugin\Document\Type\DocumentEntry
  */
 function updateContent($entryId, \Kaltura\Client\Type\Resource $resource, $conversionProfileId = null)
 {
     $kparams = array();
     $this->client->addParam($kparams, "entryId", $entryId);
     $this->client->addParam($kparams, "resource", $resource->toParams());
     $this->client->addParam($kparams, "conversionProfileId", $conversionProfileId);
     $this->client->queueServiceActionCall("document", "updateContent", "KalturaDocumentEntry", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultXml = $this->client->doQueue();
     $resultXmlObject = new \SimpleXMLElement($resultXml);
     \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result);
     $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaDocumentEntry");
     $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\Document\\Type\\DocumentEntry");
     return $resultObject;
 }