Exemplo n.º 1
0
 case 'addGuide':
     $sOutput = $oProcessMap->addGuide($oData->uid, $oData->position, $oData->direction);
     $sOutputAux = G::json_decode($sOutput);
     $sOutputAux = (array)$sOutputAux;
     G::auditLog('Add'.ucwords($oDataAux['direction']).'Line','Add '.$oDataAux['direction'].' line ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'saveGuidePosition':
     $sOutput = $oProcessMap->saveGuidePosition($oData->uid, $oData->position, $oData->direction);
     G::auditLog('SaveGuidePosition','Change '.$oData->direction.' line position  ('.$oData->uid.') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'deleteGuide':
     $sOutput = $oProcessMap->deleteGuide($oData->uid);
     G::auditLog('DeleteLine','Delete line ('.$oData->uid.') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'deleteGuides':
     $sOutput = $oProcessMap->deleteGuides($oData->pro_uid);
     G::auditLog('DeleteLines','Delete all lines in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'addText':
     $sOutput = $oProcessMap->addText($oData->uid, $oData->label, $oData->position->x, $oData->position->y);
     $sOutputAux = G::json_decode($sOutput);
     $sOutputAux = (array)$sOutputAux;
     G::auditLog('AddText','Add new text ('.$sOutputAux['uid'].') in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'updateText':
     $sOutput = $oProcessMap->updateText($oData->uid, $oData->label);
     G::auditLog('UpdateText','Edit text ('.$oData->uid.' ) in process "'.$resultProcess['PRO_TITLE'].'"');
     break;
 case 'saveTextPosition':
     $sOutput = $oProcessMap->saveTextPosition($oData->uid, $oData->position->x, $oData->position->y);
     G::auditLog('SaveTextPosition','Change text position ('.$oData->uid.' ) in process "'.$resultProcess['PRO_TITLE'].'"');