Public Member Functions | |
| UserFactory ($SessionOrDb) | |
| CreateNewUser ($UserName, $Password, $PasswordAgain, $EMail, $EMailAgain, $IgnoreErrorCodes=NULL) | |
| Create new user. | |
| TestNewUserValues ($UserName, $Password, $PasswordAgain, $EMail, $EMailAgain) | |
| GetUserCount ($Condition=NULL) | |
| Return number of users in the system. | |
| GetMatchingUserCount () | |
| GetLoggedInUsers () | |
| GetUsersWithPrivileges () | |
| FindUsers ($SearchString, $FieldName="UserName", $SortFieldName="UserName", $Offset=0, $Count=9999999) | |
| FindUserNames ($SearchString, $FieldName="UserName", $SortFieldName="UserName", $Offset=0, $Count=9999999) | |
| GetMatchingUsers ($SearchString, $FieldName=NULL, $SortFieldName="UserName", $ResultsStartAt=0, $ReturnNumber=NULL) | |
| UserNameExists ($UserName) | |
| EMailAddressIsInUse ($Address) | |
| GetNewestUsers ($Limit=5) | |
| Get the users sorted by when they signed up, starting with those who signed up most recently. | |
| CompareUsersForSort ($UserA, $UserB) | |
Public Attributes | |
| $DB | |
| $Session | |
| $SortFieldName | |
| $MatchingUserCount | |
Definition at line 18 of file Axis--UserFactory.php.

| UserFactory::CompareUsersForSort | ( | $ | UserA, | |
| $ | UserB | |||
| ) |
Definition at line 490 of file Axis--UserFactory.php.
| UserFactory::CreateNewUser | ( | $ | UserName, | |
| $ | Password, | |||
| $ | PasswordAgain, | |||
| $ | EMail, | |||
| $ | EMailAgain, | |||
| $ | IgnoreErrorCodes = NULL | |||
| ) |
Create new user.
The second password and e-mail address parameters are intended for second copies of each entered by the user.
| UserName | Login name for new user. | |
| Password | Password for new user. | |
| PasswordAgain | Second copy of password entered by user. | |
| E-mail address for new user. | ||
| EMailAgain | Second copy of e-mail address entered by user. | |
| IgnoreErrorCodes | Array containing any error codes that should be ignored. (OPTIONAL) |
Definition at line 63 of file Axis--UserFactory.php.
References User::NormalizeUserName(), and TestNewUserValues().
| UserFactory::EMailAddressIsInUse | ( | $ | Address | ) |
Definition at line 440 of file Axis--UserFactory.php.
References User::NormalizeEMailAddress().
Referenced by TestNewUserValues().

| UserFactory::FindUserNames | ( | $ | SearchString, | |
| $ | FieldName = "UserName", |
|||
| $ | SortFieldName = "UserName", |
|||
| $ | Offset = 0, |
|||
| $ | Count = 9999999 | |||
| ) |
Definition at line 273 of file Axis--UserFactory.php.
Referenced by FindUsers().

| UserFactory::FindUsers | ( | $ | SearchString, | |
| $ | FieldName = "UserName", |
|||
| $ | SortFieldName = "UserName", |
|||
| $ | Offset = 0, |
|||
| $ | Count = 9999999 | |||
| ) |
Definition at line 253 of file Axis--UserFactory.php.
References $SortFieldName, and FindUserNames().
| UserFactory::GetLoggedInUsers | ( | ) |
Definition at line 202 of file Axis--UserFactory.php.
| UserFactory::GetMatchingUserCount | ( | ) |
Definition at line 196 of file Axis--UserFactory.php.
| UserFactory::GetMatchingUsers | ( | $ | SearchString, | |
| $ | FieldName = NULL, |
|||
| $ | SortFieldName = "UserName", |
|||
| $ | ResultsStartAt = 0, |
|||
| $ | ReturnNumber = NULL | |||
| ) |
Definition at line 306 of file Axis--UserFactory.php.
| UserFactory::GetNewestUsers | ( | $ | Limit = 5 |
) |
Get the users sorted by when they signed up, starting with those who signed up most recently.
By default, the number of users returned is five.
| $Limit | the maximum number of users to return |
Definition at line 460 of file Axis--UserFactory.php.
| UserFactory::GetUserCount | ( | $ | Condition = NULL |
) |
Return number of users in the system.
| Condition | SQL condition (without "WHERE") to limit user count. (OPTIONAL) |
Definition at line 188 of file Axis--UserFactory.php.
| UserFactory::GetUsersWithPrivileges | ( | ) |
Definition at line 224 of file Axis--UserFactory.php.
| UserFactory::TestNewUserValues | ( | $ | UserName, | |
| $ | Password, | |||
| $ | PasswordAgain, | |||
| $ | EMail, | |||
| $ | EMailAgain | |||
| ) |
Definition at line 102 of file Axis--UserFactory.php.
References EMailAddressIsInUse(), User::IsValidLookingEMailAddress(), User::IsValidPassword(), User::IsValidUserName(), User::NormalizeEMailAddress(), User::NormalizePassword(), User::NormalizeUserName(), and UserNameExists().
Referenced by CreateNewUser().

| UserFactory::UserFactory | ( | $ | SessionOrDb | ) |
Definition at line 23 of file Axis--UserFactory.php.
| UserFactory::UserNameExists | ( | $ | UserName | ) |
Definition at line 424 of file Axis--UserFactory.php.
References User::NormalizeUserName().
Referenced by TestNewUserValues().

| UserFactory::$DB |
Definition at line 484 of file Axis--UserFactory.php.
| UserFactory::$MatchingUserCount |
Definition at line 487 of file Axis--UserFactory.php.
| UserFactory::$Session |
| UserFactory::$SortFieldName |