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


PHP rating::get_user_full_name方法代码示例

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


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

示例1: notifyRequestStatus

function notifyRequestStatus($data, $status)
{
    $request_status = $status == 'approve' ? 'approved' : 'declined';
    $rating = $request_status == 'approved' ? '+1' : '-1';
    $userObj = new rating();
    $lead_name = $userObj->get_user_full_name($data['user_id']);
    $team_member_name = $userObj->get_user_full_name($data['team_member']);
    $to['name'] = $team_member_name;
    $team_member_name = explode(" ", trim($team_member_name));
    $team_member_name = $team_member_name[0];
    $subject = EMAIL_SUBJECT_RESPONSE . $request_status . '!';
    $message = 'Hi ' . $team_member_name . ',' . NEWLINE;
    $comment = isset($data['comment']) && !empty($data['comment']) ? ' with reason: <i>' . $data['comment'] . '</i>.' : '.';
    $message .= 'Your request has been ' . $request_status . '.' . NEWLINE . " Login to <a href='" . SITE_URL . "'>" . SITE_NAME . '</a> to view details.' . NEWLINE;
    $message .= NEWLINE;
    $message .= EMAIL_FOOTER;
    $to['email'] = $userObj->get_user_email($data['team_member']);
    if (ENVIRONMENT != 'LIVE') {
        $to['email'] = TM_EMAIL;
    }
    smtp_send_mail($to, $subject, $message);
}
开发者ID:parakh-infobeans,项目名称:parakh,代码行数:22,代码来源:functions.php


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