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


PHP Member::setFirstName方法代码示例

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


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

示例1: insertMember

 function insertMember($data)
 {
     $mbr = new Member();
     $mbrQ = new MemberQuery();
     $mbr->setFirstName($data[0]);
     $mbr->setLastName($data[1]);
     $mbr->setGender($data[2]);
     $mbr->setSchoolId($data[3]);
     $mbr->setStandard($data[4]);
     $mbr->setGrade($data[5]);
     $mbr->setRollNo($data[6]);
     $mbr->setParentName($data[7]);
     $mbr->setParentOccupation($data[8]);
     $mbr->setMotherTongue($data[9]);
     $barcode = $mbrQ->assignRollNumber($mbr);
     $mbr->setBarcodeNmbr($barcode);
     $mbr->setClassification(3);
     return $mbrQ->insert($mbr);
 }
开发者ID:vishnu35,项目名称:Granthalay,代码行数:19,代码来源:MemberImportQuery.php

示例2: Member

 static function _createFakeMemberFromEmail($email)
 {
     $member = new Member();
     $member->setFirstName('Customer');
     $member->setEmail($email);
     return $member;
 }
开发者ID:jeffhorus,项目名称:sepatuku,代码行数:7,代码来源:Krco.php

示例3: Member

 function _mkObj($array)
 {
     $mbr = new Member();
     $mbr->setMbrid($array["mbrid"]);
     $mbr->setBarcodeNmbr($array["barcode_nmbr"]);
     $mbr->setLastChangeDt($array["last_change_dt"]);
     $mbr->setLastChangeUserid($array["last_change_userid"]);
     if (isset($array["username"])) {
         $mbr->setLastChangeUsername($array["username"]);
     }
     $mbr->setLastName($array["last_name"]);
     $mbr->setFirstName($array["first_name"]);
     $mbr->setAddress($array["address"]);
     $mbr->setHomePhone($array["home_phone"]);
     $mbr->setWorkPhone($array["work_phone"]);
     $mbr->setCel($array["cel"]);
     $mbr->setEmail($array["email"]);
     $mbr->setFoto($array["foto"]);
     //jalg foto member
     $mbr->setPassUser($array["pass_user"]);
     $mbr->setBornDt($array["born_dt"]);
     $mbr->setOther($array["other"]);
     $mbr->setClassification($array["classification"]);
     $mbr->setStatus($array["is_active"]);
     $mbr->setLastActDate($array["last_activity_dt"]);
     $mbr->_custom = $this->getCustomFields($array['mbrid']);
     return $mbr;
 }
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:28,代码来源:MemberQuery.php

示例4: header

if (count($_POST) == 0) {
    header("Location: ../user/index.php");
    exit;
}
#****************************************************************************
#*  Validate data
#****************************************************************************
$mbrid = $_POST["mbrid"];
$mbr = new Member();
$mbr->setMbrid($_POST["mbrid"]);
$mbr->setBarcodeNmbr($_POST["barcodeNmbr"]);
$_POST["barcodeNmbr"] = $mbr->getBarcodeNmbr();
$mbr->setLastChangeUserid($_SESSION["userid"]);
$mbr->setLastName($_POST["lastName"]);
$_POST["lastName"] = $mbr->getLastName();
$mbr->setFirstName($_POST["firstName"]);
$_POST["firstName"] = $mbr->getFirstName();
$mbr->setAddress($_POST["address"]);
$_POST["address"] = $mbr->getAddress();
$mbr->setHomePhone($_POST["homePhone"]);
$_POST["homePhone"] = $mbr->getHomePhone();
$mbr->setWorkPhone($_POST["workPhone"]);
$_POST["workPhone"] = $mbr->getWorkPhone();
$mbr->setCel($_POST["cel"]);
$_POST["cel"] = $mbr->getCel();
$mbr->setEmail($_POST["email"]);
$_POST["email"] = $mbr->getEmail();
$mbr->setFoto($_POST["foto"]);
$_POST["foto"] = $mbr->getFoto();
$mbr->setPassUser($_POST["passUser"]);
$_POST["passUser"] = $mbr->getPassUser();
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:user_edit.php

示例5: createFromSignup

 public static function createFromSignup($data, $refererMember, Invitation $invitation = null, PropelPDO $con)
 {
     // This functions expects this parameter to be valid!
     // E.g. the result from self::validateSignupForm()
     $now = time();
     if (!$con->beginTransaction()) {
         throw new Exception('Could not begin transaction');
     }
     try {
         $member = new Member();
         $member->setFirstName($data['firstName'])->setLastName($data['lastName'])->setEmail($data['email'])->setTitle($data['title'])->setCity($data['city'])->setCountry($data['country'])->setAge($data['age'])->setBankRecipient($data['bank_recipient'])->setIban($data['iban'])->setBic($data['bic'])->setPassword($data['password'])->setSignupDate($now);
         if ($invitation) {
             $member->setType($invitation->getType());
             if ($invitation->getFreeSignup()) {
                 $member->setPaidDate($now);
             }
             $invitation->setAcceptedDate($now);
         }
         $member->setRefererMember($refererMember, $con);
         $member->save($con);
         if ($invitation) {
             $invitation->setAcceptedMemberId($member->getId());
             $invitation->save($con);
         }
         if (!$con->commit()) {
             throw new Exception('Could not commit transaction');
         }
     } catch (Exception $e) {
         $con->rollBack();
         throw $e;
     }
     return $member;
 }
开发者ID:nikonehauser,项目名称:pt,代码行数:33,代码来源:Member.php

示例6: Member

 function _mkObj($array)
 {
     $mbr = new Member();
     $mbr->setMbrid($array["mbrid"]);
     $mbr->setBarcodeNmbr($array["barcode_nmbr"]);
     $mbr->setLastChangeDt($array["last_change_dt"]);
     $mbr->setLastChangeUserid($array["last_change_userid"]);
     if (isset($array["username"])) {
         $mbr->setLastChangeUsername($array["username"]);
     }
     $mbr->setLastName($array["last_name"]);
     $mbr->setFirstName($array["first_name"]);
     $mbr->setAddress($array["address"]);
     $mbr->setHomePhone($array["home_phone"]);
     $mbr->setWorkPhone($array["work_phone"]);
     $mbr->setEmail($array["email"]);
     $mbr->setClassification($array["classification"]);
     $mbr->_custom = $this->getCustomFields($array['mbrid']);
     return $mbr;
 }
开发者ID:aimakun,项目名称:odlib,代码行数:20,代码来源:MemberQuery.php

示例7: Member

 function _mkObj($array)
 {
     $mbr = new Member();
     $mbr->setMbrid($array["mbrid"]);
     $mbr->setBarcodeNmbr($array["barcode_nmbr"]);
     $mbr->setLastChangeDt($array["last_change_dt"]);
     $mbr->setLastChangeUserid($array["last_change_userid"]);
     if (isset($array["username"])) {
         $mbr->setLastChangeUsername($array["username"]);
     }
     $mbr->setGender($array["gender"]);
     $mbr->setSchoolId($array["schoolid"]);
     $mbr->setParentName($array["parent_name"]);
     $mbr->setParentOccupation($array["parent_occupation"]);
     $mbr->setMotherTongue($array["mother_tongue"]);
     $mbr->setStandard($array["standard"]);
     $mbr->setSchoolTeacher($array["school_teacher"]);
     $mbr->setGrade($array["grade"]);
     $mbr->setLastName($array["last_name"]);
     $mbr->setFirstName($array["first_name"]);
     $mbr->setAddress($array["address"]);
     $mbr->setHomePhone($array["home_phone"]);
     $mbr->setWorkPhone($array["work_phone"]);
     $mbr->setEmail($array["email"]);
     $mbr->setClassification($array["classification"]);
     $mbr->_custom = $this->getCustomFields($array['mbrid']);
     return $mbr;
 }
开发者ID:vishnu35,项目名称:Granthalay,代码行数:28,代码来源:MemberQuery.php

示例8: fclose

     if (count($row) > 0) {
         $rows[] = $row;
     }
     $row_count++;
 }
 fclose($handle);
 // Save to the database
 foreach ($rows as $row) {
     $member = new Member();
     $member->setMbrid($row['mbrid']);
     $member->setBarcodeNmbr($row['barcode_nmbr']);
     $member->setCreateDt($row['create_dt']);
     $member->setLastChangeDt($row['last_change_dt']);
     $member->setLastChangeUserid($row['last_change_userid']);
     $member->setLastName($row['last_name']);
     $member->setFirstName($row['first_name']);
     $member->setAddress($row['address']);
     $member->setHomePhone($row['home_phone']);
     $member->setWorkPhone($row['work_phone']);
     $member->setCel($row['cel']);
     $member->setEmail($row['email']);
     $member->setFoto($row['foto']);
     $member->setPassUser($row['pass_user']);
     $member->setBornDt($row['born_dt']);
     $member->setOther($row['other']);
     $member->setClassification($row['classification']);
     $member->setStatus($row['is_active']);
     $member->setLastActDate($row['last_activity_dt']);
     $mbrQ = new MemberQuery();
     $mbrQ->connect();
     $dupBarcode = $mbrQ->DupBarcode($row['barcode_nmbr']);
开发者ID:Giordano-Bruno,项目名称:GiordanoBruno,代码行数:31,代码来源:csv_import.php

示例9: createFromSignup

 public function createFromSignup($data, $referrerMember, \Invitation $invitation = null, \PropelPDO $con)
 {
     // This functions expects this parameter to be valid!
     // E.g. the result from $this->validateSignupForm()
     $now = time();
     if (!$con->beginTransaction()) {
         throw new \Exception('Could not begin transaction');
     }
     try {
         $member = new \Member();
         $member->setFirstName($data['firstName'])->setLastName($data['lastName'])->setEmail($data['email'])->setTitle($data['title'])->setCity($data['city'])->setZipCode($data['zip_code'])->setCountry('India')->setAge($data['age'])->setBankRecipient($data['bank_recipient'])->setIban($data['iban'])->setBic($data['bic'])->setPassword($data['password'])->setSignupDate($now)->setBonusIds('{}')->setPaidDate(null)->setIsExtended(1);
         $member->setHash(\Member::calcHash($member));
         $wasFreeInvitation = false;
         if ($invitation) {
             $invitationType = $invitation->getType();
             $member->setType($invitationType);
             // Special case if e.g. director invites another director.
             // The referrer of the referrer will be the referrer.
             // This is necessary because the same type can not be on same line vertical
             // but horizontal. E.g. Director can have more marketing leader under him
             // but only Directors next to him (NOT under him)
             if ($invitationType > \Member::TYPE_MEMBER && $referrerMember->getType() == $invitationType) {
                 $referrerMember = $referrerMember->getReferrerMember();
             }
             $invitation->setAcceptedDate($now);
             if ($invitation->getFreeSignup()) {
                 $member->setFreeInvitation(1);
                 $wasFreeInvitation = true;
             }
             // Deprecated code
             // if ( $invitation->getType() === \Member::TYPE_SUB_PROMOTER ) {
             //   $member->setSubPromoterReferral($invitation->getMeta()['promoter_id']);
             // }
         }
         $member->setReferrerMember($referrerMember, $con);
         $member->save($con);
         $member->setNum($member->getId() + 1000000);
         if ($invitation) {
             $invitation->setAcceptedMemberId($member->getId());
             $invitation->save($con);
             if ($wasFreeInvitation) {
                 $member->onReceivedMemberFee(\Transaction::$BASE_CURRENCY, $now, true, $con);
             }
         }
         if ($wasFreeInvitation) {
             \Tbmt\MailHelper::sendFreeSignupConfirm($member);
             \Tbmt\MailHelper::sendNewFreeRecruitmentCongrats($referrerMember, $member);
         } else {
             \Tbmt\MailHelper::sendSignupConfirm($member);
             \Tbmt\MailHelper::sendNewRecruitmentCongrats($referrerMember, $member);
         }
         $member->save($con);
         if (!$con->commit()) {
             throw new \Exception('Could not commit transaction');
         }
     } catch (\Exception $e) {
         $con->rollBack();
         throw $e;
     }
     return $member;
 }
开发者ID:nikonehauser,项目名称:ptclient,代码行数:61,代码来源:MemberStrategy.php


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