Пример #1
0
                 $iIdForAttachment = $id;
                 $sClassForAttachment = $sClass;
             }
         }
     }
     // Display the tabs
     if ($sFirstTab == 'list') {
         DisplayNavigatorListTab($oP, $aResults, $sRelation, $oObj);
         $oP->SetCurrentTab(Dict::S('UI:RelationshipGraph'));
         $oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
         DisplayNavigatorGroupTab($oP, $aGroups, $sRelation, $oObj);
     } else {
         $oP->SetCurrentTab(Dict::S('UI:RelationshipGraph'));
         $oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
         DisplayNavigatorListTab($oP, $aResults, $sRelation, $oObj);
         DisplayNavigatorGroupTab($oP, $aGroups, $sRelation, $oObj);
     }
     $oP->SetCurrentTab('');
     break;
     ///////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////
 case 'kill_lock':
     $sClass = utils::ReadParam('class', '');
     $id = utils::ReadParam('id', '');
     iTopOwnershipLock::KillLock($sClass, $id);
     $oObj = MetaModel::GetObject($sClass, $id);
     ReloadAndDisplay($oP, $oObj, 'concurrent_lock_killed', Dict::S('UI:ConcurrentLockKilled'), 'info');
     break;
     ///////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////
 case 'cancel':
Пример #2
0
                 $iIdForAttachment = $id;
                 $sClassForAttachment = $sClass;
             }
         }
     }
     // Display the tabs
     if ($sFirstTab == 'list') {
         DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
         $oP->SetCurrentTab(Dict::S('UI:RelationshipGraph'));
         $oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
         DisplayNavigatorGroupTab($oP);
     } else {
         $oP->SetCurrentTab(Dict::S('UI:RelationshipGraph'));
         $oDisplayGraph->Display($oP, $aResults, $sRelation, $oAppContext, array(), $sClassForAttachment, $iIdForAttachment, $sContextKey, array('this' => $oObj));
         DisplayNavigatorListTab($oP, $aResults, $sRelation, $sDirection, $oObj);
         DisplayNavigatorGroupTab($oP);
     }
     $oP->SetCurrentTab('');
     break;
     ///////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////
 case 'kill_lock':
     $sClass = utils::ReadParam('class', '');
     $id = utils::ReadParam('id', '');
     iTopOwnershipLock::KillLock($sClass, $id);
     $oObj = MetaModel::GetObject($sClass, $id);
     ReloadAndDisplay($oP, $oObj, 'concurrent_lock_killed', Dict::S('UI:ConcurrentLockKilled'), 'info');
     break;
     ///////////////////////////////////////////////////////////////////////////////////////////
 ///////////////////////////////////////////////////////////////////////////////////////////
 case 'cancel':