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


PHP Member::getFullName方法代码示例

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


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

示例1: join

	/**
	 *  Create a third party into database from a member object
	 *
	 *  @param	Member	$member		Object member
	 * 	@param	string	$socname	Name of third party to force
	 *  @return int					<0 if KO, id of created account if OK
	 */
	function create_from_member($member, $socname = '') {
		global $conf, $user, $langs;

		$name = $socname ? $socname : $member->societe;
		if (empty($name))
			$name = $member->getFullName($langs);

		// Positionne parametres
		$this->values->name = $name;
		$this->values->adresse = $member->adresse; // TODO obsolete
		$this->values->address = $member->adresse;
		$this->values->cp = $member->cp;   // TODO obsolete
		$this->values->zip = $member->cp;
		$this->values->ville = $member->ville; // TODO obsolete
		$this->values->town = $member->ville;
		$this->values->pays_code = $member->country_code; // TODO obsolete
		$this->values->country_code = $member->country_code;
		$this->values->pays_id = $member->country_id; // TODO obsolete
		$this->values->country_id = $member->country_id;
		$this->values->tel = $member->phone; // Prof phone
		$this->values->email = $member->email;

		$this->values->client = 1; // A member is a customer by default
		$this->values->code_client = -1;
		$this->values->code_fournisseur = -1;

		$this->db->begin();

		// Cree et positionne $this->id
		$result = $this->create($user);
		if ($result >= 0) {
			$sql = "UPDATE " . MAIN_DB_PREFIX . "adherent";
			$sql.= " SET fk_soc=" . $this->id;
			$sql.= " WHERE rowid=" . $member->id;

			dol_syslog(get_class($this) . "::create_from_member sql=" . $sql, LOG_DEBUG);
			$resql = $this->db->query($sql);
			if ($resql) {
				$this->db->commit();
				return $this->id;
			} else {
				$this->error = $this->db->error();
				dol_syslog(get_class($this) . "::create_from_member - 1 - " . $this->error, LOG_ERR);

				$this->db->rollback();
				return -1;
			}
		} else {
			// $this->error deja positionne
			dol_syslog(get_class($this) . "::create_from_member - 2 - " . $this->error . " - " . join(',', $this->errors), LOG_ERR);

			$this->db->rollback();
			return $result;
		}
	}
开发者ID:nrjacker4,项目名称:crm-php,代码行数:62,代码来源:societe.class.php

示例2: Member

}
if (!isset($_SESSION['yel']['employer']) || empty($_SESSION['yel']['employer']['id']) || empty($_SESSION['yel']['employer']['sid']) || empty($_SESSION['yel']['employer']['hash'])) {
    echo "An illegal attempt to view candidate photo has been detected.";
    exit;
}
$member = new Member($_GET['id']);
if ($member->hasPhoto()) {
    $photo = $member->getPhotoFileInfo();
    $extension = '';
    switch ($photo['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: ' . $photo['photo_type']);
    header('Content-Disposition: attachment; filename="' . $member->getFullName() . '.' . $extension . '"');
    readfile($GLOBALS['photo_dir'] . "/" . $photo['id'] . "." . $photo['photo_hash']);
} else {
    echo "No photo was uploaded by this candidate.";
}
开发者ID:pamalite,项目名称:yel,代码行数:31,代码来源:candidate_photo.php

示例3: Member

<?php

/**
 * Created by PhpStorm.
 * User: Martin
 * Date: 29. 7. 2015
 * Time: 7:04
 */
while ($clen = $clenove->fetchObject()) {
    $member = new Member($clen->jmeno, $clen->prijmeni, $clen->narozeni_timestamp, $clen->profil_image, $clen->text);
    $allMembers .= "<div class='clen_div'><h2>{$member->getFullName()}</h2>\n        <div>Rok narozeni: <strong>{$member->getRokNarozeni()}</strong></div>";
    $allMembers .= "{$member->getProfilImage()}";
    $allMembers .= "<br><div class='clen_text'>{$member->getTextForView()}</div>";
    $allMembers .= "</div>";
}
return $allMembers;
开发者ID:ununik,项目名称:stmpl,代码行数:16,代码来源:clenove-html.php

示例4: Member

<?php

/**
 * Created by PhpStorm.
 * User: Martin
 * Date: 29. 7. 2015
 * Time: 7:04
 */
$allMembers .= "<div class='clen_div'><h2>Přidat člena</h2>\n                <form method='post' action='' enctype='multipart/form-data'>\n                <h3>{$err}</h3>\n                <table>\n                <tr><td>Jméno:</td><td><input type='text' name='jmeno' value='{$jmeno}' class='input_clenove'></td></tr>\n                <tr><td>Příjmení:</td><td><input type='text' name='prijmeni' value='{$prijmeni}' class='input_clenove'></td></tr>\n                <tr><td>Datum narození:</td><td><input type='date' name='narozeni' value='{$narozeni}' class='input_clenove'></td></tr>\n                <tr><td>Fotografie:</td><td><input type='file' name='image' class='input_clenove'></td></tr>\n                <tr><td>Text:</td><td><textarea name='text' class='input_textarea'>{$text}</textarea></td></tr>\n                <tr><td colspan='2'><input type='submit' value='Uložit' class='submit_clenove'></td></tr>\n                </table>\n                </form>\n                </div>";
while ($clen = $clenove->fetchObject()) {
    $member = new Member($clen->jmeno, $clen->prijmeni, $clen->narozeni_timestamp, $clen->profil_image, $clen->text);
    $allMembers .= "<div class='clen_div'><h2>{$member->getFullName()} <span class='clen_uprava'><a href='admin.php?page=clen_smazat&id={$clen->id}'><img src='images/admin/smazat.png' class='uprava_tlacitko'></a><a href='admin.php?page=clen_upr&id={$clen->id}'><img src='images/admin/uprava.png' class='uprava_tlacitko'></a></span></h2>\n        <div>Rok narozeni: <strong>{$member->getRokNarozeni()}</strong></div>";
    $allMembers .= "{$member->getProfilImage()}";
    $allMembers .= "<br><div class='clen_text'>{$member->getTextForView()}</div>";
    $allMembers .= "</div>";
}
return $allMembers;
开发者ID:ununik,项目名称:stmpl,代码行数:17,代码来源:clenove-html.php

示例5: Member

$sql = "SELECT UID FROM userids\n                                WHERE userids.UID BETWEEN '{$from}' AND '{$to}'";
$result = $db->query($sql);
while ($R = $db->fetch($result)) {
    if ($R['UID'] == "UIC-000") {
        continue;
    }
    $Member = new Member($R['UID']);
    ?>
                    <div class="columns two">
                        <div class="person">
                            <div class="img" style="background: url('<?php 
    echo $Member->getImage();
    ?>
') no-repeat; background-size: 100% 100%;"></div>
                            <p class="info italic"><?php 
    echo $Member->getFullName();
    ?>
</p>
                            <p class="highlight"><?php 
    echo $Member->getUserID();
    ?>
</p>
                            <p class="info"><span class="bold">ID:</span> <?php 
    echo $Member->getStudentID();
    ?>
</p>
                            <p class="info"><span class="bold">Batch:</span> <?php 
    echo format_position($Member->getBatch());
    ?>
</p>
                            <p class="info"><span class="bold">Member Since:</span><br><?php 
开发者ID:sabbirrahman,项目名称:uuictclub,代码行数:31,代码来源:memberlist.php

示例6: array

 $data = array();
 $data['issued_on'] = now();
 $data['type'] = 'R';
 $data['employer'] = $employer->getId();
 $data['payable_by'] = sql_date_add($data['issued_on'], $payment_terms_days, 'day');
 if ($is_free_replacement) {
     $data['paid_on'] = $data['issued_on'];
     $data['paid_through'] = 'CSH';
     $data['paid_id'] = 'FREE_REPLACEMENT';
 }
 $invoice = Invoice::create($data);
 if (!$invoice) {
     echo 'ko';
     exit;
 }
 $referral_desc = 'Reference fee for [' . $job['id'] . '] ' . $job['title'] . ' of ' . $candidate->getFullName();
 if ($is_free_replacement) {
     $referral_desc = 'Free replacement for Invoice: ' . pad($previous_invoice, 11, '0');
 }
 if ($is_replacement && !$is_free_replacement) {
     $referral_desc = 'Replacement fee for Invoice: ' . pad($previous_invoice, 11, '0');
 }
 $item_added = Invoice::addItem($invoice, $subtotal, $referral->getId(), $referral_desc);
 if (!$item_added) {
     echo "ko";
     exit;
 }
 if (!$is_free_replacement) {
     $item_added = Invoice::addItem($invoice, $discount, $referral->getId(), 'Discount');
     if (!$item_added) {
         echo "ko";
开发者ID:pamalite,项目名称:yel,代码行数:31,代码来源:members_action.php

示例7: Member

$email_addr = $result[0]['member'];
// Check whether member is privileged
$query = "SELECT recommender FROM members WHERE email_addr = '" . $email_addr . "' LIMIT 1";
$result = $mysqli->query($query);
if (!empty($result)) {
    redirect_to('https://' . $GLOBALS['root'] . '/members/activate_privileged.php?id=' . $_GET['id']);
    exit;
}
$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->getFullName(), $message);
$message = str_replace('%email_addr%', $member->getId(), $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($_POST['email_addr'], $subject, $message, $headers);
// redirect_to('login.php?signed_up=activated');
redirect_to('../welcome.php');
开发者ID:pamalite,项目名称:yel,代码行数:31,代码来源:activate.php

示例8: foreach

    {
        //Page footer
        $this->SetY(-15);
        $this->SetFont('Times', 'I', 8);
        $this->SetTextColor(128);
        $this->Cell(0, 10, 'Page ' . $this->PageNo() . ' of {nb}', 0, 0, 'C');
    }
    function show_testimony($_lines)
    {
        $this->SetTextColor(0);
        $this->SetFont('Times', '', 10);
        $this->Ln();
        foreach ($_lines as $line) {
            if (!empty($line)) {
                $this->Cell(0, 5, stripslashes(htmlspecialchars_decode($line)), 0, 1, 'L');
                $this->Ln();
            }
        }
    }
}
$pdf = new TestimonyPdf();
$pdf->AliasNbPages();
$pdf->SetAuthor('YellowElevator.com Testimony Generator. Terms of Use subjected.');
$pdf->SetTitle(htmlspecialchars_decode($member->getFullName()) . '\'s Testimony');
$pdf->SetFontSize(10);
$pdf->AddPage('P');
$pdf->SetDisplayMode('real', 'default');
$pdf->make_title(htmlspecialchars_decode($member->getFullName()) . '\'s Testimony for ' . $job . ' position');
$pdf->show_testimony($testimonies);
$pdf->Close();
$pdf->Output($member->getId() . '_' . $job . '_testimony.pdf', 'D');
开发者ID:pamalite,项目名称:yel,代码行数:31,代码来源:testimony_pdf.php


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