sUnit == 'profile') { switch ($o->sAction) { case 'delete': // remove remote account $this->oModule->_oDb->deleteRemoteAccount($o->iObject); break; case 'add': // add remote account and local profile association $oProfile = BxDolProfile::getInstance($o->iObject); if ($oProfile && 'system' != $oProfile->getModule()) { bx_import('BxDolSession'); $oSession = BxDolSession::getInstance(); $iRemoteProfileId = $oSession->getValue($this->oModule->_oConfig->sSessionUid); if ($iRemoteProfileId) { $oSession->unsetValue($this->oModule->_oConfig->sSessionUid); $this->oModule->_oDb->saveRemoteId($o->iObject, $iRemoteProfileId); } } break; } } } } /** @} */