public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->durationLessThan)) {
         $this->durationLessThan = (int) $xml->durationLessThan;
     }
     if (count($xml->durationGreaterThan)) {
         $this->durationGreaterThan = (int) $xml->durationGreaterThan;
     }
     if (count($xml->durationLessThanOrEqual)) {
         $this->durationLessThanOrEqual = (int) $xml->durationLessThanOrEqual;
     }
     if (count($xml->durationGreaterThanOrEqual)) {
         $this->durationGreaterThanOrEqual = (int) $xml->durationGreaterThanOrEqual;
     }
     if (count($xml->msDurationLessThan)) {
         $this->msDurationLessThan = (int) $xml->msDurationLessThan;
     }
     if (count($xml->msDurationGreaterThan)) {
         $this->msDurationGreaterThan = (int) $xml->msDurationGreaterThan;
     }
     if (count($xml->msDurationLessThanOrEqual)) {
         $this->msDurationLessThanOrEqual = (int) $xml->msDurationLessThanOrEqual;
     }
     if (count($xml->msDurationGreaterThanOrEqual)) {
         $this->msDurationGreaterThanOrEqual = (int) $xml->msDurationGreaterThanOrEqual;
     }
     $this->durationTypeMatchOr = (string) $xml->durationTypeMatchOr;
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
 }
 function search(Kaltura_Client_Type_BaseEntryFilter $entryFilter = null, Kaltura_Client_CaptionSearch_Type_CaptionAssetItemFilter $captionAssetItemFilter = null, Kaltura_Client_Type_FilterPager $captionAssetItemPager = null)
 {
     $kparams = array();
     if ($entryFilter !== null) {
         $this->client->addParam($kparams, "entryFilter", $entryFilter->toParams());
     }
     if ($captionAssetItemFilter !== null) {
         $this->client->addParam($kparams, "captionAssetItemFilter", $captionAssetItemFilter->toParams());
     }
     if ($captionAssetItemPager !== null) {
         $this->client->addParam($kparams, "captionAssetItemPager", $captionAssetItemPager->toParams());
     }
     $this->client->queueServiceActionCall("captionsearch_captionassetitem", "search", $kparams);
     if ($this->client->isMultiRequest()) {
         return $this->client->getMultiRequestResult();
     }
     $resultObject = $this->client->doQueue();
     $this->client->throwExceptionIfError($resultObject);
     $this->client->validateObjectType($resultObject, "Kaltura_Client_CaptionSearch_Type_CaptionAssetItemListResponse");
     return $resultObject;
 }
 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->documentTypeEqual)) {
         $this->documentTypeEqual = (int) $xml->documentTypeEqual;
     }
     $this->documentTypeIn = (string) $xml->documentTypeIn;
     $this->assetParamsIdsMatchOr = (string) $xml->assetParamsIdsMatchOr;
     $this->assetParamsIdsMatchAnd = (string) $xml->assetParamsIdsMatchAnd;
 }
 function searchEntries(Kaltura_Client_Type_BaseEntryFilter $entryFilter = null, Kaltura_Client_CaptionSearch_Type_CaptionAssetItemFilter $captionAssetItemFilter = null, Kaltura_Client_Type_FilterPager $captionAssetItemPager = null)
 {
     $kparams = array();
     if ($entryFilter !== null) {
         $this->client->addParam($kparams, "entryFilter", $entryFilter->toParams());
     }
     if ($captionAssetItemFilter !== null) {
         $this->client->addParam($kparams, "captionAssetItemFilter", $captionAssetItemFilter->toParams());
     }
     if ($captionAssetItemPager !== null) {
         $this->client->addParam($kparams, "captionAssetItemPager", $captionAssetItemPager->toParams());
     }
     $this->client->queueServiceActionCall("captionsearch_captionassetitem", "searchEntries", "KalturaBaseEntryListResponse", $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, "KalturaBaseEntryListResponse");
     $this->client->validateObjectType($resultObject, "Kaltura_Client_Type_BaseEntryListResponse");
     return $resultObject;
 }
 function count(Kaltura_Client_Type_BaseEntryFilter $filter = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->queueServiceActionCall("baseentry", "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;
 }
 function count(Kaltura_Client_Type_BaseEntryFilter $filter = null)
 {
     $kparams = array();
     if ($filter !== null) {
         $this->client->addParam($kparams, "filter", $filter->toParams());
     }
     $this->client->queueServiceActionCall("baseentry", "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;
 }