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 _doDelete($iId, $aParams = array())
 {
     if ($this->_oModule->checkMyself($iId)) {
         return false;
     }
     if (isset($aParams['with_content']) && $aParams['with_content'] === true) {
         $oProfile = $this->_getProfileObject($iId);
         if ($oProfile instanceof BxDolProfileUndefined) {
             return false;
         }
         return $oProfile->delete($oProfile->id(), true);
     }
     return parent::_doDelete($iId, $aParams);
 }
 protected function _onDelete($iId, $aParams = array())
 {
     if (isset($aParams['with_content']) && $aParams['with_content'] === true) {
         //TODO: delete content after profile deletion
     }
     return parent::_onDelete($iId, $aParams);
 }