You are here

function KalturaHelpers::getSimpleEditorFlashVars in Kaltura 5

Same name and namespace in other branches
  1. 6.2 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
  2. 6 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
  3. 7.3 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
  4. 7.2 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
1 call to KalturaHelpers::getSimpleEditorFlashVars()
kaltura_simple_editor in includes/kaltura.themeing.inc

File

kaltura_client/kaltura_helpers.php, line 40

Class

KalturaHelpers

Code

function getSimpleEditorFlashVars($ks, $kshowId, $type, $partner_data) {
  $sessionUser = KalturaHelpers::getSessionUser();
  $config = KalturaHelpers::getServiceConfiguration();
  $flashVars = array();
  if ($type == 'entry') {
    $flashVars["entry_id"] = $kshowId;
    $flashVars["kshow_id"] = 'entry-' . $kshowId;
  }
  else {
    $flashVars["entry_id"] = -1;
    $flashVars["kshow_id"] = $kshowId;
  }
  $flashVars["partner_id"] = $config->partnerId;
  $flashVars["partnerData"] = $partner_data;
  $flashVars["subp_id"] = $config->subPartnerId;
  $flashVars["uid"] = $sessionUser->userId;
  $flashVars["ks"] = $ks;
  $flashVars["backF"] = "onSimpleEditorBackClick";
  $flashVars["saveF"] = "onSimpleEditorSaveClick";
  $flashVars["uiConfId"] = KalturaSettings_SE_UICONF_ID;
  return $flashVars;
}