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->resource)) { $this->resource = \Kaltura\Client\ParseUtils::unmarshalObject($xml->resource, "KalturaContentResource"); } if (count($xml->assetParamsId)) { $this->assetParamsId = (int) $xml->assetParamsId; } }
/** * 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; }