Example #1
0
 case 'selectObjectsToAdd':
     $oPage->SetContentType('text/html');
     $sClass = utils::ReadParam('class', '', false, 'class');
     $sJson = utils::ReadParam('json', '', false, 'raw_data');
     $oObj = null;
     if ($sJson != '') {
         $oWizardHelper = WizardHelper::FromJSON($sJson);
         $oObj = $oWizardHelper->GetTargetObject();
     }
     $sRealClass = utils::ReadParam('real_class', '', false, 'class');
     $sAttCode = utils::ReadParam('att_code', '');
     $iInputId = utils::ReadParam('iInputId', '');
     $iCurrObjectId = utils::ReadParam('iObjId', 0);
     $oPage->SetContentType('text/html');
     $oWidget = new UILinksWidgetDirect($sClass, $sAttCode, $iInputId);
     $oWidget->GetObjectsSelectionDlg($oPage, $oObj);
     break;
     // ui.linksdirectwidget
 // ui.linksdirectwidget
 case 'searchObjectsToAdd2':
     $oPage->SetContentType('text/html');
     $sClass = utils::ReadParam('class', '', false, 'class');
     $sRealClass = utils::ReadParam('real_class', '', false, 'class');
     $sAttCode = utils::ReadParam('att_code', '');
     $iInputId = utils::ReadParam('iInputId', '');
     $aAlreadyLinked = utils::ReadParam('aAlreadyLinked', array());
     $sJson = utils::ReadParam('json', '', false, 'raw_data');
     $oObj = null;
     if ($sJson != '') {
         $oWizardHelper = WizardHelper::FromJSON($sJson);
         $oObj = $oWizardHelper->GetTargetObject();