public function __construct(SimpleXMLElement $xml = null) { parent::__construct($xml); if (is_null($xml)) { return; } $this->codeLike = (string) $xml->codeLike; $this->codeMultiLikeOr = (string) $xml->codeMultiLikeOr; $this->codeMultiLikeAnd = (string) $xml->codeMultiLikeAnd; $this->codeEqual = (string) $xml->codeEqual; $this->codeIn = (string) $xml->codeIn; $this->descriptionLike = (string) $xml->descriptionLike; $this->descriptionMultiLikeOr = (string) $xml->descriptionMultiLikeOr; $this->descriptionMultiLikeAnd = (string) $xml->descriptionMultiLikeAnd; if (count($xml->endTimeGreaterThanOrEqual)) { $this->endTimeGreaterThanOrEqual = (int) $xml->endTimeGreaterThanOrEqual; } if (count($xml->endTimeLessThanOrEqual)) { $this->endTimeLessThanOrEqual = (int) $xml->endTimeLessThanOrEqual; } if (count($xml->durationGreaterThanOrEqual)) { $this->durationGreaterThanOrEqual = (int) $xml->durationGreaterThanOrEqual; } if (count($xml->durationLessThanOrEqual)) { $this->durationLessThanOrEqual = (int) $xml->durationLessThanOrEqual; } }
function count(Kaltura_Client_CuePoint_Type_CuePointFilter $filter = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("annotation_annotation", "count", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "integer"); return $resultObject; }
function count(Kaltura_Client_CuePoint_Type_CuePointFilter $filter = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("annotation_annotation", "count", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); Kaltura_Client_ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) Kaltura_Client_ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }