本文整理汇总了PHP中Member::setLastName方法的典型用法代码示例。如果您正苦于以下问题:PHP Member::setLastName方法的具体用法?PHP Member::setLastName怎么用?PHP Member::setLastName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Member
的用法示例。
在下文中一共展示了Member::setLastName方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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);
}
示例2: header
#* Checking for post vars. Go back to form if none found.
#****************************************************************************
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();
示例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;
}
示例4: 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;
}
示例5: 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;
}
示例6: 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();