sCenterContentUnitSelector = '.bx-base-pofile-unit'; } protected function _setConnectionsConditions ($aParams) { bx_import('BxDolConnection'); $oConnection = isset($aParams['object']) ? BxDolConnection::getObjectInstance($aParams['object']) : false; if (!$oConnection || !isset($aParams['profile']) || !(int)$aParams['profile']) return false; $sContentType = isset($aParams['type']) ? $aParams['type'] : BX_CONNECTIONS_CONTENT_TYPE_CONTENT; $isMutual = isset($aParams['mutual']) ? $aParams['mutual'] : false; $a = $oConnection->getConnectionsAsCondition ($sContentType, 'id', (int)$aParams['profile'], (int)$aParams['profile2'], $isMutual); $this->aCurrent['restriction'] = array_merge($this->aCurrent['restriction'], $a['restriction']); $this->aCurrent['join'] = array_merge($this->aCurrent['join'], $a['join']); return true; } } /** @} */