class KalturaSearchService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaSearchService
Expanded class hierarchy of KalturaSearchService
File
- kaltura_client/
KalturaClient.php, line 4486
View source
class KalturaSearchService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function search(KalturaSearch $search, KalturaFilterPager $pager = null) {
$kparams = array();
$this->client
->addParam($kparams, "search", $search
->toParams());
if ($pager !== null) {
$this->client
->addParam($kparams, "pager", $pager
->toParams());
}
$this->client
->queueServiceActionCall("search", "search", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResultResponse");
return $resultObject;
}
function getMediaInfo(KalturaSearchResult $searchResult) {
$kparams = array();
$this->client
->addParam($kparams, "searchResult", $searchResult
->toParams());
$this->client
->queueServiceActionCall("search", "getMediaInfo", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResult");
return $resultObject;
}
function searchUrl($mediaType, $url) {
$kparams = array();
$this->client
->addParam($kparams, "mediaType", $mediaType);
$this->client
->addParam($kparams, "url", $url);
$this->client
->queueServiceActionCall("search", "searchUrl", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchResult");
return $resultObject;
}
function externalLogin($searchSource, $userName, $password) {
$kparams = array();
$this->client
->addParam($kparams, "searchSource", $searchSource);
$this->client
->addParam($kparams, "userName", $userName);
$this->client
->addParam($kparams, "password", $password);
$this->client
->queueServiceActionCall("search", "externalLogin", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaSearchAuthData");
return $resultObject;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaSearchService:: |
function | |||
KalturaSearchService:: |
function | |||
KalturaSearchService:: |
function | |||
KalturaSearchService:: |
function | |||
KalturaSearchService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |
||
KalturaServiceBase:: |
protected | property | * |