protected function _getCellAuthor($mixedValue, $sKey, $aField, $aRow) { $oProfile = $this->_getProfileObject($aRow['author']); $sProfile = $oProfile->getDisplayName(); $mixedValue = $this->_oTemplate->parseHtmlByName('bx_a.html', array('href' => $oProfile->getUrl(), 'title' => $sProfile, 'bx_repeat:attrs' => array(), 'content' => $sProfile)); return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow); }
protected function _getCellAuthor($mixedValue, $sKey, $aField, $aRow) { $oProfile = $this->_getProfileObject($aRow['author']); $sProfile = $oProfile->getDisplayName(); $oAcl = BxDolAcl::getInstance(); $sAccountEmail = ''; $sManageAccountUrl = ''; if ($oProfile && $oProfile instanceof BxDolProfile && $oAcl->isMemberLevelInSet(128)) { $sAccountEmail = $oProfile->getAccountObject()->getEmail(); $sManageAccountUrl = $this->_getManageAccountUrl($sAccountEmail); } $mixedValue = $this->_oTemplate->parseHtmlByName('author_link.html', array('href' => $oProfile->getUrl(), 'title' => $sProfile, 'content' => $sProfile, 'bx_if:show_account' => array('condition' => !empty($sManageAccountUrl), 'content' => array('href' => $sManageAccountUrl, 'title' => _t($this->_oModule->_oConfig->CNF['T']['grid_txt_account_manager']), 'content' => $sAccountEmail)))); return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow); }
protected function _getCellAccount($mixedValue, $sKey, $aField, $aRow) { $sManageAccountUrl = $this->_getManageAccountUrl($mixedValue); if (!empty($sManageAccountUrl)) { $mixedValue = $this->_oTemplate->parseHtmlByName('account_link.html', array('href' => $sManageAccountUrl, 'title' => _t($this->_oModule->_oConfig->CNF['T']['grid_txt_account_manager']), 'content' => $mixedValue)); } return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow); }
protected function _getCellLastOnline($mixedValue, $sKey, $aField, $aRow) { return parent::_getCellDefault(bx_time_js($mixedValue), $sKey, $aField, $aRow); }