function KalturaHelpers::getSimpleEditorFlashVars in Kaltura 6
Same name and namespace in other branches
- 5 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
- 6.2 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
- 7.3 kaltura_client/kaltura_helpers.php \KalturaHelpers::getSimpleEditorFlashVars()
- 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
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;
}