当前位置: 首页>>代码示例>>PHP>>正文


PHP MEMBER::getEmail方法代码示例

本文整理汇总了PHP中MEMBER::getEmail方法的典型用法代码示例。如果您正苦于以下问题:PHP MEMBER::getEmail方法的具体用法?PHP MEMBER::getEmail怎么用?PHP MEMBER::getEmail使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在MEMBER的用法示例。


在下文中一共展示了MEMBER::getEmail方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _getUserInfo

function _getUserInfo($username, $password)
{
    // 1. login
    $mem = new MEMBER();
    if (!$mem->login($username, $password)) {
        return _error(1, "Could not log in");
    }
    // 3. return the info
    // Structure returned has nickname, userid, url, email, lastname, firstname
    $newstruct = new xmlrpcval(array("nickname" => new xmlrpcval($mem->getDisplayName(), "string"), "userid" => new xmlrpcval($mem->getID(), "string"), "url" => new xmlrpcval($mem->getURL(), "string"), "email" => new xmlrpcval($mem->getEmail(), "string"), "lastname" => new xmlrpcval("", "string"), "firstname" => new xmlrpcval($mem->getRealName(), "string")), 'struct');
    return new xmlrpcresp($newstruct);
}
开发者ID:hatone,项目名称:Nucleus-v3.64,代码行数:12,代码来源:server.php

示例2: sendMessage

 /**
  *  Sends a message from the current member to the member given as argument
  */
 function sendMessage()
 {
     global $CONF, $member;
     $error = $this->validateMessage();
     if ($error != '') {
         return array('message' => $error);
     }
     if (!$member->isLoggedIn()) {
         $fromMail = postVar('frommail');
         $fromName = _MMAIL_FROMANON;
     } else {
         $fromMail = $member->getEmail();
         $fromName = $member->getDisplayName();
     }
     $tomem = new MEMBER();
     $tomem->readFromId(postVar('memberid'));
     $message = _MMAIL_MSG . ' ' . $fromName . "\n" . '(' . _MMAIL_FROMNUC . ' ' . $CONF['IndexURL'] . ") \n\n" . _MMAIL_MAIL . " \n\n" . postVar('message');
     $message .= getMailFooter();
     $title = _MMAIL_TITLE . ' ' . $fromName;
     mb_language('ja');
     mb_internal_encoding(_CHARSET);
     @mb_send_mail($tomem->getEmail(), $title, $message, "From: " . $fromMail);
     if (postVar('url')) {
         redirect(postVar('url'));
     } else {
         $CONF['MemberURL'] = $CONF['IndexURL'];
         if ($CONF['URLMode'] == 'pathinfo') {
             $url = createLink('member', array('memberid' => $tomem->getID(), 'name' => $tomem->getDisplayName()));
         } else {
             $url = $CONF['IndexURL'] . createMemberLink($tomem->getID());
         }
         redirect($url);
     }
     exit;
 }
开发者ID:hatone,项目名称:Nucleus-v3.64,代码行数:38,代码来源:ACTION.php


注:本文中的MEMBER::getEmail方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。