Added support of hierarchy in the manipulation of external keys:

- widget

SVN:trunk[1352]
This commit is contained in:
Denis Flaven
2011-07-22 12:15:49 +00:00
parent 4cd4d91225
commit d62d6e14c8

View File

@@ -251,6 +251,27 @@ try
echo json_encode(array('name' => $sName));
break;
// ui.extkeywidget
case 'displayHierarchy':
$sTargetClass = utils::ReadParam('sTargetClass', '');
$sInputId = utils::ReadParam('sInputId', '');
$sFilter = utils::ReadParam('sFilter');
$sJson = utils::ReadParam('json', '');
$currValue = utils::ReadParam('value', '');
if (!empty($sJson))
{
$oWizardHelper = WizardHelper::FromJSON($sJson);
$oObj = $oWizardHelper->GetTargetObject();
}
else
{
// Search form: no current object
$oObj = null;
}
$oWidget = new UIExtKeyWidget($sTargetClass, $sInputId);
$oWidget->DisplayHierarchy($oPage, $sFilter, $currValue);
break;
////////////////////////////////////////////////////
// ui.linkswidget