/** * Update annotation by id * * * @return \Kaltura\Client\Plugin\Annotation\Type\Annotation */ function update($id, \Kaltura\Client\Plugin\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\\Plugin\\Annotation\\Type\\Annotation"); return $resultObject; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->eventType = (string) $xml->eventType; }
public function __construct(\SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->assetId = (string) $xml->assetId; $this->description = (string) $xml->description; $this->title = (string) $xml->title; if (count($xml->subType)) { $this->subType = (int) $xml->subType; } }
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; } }