public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->resources)) {
         $this->resources = array();
     } else {
         $this->resources = Kaltura_Client_ParseUtils::unmarshalArray($xml->resources, "KalturaAssetParamsResourceContainer");
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->resources)) {
         $this->resources = array();
     } else {
         $this->resources = Kaltura_Client_Client::unmarshalItem($xml->resources);
     }
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->resource)) {
         $this->resource = Kaltura_Client_ParseUtils::unmarshalObject($xml->resource, "KalturaContentResource");
     }
     if (count($xml->assetParamsId)) {
         $this->assetParamsId = (int) $xml->assetParamsId;
     }
 }
 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("baseentry", "updateContent", "KalturaBaseEntry", $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, "KalturaBaseEntry");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_BaseEntry");
     return $resultObject;
 }
 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_documents", "updateContent", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Document_Type_DocumentEntry");
     return $resultObject;
 }