User Class Reference
Public Member Functions | |
User (&$SessionOrDb, $UserInfo=NULL) | |
Status () | |
StatusMessage ($StatusCode=NULL) | |
Delete () | |
Id () | |
Name () | |
LastLocation ($NewLocation=NULL) | |
LastActiveDate () | |
LastIPAddress () | |
Get ($FieldName) | |
GetDate ($FieldName, $Format="") | |
Set ($FieldName, $NewValue) | |
Login ($UserName, $Password, $IgnorePassword=FALSE) | |
Logout () | |
GetPasswordSalt ($UserName) | |
IsLoggedIn () | |
IsNotLoggedIn () | |
ChangePassword ($OldPassword, $NewPassword, $NewPasswordAgain) | |
SetPassword ($NewPassword) | |
CreateNewUserWithEMailedPassword ($UserName, $EMail, $EMailAgain, $TemplateFile="Axis--User--EMailTemplate.txt") | |
CreateNewUserAndMailPasswordFromFile ($UserName, $EMail, $EMailAgain, $TemplateFile="Axis--User--EMailTemplate.txt") | |
CreateNewUserAndMailPassword ($UserName, $EMail, $EMailAgain, $EMailSubject, $EMailBody) | |
GetActivationCode () | |
IsActivationCodeGood ($Code) | |
IsActivated ($NewValue=DB_NOVALUE) | |
GetResetCode () | |
IsResetCodeGood ($Code) | |
GetMailChangeCode () | |
IsMailChangeCodeGood ($Code) | |
SendEMail ($TemplateTextOrFileName, $FromAddress=NULL, $MoreSubstitutions=NULL, $ToAddress=NULL) | |
HasPriv ($Privilege, $Privilege2=NULL, $Privilege3=NULL, $Privilege4=NULL, $Privilege5=NULL, $Privilege6=NULL) | |
GrantPriv ($Privilege) | |
RevokePriv ($Privilege) | |
GetPrivList () | |
SetPrivList ($NewPrivileges) | |
GetUniqueCode ($SeedString, $CodeLength) | |
GetRandomPassword ($PasswordMinLength=6, $PasswordMaxLength=8) | |
UpdateValue ($FieldName, $NewValue=DB_NOVALUE) | |
GivePriv ($Privilege) | |
Static Public Member Functions | |
static | IsValidUserName ($UserName) |
static | IsValidPassword ($Password) |
static | IsValidLookingEMailAddress ($EMail) |
static | NormalizeEMailAddress ($EMailAddress) |
static | NormalizeUserName ($UserName) |
static | NormalizePassword ($Password) |
Public Attributes | |
$DB | |
$Session | |
$UserId | |
$Result | |
$LoggedIn | |
$DBFields |
Detailed Description
Definition at line 42 of file Axis--User.php.

Member Function Documentation
User::ChangePassword | ( | $ | OldPassword, |
$ | NewPassword, | ||
$ | NewPasswordAgain | ||
) |
Definition at line 384 of file Axis--User.php.
References IsLoggedIn(), IsValidPassword(), and SetPassword().
User::CreateNewUserAndMailPassword | ( | $ | UserName, |
$ | EMail, | ||
$ | EMailAgain, | ||
$ | EMailSubject, | ||
$ | EMailBody | ||
) |
Definition at line 459 of file Axis--User.php.
References $Result, GetRandomPassword(), IsValidLookingEMailAddress(), and Set().
Referenced by CreateNewUserAndMailPasswordFromFile().

User::CreateNewUserAndMailPasswordFromFile | ( | $ | UserName, |
$ | EMail, | ||
$ | EMailAgain, | ||
$ | TemplateFile = "Axis--User--EMailTemplate.txt" |
||
) |
Definition at line 446 of file Axis--User.php.
References CreateNewUserAndMailPassword().
Referenced by CreateNewUserWithEMailedPassword().

User::CreateNewUserWithEMailedPassword | ( | $ | UserName, |
$ | EMail, | ||
$ | EMailAgain, | ||
$ | TemplateFile = "Axis--User--EMailTemplate.txt" |
||
) |
Definition at line 438 of file Axis--User.php.
References CreateNewUserAndMailPasswordFromFile().
User::Delete | ( | ) |
Definition at line 163 of file Axis--User.php.
User::Get | ( | $ | FieldName ) |
Definition at line 214 of file Axis--User.php.
References UpdateValue().
Referenced by GetMailChangeCode(), GetUniqueCode(), LastActiveDate(), LastIPAddress(), LastLocation(), Name(), and SendEMail().

User::GetActivationCode | ( | ) |
Definition at line 521 of file Axis--User.php.
References GetUniqueCode().
Referenced by IsActivationCodeGood(), and SendEMail().

User::GetDate | ( | $ | FieldName, |
$ | Format = "" |
||
) |
Definition at line 220 of file Axis--User.php.
User::GetMailChangeCode | ( | ) |
Definition at line 557 of file Axis--User.php.
References Get(), and GetUniqueCode().
Referenced by IsMailChangeCodeGood(), and SendEMail().

User::GetPasswordSalt | ( | $ | UserName ) |
Definition at line 340 of file Axis--User.php.
References $Result.
User::GetPrivList | ( | ) |
Definition at line 729 of file Axis--User.php.
User::GetRandomPassword | ( | $ | PasswordMinLength = 6 , |
$ | PasswordMaxLength = 8 |
||
) |
Definition at line 810 of file Axis--User.php.
Referenced by CreateNewUserAndMailPassword().

User::GetResetCode | ( | ) |
Definition at line 542 of file Axis--User.php.
References GetUniqueCode().
Referenced by IsResetCodeGood(), and SendEMail().

User::GetUniqueCode | ( | $ | SeedString, |
$ | CodeLength | ||
) |
Definition at line 755 of file Axis--User.php.
References Get().
Referenced by GetActivationCode(), GetMailChangeCode(), and GetResetCode().

User::GivePriv | ( | $ | Privilege ) |
Definition at line 828 of file Axis--User.php.
References GrantPriv().
User::GrantPriv | ( | $ | Privilege ) |
Definition at line 685 of file Axis--User.php.
Referenced by GivePriv(), and SetPrivList().

User::HasPriv | ( | $ | Privilege, |
$ | Privilege2 = NULL , |
||
$ | Privilege3 = NULL , |
||
$ | Privilege4 = NULL , |
||
$ | Privilege5 = NULL , |
||
$ | Privilege6 = NULL |
||
) |
Definition at line 656 of file Axis--User.php.
References IsLoggedIn().
User::Id | ( | ) |
Definition at line 179 of file Axis--User.php.
Referenced by SPTUser::SPTUser(), and SPTUser::UUPUpdateValue().

User::IsActivated | ( | $ | NewValue = DB_NOVALUE ) |
Definition at line 536 of file Axis--User.php.
References UpdateValue().
User::IsActivationCodeGood | ( | $ | Code ) |
Definition at line 529 of file Axis--User.php.
References GetActivationCode().
User::IsLoggedIn | ( | ) |
Definition at line 377 of file Axis--User.php.
Referenced by ChangePassword(), HasPriv(), and SPTUser::SPTUser().

User::IsMailChangeCodeGood | ( | $ | Code ) |
Definition at line 565 of file Axis--User.php.
References GetMailChangeCode().
User::IsNotLoggedIn | ( | ) |
Definition at line 378 of file Axis--User.php.
User::IsResetCodeGood | ( | $ | Code ) |
Definition at line 550 of file Axis--User.php.
References GetResetCode().
static User::IsValidLookingEMailAddress | ( | $ | EMail ) | [static] |
Definition at line 786 of file Axis--User.php.
Referenced by CreateNewUserAndMailPassword(), and UserFactory::TestNewUserValues().

static User::IsValidPassword | ( | $ | Password ) | [static] |
Definition at line 779 of file Axis--User.php.
Referenced by ChangePassword(), and UserFactory::TestNewUserValues().

static User::IsValidUserName | ( | $ | UserName ) | [static] |
Definition at line 773 of file Axis--User.php.
Referenced by UserFactory::FindUserNames(), and UserFactory::TestNewUserValues().

User::LastActiveDate | ( | ) |
Definition at line 204 of file Axis--User.php.
References Get().
User::LastIPAddress | ( | ) |
Definition at line 208 of file Axis--User.php.
References Get().
User::LastLocation | ( | $ | NewLocation = NULL ) |
Definition at line 187 of file Axis--User.php.
References Get().
User::Login | ( | $ | UserName, |
$ | Password, | ||
$ | IgnorePassword = FALSE |
||
) |
Definition at line 248 of file Axis--User.php.
References Session::RegisterVariable().
User::Logout | ( | ) |
Definition at line 327 of file Axis--User.php.
References Session::UnregisterVariable().
User::Name | ( | ) |
Definition at line 183 of file Axis--User.php.
References Get().
static User::NormalizeEMailAddress | ( | $ | EMailAddress ) | [static] |
Definition at line 792 of file Axis--User.php.
Referenced by UserFactory::EMailAddressIsInUse(), and UserFactory::TestNewUserValues().

static User::NormalizePassword | ( | $ | Password ) | [static] |
Definition at line 804 of file Axis--User.php.
Referenced by UserFactory::TestNewUserValues().

static User::NormalizeUserName | ( | $ | UserName ) | [static] |
Definition at line 798 of file Axis--User.php.
Referenced by UserFactory::CreateNewUser(), UserFactory::TestNewUserValues(), and UserFactory::UserNameExists().

User::RevokePriv | ( | $ | Privilege ) |
Definition at line 717 of file Axis--User.php.
User::SendEMail | ( | $ | TemplateTextOrFileName, |
$ | FromAddress = NULL , |
||
$ | MoreSubstitutions = NULL , |
||
$ | ToAddress = NULL |
||
) |
Definition at line 572 of file Axis--User.php.
References $Result, Get(), GetActivationCode(), GetMailChangeCode(), GetResetCode(), and Status().
User::Set | ( | $ | FieldName, |
$ | NewValue | ||
) |
Definition at line 238 of file Axis--User.php.
References UpdateValue().
Referenced by CreateNewUserAndMailPassword().

User::SetPassword | ( | $ | NewPassword ) |
Definition at line 429 of file Axis--User.php.
References UpdateValue().
Referenced by ChangePassword().

User::SetPrivList | ( | $ | NewPrivileges ) |
Definition at line 737 of file Axis--User.php.
References GrantPriv().
User::Status | ( | ) |
Definition at line 120 of file Axis--User.php.
Referenced by SendEMail().

User::StatusMessage | ( | $ | StatusCode = NULL ) |
Definition at line 126 of file Axis--User.php.
User::UpdateValue | ( | $ | FieldName, |
$ | NewValue = DB_NOVALUE |
||
) |
Definition at line 821 of file Axis--User.php.
Referenced by Get(), IsActivated(), Set(), and SetPassword().

User::User | ( | &$ | SessionOrDb, |
$ | UserInfo = NULL |
||
) |
Definition at line 46 of file Axis--User.php.
References Session::Get().
Referenced by SPTUser::SPTUser().

Member Data Documentation
User::$DB |
Reimplemented in SPTUser.
Definition at line 765 of file Axis--User.php.
User::$DBFields |
Definition at line 770 of file Axis--User.php.
User::$LoggedIn |
Definition at line 769 of file Axis--User.php.
User::$Result |
Definition at line 768 of file Axis--User.php.
Referenced by CreateNewUserAndMailPassword(), GetPasswordSalt(), and SendEMail().
User::$Session |
Definition at line 766 of file Axis--User.php.
Referenced by SPTUser::SPTUser().
User::$UserId |
Definition at line 767 of file Axis--User.php.
The documentation for this class was generated from the following file: