本文整理汇总了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;
}
示例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'])) {