You are here

function KalturaWidgetService::update in Kaltura 6.2

File

kaltura_client/KalturaClient.php, line 4429

Class

KalturaWidgetService

Code

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;
}