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; }