本文整理汇总了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);
}