本文整理汇总了PHP中Member::get_name方法的典型用法代码示例。如果您正苦于以下问题:PHP Member::get_name方法的具体用法?PHP Member::get_name怎么用?PHP Member::get_name使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Member
的用法示例。
在下文中一共展示了Member::get_name方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: file
$data['member_read_resume_on'] = $today;
$data['testimony'] = $testimony;
$data['resume'] = $resume->id();
if (!Referral::create($data)) {
?>
<script type="text/javascript">top.stop_quick_refer_upload('-7');</script><?php
exit;
}
// 5. send invitation email with login details and activation
$lines = file(dirname(__FILE__) . '/private/mail/member_quick_referred_new.txt');
$message = '';
foreach ($lines as $line) {
$message .= $line;
}
$position = '- ' . htmlspecialchars_decode($job) . ' by ' . htmlspecialchars_decode($employer);
$message = str_replace('%member_name%', htmlspecialchars_decode($member->get_name()), $message);
$message = str_replace('%member_email_addr%', $member->id(), $message);
$message = str_replace('%referee_email_addr%', $candidate_email, $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$message = str_replace('%positions%', $position, $message);
$message = str_replace('%activation_id%', $activation_id, $message);
$message = str_replace('%password%', $new_password, $message);
$subject = "You Have Been Referred";
$headers = 'From: YellowElevator.com <admin@yellowelevator.com>' . "\n";
mail($candidate_email, $subject, $message, $headers);
// $handle = fopen('/tmp/email_to_'. $candidate_email. '.txt', 'w');
// fwrite($handle, 'Subject: '. $subject. "\n\n");
// fwrite($handle, $message);
// fclose($handle);
?>
示例2: file
}
$lines = file(dirname(__FILE__) . '/../private/mail/member_referred_new.txt');
$message = '';
foreach ($lines as $line) {
$message .= $line;
}
$positions = '';
$i = 0;
foreach ($jobs as $job) {
$positions .= '- ' . desanitize($job['job']) . ' at ' . desanitize($job['employer']);
if ($i < count($jobs) - 1) {
$positions .= "\n";
}
$i++;
}
$message = str_replace('%member_name%', htmlspecialchars_decode(desanitize($member->get_name())), $message);
$message = str_replace('%member_email_addr%', $member->id(), $message);
$message = str_replace('%referee_email_addr%', $_POST['referee'], $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$message = str_replace('%positions%', $positions, $message);
$subject = "You Have Been Referred";
$headers = 'From: YellowElevator.com <admin@yellowelevator.com>' . "\n";
mail($_POST['referee'], $subject, $message, $headers);
echo '-3';
exit;
}
}
}
$referral_id = 0;
$data = array();
示例3: header
$file = $resume->get_file();
header('Content-length: ' . $file['size']);
header('Content-type: ' . $file['type']);
header('Content-Disposition: attachment; filename="' . $file['name'] . '"');
readfile($GLOBALS['resume_dir'] . "/" . $_GET['id'] . "." . $file['hash']);
exit;
}
$xml_dom = new XMLDOM();
$member = new Member($cover[0]['member']);
$contacts = $member->get();
$experiences = $resume->get_work_experiences();
$educations = $resume->get_educations();
$skills = $resume->get_skills();
$technical_skills = $resume->get_technical_skills();
$resume_data = array();
$resume_data['resume']['_ATTRS'] = array('candidate' => $member->get_name());
$resume_data['resume']['DISCLAIMER_NOTE'] = 'Generated from YellowElevator.com. Resume Terms of Use subjected.';
$resume_data['resume']['contacts']['telephone_number'] = $contacts[0]['phone_num'];
$resume_data['resume']['contacts']['email_address'] = $contacts[0]['email_addr'];
$resume_data['resume']['contacts']['address'] = $contacts[0]['address'];
$resume_data['resume']['contacts']['state'] = $contacts[0]['state'];
$resume_data['resume']['contacts']['country'] = Country::getCountryFrom($contacts[0]['country']);
$resume_data['resume']['work_experiences'] = array();
if (count($experiences) > 0) {
$i = 0;
foreach ($experiences as $experience) {
$industry = Industry::get($experience['industry']);
$resume_data['resume']['work_experiences']['work_experience'][$i]['industry'] = $industry[0]['industry'];
$resume_data['resume']['work_experiences']['work_experience'][$i]['from'] = $experience['from'];
$resume_data['resume']['work_experiences']['work_experience'][$i]['to'] = $experience['to'];
$resume_data['resume']['work_experiences']['work_experience'][$i]['place'] = $experience['place'];
示例4: Member
exit;
}
}
}
$member = new Member($_GET['id']);
$photos = $member->get_photos();
if (count($photos) > 0 && $photos != false) {
$extension = '';
switch ($photos[0]['photo_type']) {
case 'image/jpeg':
$extension = 'jpg';
break;
case 'image/gif':
$extension = 'gif';
break;
case 'image/png':
$extension = 'png';
break;
case 'image/tiff':
$extension = 'tiff';
break;
default:
$extension = 'bmp';
}
header('Content-type: ' . $photos[0]['photo_type']);
header('Content-Disposition: attachment; filename="' . $member->get_name() . '.' . $extension . '"');
readfile($GLOBALS['photo_dir'] . "/" . $photos[0]['id'] . "." . $photos[0]['photo_hash']);
exit;
} else {
echo "The candidate did not upload one's photo.";
}
示例5: stripslashes
$this->SetTextColor(0);
if (is_null($_cover[0]['cover_note']) || empty($_cover[0]['cover_note'])) {
$this->SetFont('Times', '', 10);
$this->Cell(0, 5, 'No cover note provided', 0, 1, 'C');
$this->Ln();
} else {
$this->SetFont('Times', '', 10);
$this->Cell(0, 5, stripslashes(htmlspecialchars_decode($_cover[0]['cover_note'])), 0, 1, 'L');
$this->Ln();
}
}
}
$pdf = new ResumePdf();
$pdf->AliasNbPages();
$pdf->SetAuthor('YellowElevator.com Resume Generator. Terms of Use subjected.');
$pdf->SetTitle(htmlspecialchars_decode($member->get_name()) . '\'s Resume');
$pdf->SetFontSize(10);
$pdf->AddPage('P');
$pdf->SetDisplayMode('real', 'default');
$pdf->make_title(htmlspecialchars_decode($member->get_name()) . '\'s Resume');
$pdf->Ln();
$pdf->make_title('Contacts');
$pdf->show_contacts($contacts);
$pdf->make_title('Work Experiences');
$pdf->show_experiences($experiences);
$pdf->make_title('Educations');
$pdf->show_educations($educations);
$pdf->make_title('General Skills');
$pdf->show_skills($skills);
$pdf->make_title('Technical/Computer/I.T. Skills');
$pdf->show_technical_skills($technical_skills);
示例6: Member
}
$member = new Member($email_addr);
$data = array();
$data['active'] = 'Y';
if (!$member->update($data)) {
echo 'Activation failed: Cannot activate member.';
exit;
}
$query = "DELETE FROM member_activation_tokens \n WHERE id = '" . $activation_id . "'";
$mysqli->execute($query);
$mail_lines = file('../private/mail/member_welcome.txt');
$message = '';
foreach ($mail_lines as $line) {
$message .= $line;
}
$message = str_replace('%member_name%', $member->get_name(), $message);
$message = str_replace('%email_addr%', $member->id(), $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$subject = "Welcome to YellowElevator.com";
$headers = 'From: YellowElevator.com <admin@yellowelevator.com>' . "\n";
mail($member->id(), $subject, $message, $headers);
// $handle = fopen('/tmp/email_to_'. $member->id(). '.txt', 'w');
// fwrite($handle, 'Subject: '. $subject. "\n\n");
// fwrite($handle, $message);
// fclose($handle);
// continue all bufferred referrals
$query = "SELECT * FROM privileged_referral_buffers WHERE referee = '" . $member->id() . "'";
$result = $mysqli->query($query);
if (!empty($result)) {
$referrals = $result;
示例7: now
// 2.4 If it is a replacement, update both referrals to disable future replacements.
if ($is_replacement) {
$queries = "UPDATE referrals SET \n replaced_on = '" . now() . "', \n replaced_referral = " . $_POST['id'] . " \n WHERE id = " . $previous_referral . "; \n UPDATE referrals SET \n guarantee_expire_on = '" . $today . "', \n replacement_authorized_on = NULL, \n replaced_on = '" . now() . "', \n replaced_referral = " . $_POST['id'] . " \n WHERE id = " . $_POST['id'];
if (!$mysqli->transact($queries)) {
echo 'ko';
exit;
}
}
// 3. Send a notification
$mail_lines = file('../private/mail/member_reward.txt');
$message = '';
foreach ($mail_lines as $line) {
$message .= $line;
}
$message = str_replace('%member_name%', $member->get_name(), $message);
$message = str_replace('%referee_name%', $referee->get_name(), $message);
$message = str_replace('%employer%', $employer->get_name(), $message);
$message = str_replace('%job_title%', $job_title, $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$subject = desanitize($referee->get_name()) . " was successfully employed!";
$headers = 'From: YellowElevator.com <admin@yellowelevator.com>' . "\n";
mail($member->id(), $subject, $message, $headers);
echo "ok";
exit;
}
if ($_POST['action'] == 'save_remarks') {
if (!empty($_POST['remarks'])) {
$query = "UPDATE referrals \n SET employer_remarks = '" . sanitize($_POST['remarks']) . "' \n WHERE id = " . $_POST['id'];
$mysqli = Database::connect();
$mysqli->execute($query);
示例8: explode
}
if ($_POST['action'] == 'smart_send_invites') {
$raw_contacts = explode('|', $_POST['selected_contacts']);
$contacts = array();
foreach ($raw_contacts as $index) {
$contacts[$_SESSION['yel']['member'][$_POST['id']]['contacts'][$index]['email']] = $_SESSION['yel']['member'][$_POST['id']]['contacts'][$index]['name'];
}
$inviter = new OpenInviter();
$inviter->startPlugin($_POST['oi_service']);
$internal_errors = $inviter->getInternalError();
if ($internal_errors) {
echo '-1';
exit;
}
$member = new Member($_POST['id'], $_SESSION['yel']['member']['sid']);
$subject = htmlspecialchars_decode(urldecode($member->get_name())) . ' writing on behalf of Yellow Elevator - a job referral system';
$header = 'From: ' . $_POST['username'] . "\n" . 'Reply-To: ' . $_POST['username'];
$lines = file(dirname(__FILE__) . '/../private/mail/member_tell_a_friend.txt');
$message = '';
foreach ($lines as $line) {
$message .= $line;
}
$message = str_replace('%member_name%', htmlspecialchars_decode(urldecode($member->get_name())), $message);
$message = str_replace('%member_email_addr%', $_POST['username'], $message);
$message = str_replace('%message%', stripslashes(urldecode($_POST['message'])), $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$invitation = array('subject' => $subject, 'body' => $message);
// send to social services
$sendMessage = $inviter->sendMessage($_POST['oi_session_id'], $invitation, $contacts);
$inviter->logout();
示例9:
}
exit;
}
$contacts = $member->get();
$experiences = $resume->get_work_experiences();
$educations = $resume->get_educations();
$skills = $resume->get_skills();
$technical_skills = $resume->get_technical_skills();
?>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
echo '<title>' . $GLOBALS['COMPANYNAME'] . ' - ' . htmlspecialchars_decode($member->get_name()) . '\'s Resume</title>' . "\n";
echo '<link rel="stylesheet" type="text/css" href="' . $GLOBALS['protocol'] . '://' . $GLOBALS['root'] . '/common/css/common.css">' . "\n";
echo '<link rel="stylesheet" type="text/css" href="' . $GLOBALS['protocol'] . '://' . $GLOBALS['root'] . '/common/css/employer_referrals.css">' . "\n";
?>
</head>
<body>
<p class="disclaimer">Generated from YellowElevator.com.</p>
<div id="div_buttons">
<input class="button" type="button" value="Save as PDF" onClick="location.replace('resume_pdf.php?id=<?php
echo $_GET['id'];
?>
');"/>
<input class="button" type="button" value="Print Resume" onClick="window.print();"/>
示例10: Member
exit;
}
if ($_POST['action'] == 'create_referee') {
$member = new Member($_POST['member'], $_SESSION['yel']['member']['sid']);
if (!$member->create_referee($_POST['referee'])) {
echo "ko";
exit;
}
$referee = new Member($_POST['referee']);
$mail_lines = file('../private/mail/member_approval.txt');
$message = '';
foreach ($mail_lines as $line) {
$message .= $line;
}
$message = str_replace('%member_name%', $member->get_name(), $message);
$message = str_replace('%referee_name%', $referee->get_name(), $message);
$message = str_replace('%protocol%', $GLOBALS['protocol'], $message);
$message = str_replace('%root%', $GLOBALS['root'], $message);
$subject = desanitize($member->get_name()) . " added you as a contact. Your approval is required.";
$headers = 'From: YellowElevator.com <admin@yellowelevator.com>' . "\n";
mail($referee->id(), $subject, $message, $headers);
echo "ok";
exit;
}
if ($_POST['action'] == 'get_referee_networks') {
$query = "SELECT member_networks.id AS network_id, industries.industry FROM industries \n LEFT JOIN member_networks ON industries.id = member_networks.industry \n LEFT JOIN member_networks_referees ON member_networks.id = member_networks_referees.network \n WHERE member_networks_referees.referee = " . $_POST['id'];
$mysqli = Database::connect();
$result = $mysqli->query($query);
if (count($result) >= 0) {
$response = array('networks' => array('network' => $result));
header('Content-type: text/xml');