protected function _getActionAdd($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array()) { $oModule = BxDolModule::getInstance($this->MODULE); $CNF =& $oModule->_oConfig->CNF; $sUrl = BX_DOL_URL_ROOT . BxDolPermalinks::getInstance()->permalink('page.php?i=' . $CNF['URI_ADD_ENTRY']); $a['attr']['onclick'] = "document.location='{$sUrl}'"; unset($a['attr']['bx_grid_action_independent']); return parent::_getActionDefault($sType, $sKey, $a, $isSmall, $isDisabled, $aRow); }
protected function _getActionAddFriend($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array()) { if ($this->_bOwner || $aRow['id'] == bx_get_logged_profile_id()) { return ''; } bx_import('BxDolConnection'); $oConn = BxDolConnection::getObjectInstance($this->_sObjectConnections); if ($oConn->isConnected($aRow['id'], bx_get_logged_profile_id()) || $oConn->isConnected(bx_get_logged_profile_id(), $aRow['id'])) { return ''; } return parent::_getActionDefault($sType, $sKey, $a, $isSmall, $isDisabled, $aRow); }
protected function _getActionView($sType, $sKey, $a, $isSmall = false, $isDisabled = false, $aRow = array()) { $a['attr']['title'] = bx_html_attribute(_t('_bx_sites_grid_browse_btn_title_view')); return parent::_getActionDefault($sType, $sKey, $a, false, $isDisabled, $aRow); }