當前位置: 首頁>>代碼示例>>PHP>>正文


PHP GWF_User::displayEMail方法代碼示例

本文整理匯總了PHP中GWF_User::displayEMail方法的典型用法代碼示例。如果您正苦於以下問題:PHP GWF_User::displayEMail方法的具體用法?PHP GWF_User::displayEMail怎麽用?PHP GWF_User::displayEMail使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在GWF_User的用法示例。


在下文中一共展示了GWF_User::displayEMail方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: contactData

 private function contactData(GWF_User $user)
 {
     require_once GWF_CORE_PATH . 'module/Profile/GWF_Profile.php';
     if (false === ($p = GWF_Profile::getProfile($user->getID()))) {
         return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__));
     }
     if ($p->isGuestHidden() || $p->isHiddenLevel(0)) {
         return '';
     }
     $back = '';
     if ('' !== ($v = $p->getVar('prof_firstname'))) {
         $back .= 'FirstName:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_lastname'))) {
         $back .= 'LastName:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_street'))) {
         $back .= 'Street:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_city'))) {
         $back .= 'City:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_zip'))) {
         $back .= 'ZIPCode:' . $v . PHP_EOL;
     }
     if ($p->isContactHiddenLevel(0)) {
         return $back;
     }
     if ($user->isOptionEnabled(GWF_User::SHOW_EMAIL)) {
         if ('' !== ($v = $user->displayEMail())) {
             $back .= 'EMail:' . $v . PHP_EOL;
         }
     }
     if ('' !== ($v = $p->getVar('prof_tel'))) {
         $back .= 'Tel:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_mobile'))) {
         $back .= 'Mobile:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_icq'))) {
         $back .= 'ICQ:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_msn'))) {
         $back .= 'MSN:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_jabber'))) {
         $back .= 'Jabber:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_skype'))) {
         $back .= 'Skype:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_yahoo'))) {
         $back .= 'Yahoo!:' . $v . PHP_EOL;
     }
     if ('' !== ($v = $p->getVar('prof_aim'))) {
         $back .= 'AIM:' . $v . PHP_EOL;
     }
     return $back;
 }
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:59,代碼來源:API_User.php

示例2: array

    $headers[] = array($tLang->lang('th_aim'), 'prof_aim');
}
echo $tVars['pagemenu'];
echo GWF_Table::start();
echo GWF_Table::displayHeaders1($headers, $tVars['sort_url']);
$user = new GWF_User(false);
foreach ($tVars['result'] as $row) {
    $user->setGDOData($row);
    echo GWF_Table::rowStart();
    echo GWF_Table::column($user->displayCountryFlag(false));
    echo GWF_Table::column($user->displayProfileLink());
    if (isset($_GET['minlevel'])) {
        echo GWF_Table::column($row['user_level'], 'gwf_num');
    }
    if (isset($_GET['hasmail']) || isset($_GET['email'])) {
        echo GWF_Table::column($user->displayEMail());
    }
    if (isset($_GET['haswww'])) {
        $a = htmlspecialchars($row['prof_website']);
        echo GWF_Table::column(sprintf('<a href="%s">%s</a>', $a, $a));
    }
    if (isset($_GET['icq'])) {
        echo GWF_Table::column(htmlspecialchars($row['prof_icq']), 'gwf_num');
    }
    if (isset($_GET['msn'])) {
        echo GWF_Table::column(htmlspecialchars($row['prof_msn']), 'gwf_num');
    }
    if (isset($_GET['jabber'])) {
        echo GWF_Table::column(htmlspecialchars($row['prof_jabber']), 'gwf_num');
    }
    if (isset($_GET['skype'])) {
開發者ID:sinfocol,項目名稱:gwf3,代碼行數:31,代碼來源:search_adv.php


注:本文中的GWF_User::displayEMail方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。