You are here

function KalturaClient::addPlaylist in Kaltura 5

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

File

kaltura_client/kaltura_client.php, line 622

Class

KalturaClient

Code

function addPlaylist($kalturaSessionUser, $playlist) {
  $params = array();
  $this
    ->addOptionalParam($params, "playlist_name", $playlist->name);
  $this
    ->addOptionalParam($params, "playlist_tags", $playlist->tags);
  $this
    ->addOptionalParam($params, "playlist_type", $playlist->type);
  $this
    ->addOptionalParam($params, "playlist_mediaType", $playlist->mediaType);
  $this
    ->addOptionalParam($params, "playlist_source", $playlist->source);
  $this
    ->addOptionalParam($params, "playlist_sourceId", $playlist->sourceId);
  $this
    ->addOptionalParam($params, "playlist_sourceLink", $playlist->sourceLink);
  $this
    ->addOptionalParam($params, "playlist_licenseType", $playlist->licenseType);
  $this
    ->addOptionalParam($params, "playlist_credit", $playlist->credit);
  $this
    ->addOptionalParam($params, "playlist_groupId", $playlist->groupId);
  $this
    ->addOptionalParam($params, "playlist_partnerData", $playlist->partnerData);
  $this
    ->addOptionalParam($params, "playlist_conversionQuality", $playlist->conversionQuality);
  $this
    ->addOptionalParam($params, "playlist_permissions", $playlist->permissions);
  $this
    ->addOptionalParam($params, "playlist_dataContent", $playlist->dataContent);
  $this
    ->addOptionalParam($params, "playlist_desiredVersion", $playlist->desiredVersion);
  $this
    ->addOptionalParam($params, "playlist_url", $playlist->url);
  $this
    ->addOptionalParam($params, "playlist_thumbUrl", $playlist->thumbUrl);
  $this
    ->addOptionalParam($params, "playlist_filename", $playlist->filename);
  $this
    ->addOptionalParam($params, "playlist_realFilename", $playlist->realFilename);
  $this
    ->addOptionalParam($params, "playlist_indexedCustomData1", $playlist->indexedCustomData1);
  $this
    ->addOptionalParam($params, "playlist_thumbOffset", $playlist->thumbOffset);
  $this
    ->addOptionalParam($params, "playlist_mediaId", $playlist->mediaId);
  $this
    ->addOptionalParam($params, "playlist_screenName", $playlist->screenName);
  $this
    ->addOptionalParam($params, "playlist_siteUrl", $playlist->siteUrl);
  $this
    ->addOptionalParam($params, "playlist_description", $playlist->description);
  $this
    ->addOptionalParam($params, "playlist_mediaDate", $playlist->mediaDate);
  $this
    ->addOptionalParam($params, "playlist_adminTags", $playlist->adminTags);
  $result = $this
    ->hit("addplaylist", $kalturaSessionUser, $params);
  return $result;
}