本文整理匯總了PHP中UserInfo::SetLastName方法的典型用法代碼示例。如果您正苦於以下問題:PHP UserInfo::SetLastName方法的具體用法?PHP UserInfo::SetLastName怎麽用?PHP UserInfo::SetLastName使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類UserInfo
的用法示例。
在下文中一共展示了UserInfo::SetLastName方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: User
$message = "O primeiro nome do usuário não pode ser nulo.";
} else {
if ($usif_nick == "") {
$usif_nick = $usif_first_name;
}
$user = new User();
$user->SetDatabase($database);
$user->SetUsername($user_username);
$user->SetPassword($user_password1);
$user->SetActive(0);
$user->Insert();
$user->SelectByName();
$user_info = new UserInfo();
$user_info->SetDatabase($database);
$user_info->SetFirstName($usif_first_name);
$user_info->SetLastName($usif_last_name);
$user_info->SetNick($usif_nick);
$user_info->SetEmail($usif_email);
$user_info->SetUser($user->GetId());
if ($user_info->Insert()) {
$message_position = 8;
$message = $screen_module_name . " incluídas com sucesso. Aguarde a ativação do usuário pelo administrador.";
$usif_id = "";
$usif_first_name = "";
$usif_last_name = "";
$usif_nick = "";
$usif_email = "";
$usif_user_id = "";
$user_username = "";
$user_password1 = "";
$user_password2 = "";