function setContent($id, Kaltura_Client_Type_ContentResource $contentResource) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "contentResource", $contentResource->toParams()); $this->client->queueServiceActionCall("attachment_attachmentasset", "setContent", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Attachment_Type_AttachmentAsset"); return $resultObject; }
function setContent($id, Kaltura_Client_Type_ContentResource $contentResource) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "contentResource", $contentResource->toParams()); $this->client->queueServiceActionCall("flavorasset", "setContent", "KalturaFlavorAsset", $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, "KalturaFlavorAsset"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_FlavorAsset"); return $resultObject; }
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; } $this->assetId = (string) $xml->assetId; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->entryId = (string) $xml->entryId; if (count($xml->flavorParamsId)) { $this->flavorParamsId = (int) $xml->flavorParamsId; } }
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->resources)) { $this->resources = array(); } else { $this->resources = Kaltura_Client_ParseUtils::unmarshalArray($xml->resources, "KalturaRemoteStorageResource"); } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->fileSyncObjectType)) { $this->fileSyncObjectType = (int) $xml->fileSyncObjectType; } if (count($xml->objectSubType)) { $this->objectSubType = (int) $xml->objectSubType; } $this->objectId = (string) $xml->objectId; $this->version = (string) $xml->version; }
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 (empty($xml->operationAttributes)) { $this->operationAttributes = array(); } else { $this->operationAttributes = Kaltura_Client_ParseUtils::unmarshalArray($xml->operationAttributes, "KalturaOperationAttributes"); } if (count($xml->assetParamsId)) { $this->assetParamsId = (int) $xml->assetParamsId; } }