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->streamSuffix = (string) $xml->streamSuffix; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (!empty($xml->readonly)) { $this->readonly = true; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->flashVersion)) { $this->flashVersion = (int) $xml->flashVersion; } if (!empty($xml->poly2Bitmap)) { $this->poly2Bitmap = true; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->flavorParamsId)) { $this->flavorParamsId = (int) $xml->flavorParamsId; } $this->commandLinesStr = (string) $xml->commandLinesStr; $this->flavorParamsVersion = (string) $xml->flavorParamsVersion; $this->flavorAssetId = (string) $xml->flavorAssetId; $this->flavorAssetVersion = (string) $xml->flavorAssetVersion; if (count($xml->readyBehavior)) { $this->readyBehavior = (int) $xml->readyBehavior; } }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } if (count($xml->densityWidth)) { $this->densityWidth = (int) $xml->densityWidth; } if (count($xml->densityHeight)) { $this->densityHeight = (int) $xml->densityHeight; } if (count($xml->sizeWidth)) { $this->sizeWidth = (int) $xml->sizeWidth; } if (count($xml->sizeHeight)) { $this->sizeHeight = (int) $xml->sizeHeight; } if (count($xml->depth)) { $this->depth = (int) $xml->depth; } }
/** * Update Flavor Params by ID * * * @return \Kaltura\Client\Type\FlavorParams */ function update($id, \Kaltura\Client\Type\FlavorParams $flavorParams) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "flavorParams", $flavorParams->toParams()); $this->client->queueServiceActionCall("flavorparams", "update", "KalturaFlavorParams", $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, "KalturaFlavorParams"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\FlavorParams"); return $resultObject; }