class KalturaWidgetService in Kaltura 6.2
Hierarchy
- class \KalturaServiceBase
- class \KalturaWidgetService
Expanded class hierarchy of KalturaWidgetService
File
- kaltura_client/
KalturaClient.php, line 4409
View source
class KalturaWidgetService extends KalturaServiceBase {
function __construct(KalturaClient $client) {
parent::__construct($client);
}
function add(KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "add", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function update($id, KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "update", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function get($id) {
$kparams = array();
$this->client
->addParam($kparams, "id", $id);
$this->client
->queueServiceActionCall("widget", "get", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function cloneAction(KalturaWidget $widget) {
$kparams = array();
$this->client
->addParam($kparams, "widget", $widget
->toParams());
$this->client
->queueServiceActionCall("widget", "clone", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidget");
return $resultObject;
}
function listAction(KalturaWidgetFilter $filter = null, KalturaFilterPager $pager = null) {
$kparams = array();
if ($filter !== null) {
$this->client
->addParam($kparams, "filter", $filter
->toParams());
}
if ($pager !== null) {
$this->client
->addParam($kparams, "pager", $pager
->toParams());
}
$this->client
->queueServiceActionCall("widget", "list", $kparams);
if ($this->client
->isMultiRequest()) {
return null;
}
$resultObject = $this->client
->doQueue();
$this->client
->throwExceptionIfError($resultObject);
$this->client
->validateObjectType($resultObject, "KalturaWidgetListResponse");
return $resultObject;
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
KalturaServiceBase:: |
protected | property | * | |
KalturaWidgetService:: |
function | |||
KalturaWidgetService:: |
function | |||
KalturaWidgetService:: |
function | |||
KalturaWidgetService:: |
function | |||
KalturaWidgetService:: |
function | |||
KalturaWidgetService:: |
function |
* Initialize the service keeping reference to the KalturaClient
*
* Overrides KalturaServiceBase:: |