예제 #1
0
 protected function _getCellComments($mixedValue, $sKey, $aField, $aRow)
 {
     bx_import('BxDolModule');
     $oModule = BxDolModule::getInstance($this->MODULE);
     $s = $oModule->_oTemplate->getMessageLabel($aRow);
     return parent::_getCellDefault('<div class="bx-cnv-grid-field-messages"><span>' . (1 + $mixedValue) . '</span>' . $s . '</div>', $sKey, $aField, $aRow);
 }
예제 #2
0
 protected function _getCellActions($mixedValue, $sKey, $aField, $aRow)
 {
     if (preg_match('/^(\\w{2})\\.countries\\.nerd\\.dk\\.$/', $aRow['zonedomain'], $aMatches)) {
         $aRow['active'] = 1;
         return parent::_getCellActions($mixedValue, $sKey, $aField, $aRow);
     }
     return parent::_getCellDefault('', $sKey, $aField, $aRow);
 }
예제 #3
0
 protected function _getCellTo($mixedValue, $sKey, $aField, $aRow)
 {
     return parent::_getCellDefault(long2ip($mixedValue), $sKey, $aField, $aRow);
 }
예제 #4
0
 protected function _getCellInfo($mixedValue, $sKey, $aField, $aRow)
 {
     $s = '';
     bx_import('BxDolConnection');
     $oConn = BxDolConnection::getObjectInstance($this->_sObjectConnections);
     // for friend requests display mutual friends
     if ($this->_bOwner && !$aRow['mutual']) {
         $a = $oConn->getCommonContent($aRow['id'], bx_get_logged_profile_id(), true);
         $i = count($a);
         if (1 == $i) {
             $iProfileId = array_pop($a);
             bx_import('BxDolProfile');
             $oProfile = BxDolProfile::getInstance($iProfileId);
             $s = _t('_sys_txt_one_mutual_friend', $oProfile->getUrl(), $oProfile->getDisplayName());
         } elseif ($i) {
             $s = _t('_sys_txt_n_mutual_friends', $i);
         }
     }
     // display friends number if no other info is available
     if (!$s) {
         $a = $oConn->getConnectedContent($aRow['id'], true);
         $i = count($a);
         $s = _t('_sys_txt_n_friends', $i);
     }
     return parent::_getCellDefault($s, $sKey, $aField, $aRow);
 }
예제 #5
0
 protected function _getCellDate($mixedValue, $sKey, $aField, $aRow)
 {
     return parent::_getCellDefault(bx_time_js($mixedValue), $sKey, $aField, $aRow);
 }
예제 #6
0
 protected function _getCellAdded($mixedValue, $sKey, $aField, $aRow)
 {
     return parent::_getCellDefault(bx_time_js($mixedValue, BX_FORMAT_DATE), $sKey, $aField, $aRow);
 }
예제 #7
0
 protected function _getCellStatus($mixedValue, $sKey, $aField, $aRow)
 {
     $mixedValue = _t('_bx_sites_txt_status_' . $mixedValue);
     return parent::_getCellDefault($mixedValue, $sKey, $aField, $aRow);
 }