You are here

function KalturaClient::addWidget in Kaltura 6

Same name and namespace in other branches
  1. 5 kaltura_client/kaltura_client.php \KalturaClient::addWidget()

File

kaltura_client/kaltura_client.php, line 736

Class

KalturaClient

Code

function addWidget($kalturaSessionUser, $widget) {
  $params = array();
  $this
    ->addOptionalParam($params, "widget_kshowId", $widget->kshowId);
  $this
    ->addOptionalParam($params, "widget_entryId", $widget->entryId);
  $this
    ->addOptionalParam($params, "widget_sourceWidgetId", $widget->sourceWidgetId);
  $this
    ->addOptionalParam($params, "widget_uiConfId", $widget->uiConfId);
  $this
    ->addOptionalParam($params, "widget_customData", $widget->customData);
  $this
    ->addOptionalParam($params, "widget_partnerData", $widget->partnerData);
  $this
    ->addOptionalParam($params, "widget_securityType", $widget->securityType);
  $result = $this
    ->hit("addwidget", $kalturaSessionUser, $params);
  return $result;
}