function update($id, Kaltura_Client_CuePoint_Type_CuePoint $annotation) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "annotation", $annotation->toParams()); $this->client->queueServiceActionCall("annotation_annotation", "update", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "Kaltura_Client_Annotation_Type_Annotation"); return $resultObject; }
function update($id, Kaltura_Client_CuePoint_Type_CuePoint $annotation) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "annotation", $annotation->toParams()); $this->client->queueServiceActionCall("annotation_annotation", "update", "KalturaAnnotation", $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, "KalturaAnnotation"); $this->client->validateObjectType($resultObject, "Kaltura_Client_Annotation_Type_Annotation"); return $resultObject; }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->code = (string) $xml->code; $this->description = (string) $xml->description; if (count($xml->endTime)) { $this->endTime = (int) $xml->endTime; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->protocolType = (string) $xml->protocolType; $this->sourceUrl = (string) $xml->sourceUrl; $this->adType = (string) $xml->adType; $this->title = (string) $xml->title; if (count($xml->endTime)) { $this->endTime = (int) $xml->endTime; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } }
public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->parentId = (string) $xml->parentId; $this->text = (string) $xml->text; if (count($xml->endTime)) { $this->endTime = (int) $xml->endTime; } if (count($xml->duration)) { $this->duration = (int) $xml->duration; } if (count($xml->depth)) { $this->depth = (int) $xml->depth; } if (count($xml->childrenCount)) { $this->childrenCount = (int) $xml->childrenCount; } if (count($xml->directChildrenCount)) { $this->directChildrenCount = (int) $xml->directChildrenCount; } }