Merge branch 'pm_wysiwyg'
This commit is contained in:
@@ -522,6 +522,9 @@ try {
|
||||
case 'events':
|
||||
$oProcessMap->eventsList( $oData->pro_uid, $oData->type );
|
||||
break;
|
||||
/**
|
||||
* returns an array with all Dynaforms Fields
|
||||
*/
|
||||
case 'getVariableList':
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
$proUid= isset( $_REQUEST['process'] )?$_REQUEST['process']:'';
|
||||
@@ -548,10 +551,48 @@ try {
|
||||
}
|
||||
echo Bootstrap::json_encode( $aVariables );
|
||||
break;
|
||||
/**
|
||||
* returns the prefix mean
|
||||
*
|
||||
*/
|
||||
case 'getVariablePrefix':
|
||||
$_REQUEST['prefix'] = $_REQUEST['prefix']!=null?$_REQUEST['prefix']:'ID_TO_STRING';
|
||||
echo G::LoadTranslation($_REQUEST['prefix']);
|
||||
break;
|
||||
/**
|
||||
* return an array with all Variables of Grid type
|
||||
*/
|
||||
case 'getGridList':
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
$proUid= isset( $_REQUEST['PRO_UID'] )?$_REQUEST['PRO_UID']:'';
|
||||
|
||||
$aFields = getGridsVars( $proUid );
|
||||
|
||||
$aVariables = array();
|
||||
foreach ($aFields as $key => $value){
|
||||
$aVariables[] = $aFields[$key];
|
||||
}
|
||||
echo Bootstrap::json_encode( $aVariables );
|
||||
break;
|
||||
/**
|
||||
* return an array with all Grid Variables according to Grid
|
||||
*/
|
||||
case 'getVariableGrid':
|
||||
G::LoadClass('xmlfield_InputPM');
|
||||
|
||||
$proUid= isset( $_REQUEST['PRO_UID'] )?$_REQUEST['PRO_UID']:'';
|
||||
$dynUid= isset( $_REQUEST['DYN_UID'] )?$_REQUEST['DYN_UID']:'';
|
||||
|
||||
$aFields = getVarsGrid($proUid, $dynUid);
|
||||
|
||||
$aVariables = array();
|
||||
|
||||
foreach ($aFields as $key => $value) {
|
||||
$aVariables[] = $key;
|
||||
}
|
||||
|
||||
echo Bootstrap::json_encode( $aVariables );
|
||||
break;
|
||||
/*
|
||||
case 'saveFile':
|
||||
global $G_PUBLISH;
|
||||
|
||||
Reference in New Issue
Block a user