function _serviceGetSpyPost($sAction, $iObjectId, $iSenderId, $aExtraParams, $aLangKeys) { $aProfile = getProfileInfo($iSenderId); if (!($aDataEntry = $this->_oDb->getEntryByIdAndOwner($iObjectId, 0, true))) { return array(); } if (empty($aLangKeys[$sAction])) { return array(); } return array('lang_key' => $aLangKeys[$sAction], 'params' => array('profile_link' => $aProfile ? getProfileLink($iSenderId) : 'javascript:void(0)', 'profile_nick' => $aProfile ? getNickName($aProfile['ID']) : _t('_Guest'), 'entry_url' => BX_DOL_URL_ROOT . $this->_oConfig->getBaseUri() . 'view/' . $aDataEntry[$this->_oDb->_sFieldUri], 'entry_title' => $aDataEntry[$this->_oDb->_sFieldTitle]), 'recipient_id' => $aDataEntry[$this->_oDb->_sFieldAuthorId], 'spy_type' => 'content_activity'); }
function serviceGetSpyPost($sAction, $iObjectId = 0, $iSenderId = 0, $aExtraParams = array()) { return parent::_serviceGetSpyPost($sAction, $iObjectId, $iSenderId, $aExtraParams, array('add' => '_bx_store_spy_post', 'change' => '_bx_store_spy_post_change', 'rate' => '_bx_store_spy_rate', 'commentPost' => '_bx_store_spy_comment')); }