本文整理汇总了PHP中member::setcountry方法的典型用法代码示例。如果您正苦于以下问题:PHP member::setcountry方法的具体用法?PHP member::setcountry怎么用?PHP member::setcountry使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类member
的用法示例。
在下文中一共展示了member::setcountry方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: member
$exists_email = motor::exists_email($_POST["txtsignup_email"]);
if ($exists_email == true) {
$error_signup_email = exists_email;
} else {
$member = new member();
$member->setusername($_POST["txtsignup_username"]);
$member->setname($_POST["txtsignup_name"]);
$member->setemail($_POST["txtsignup_email"]);
$member->setpassword($_POST["txtsignup_password"]);
$member->setsex($_POST["cmbiam"]);
$member->setbirthday_day($_POST["cmbbirthday_day"]);
$member->setbirthday_month($_POST["cmbbirthday_month"]);
$member->setbirthday_year($_POST["cmbbirthday_year"]);
$country = new country();
$country->setid($_POST["cmbcountry"]);
$member->setcountry($country);
motor::signup($member);
$_SESSION["signup_thanks"] = $_POST["txtsignup_email"];
header("Location: signup_ok.php");
}
}
}
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php
echo page_signup_title . " | " . motor::sitename();
示例2: create_member
protected static function create_member($obj)
{
$member = new member();
$member->setid($obj["id"]);
$member->setusername($obj["username"]);
$member->setname($obj["name"]);
$member->setemail($obj["email"]);
$member->setpassword($obj["password"]);
$member->setsex($obj["sex"]);
$member->setbirthday_day($obj["birthday_day"]);
$member->setbirthday_month($obj["birthday_month"]);
$member->setbirthday_year($obj["birthday_year"]);
$member->setcountry(self::country($obj["id_country"]));
$member->settype(self::type($obj["id_type"]));
$member->setlang(self::language("id=" . $obj["id_lang"]));
$member->setstate($obj["state"]);
$member->setcode_signup($obj["code_signup"]);
$member->setsignup_date($obj["signup_date"]);
$member->setlast_login($obj["last_login"]);
$member->setlast_ip($obj["last_ip"]);
return $member;
}