本文整理汇总了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 = "";