Creates a new user instance.
public static function UnbUser::Create ($displayName = null, $loginName = null, $loginPassword = null, $newId = null, $copyDefaultSettings = false);
(string) New user's display name or null
(max. 255 characters)
(string) New user's login name or null
(max. 255 characters)
(string) New user's login password or null
(used with loginName)
(int) Use this ID for the new user instead of automatically generating one. This is meant to be used for setup and maintenance only!
(bool) Copy the default user settings to the newly created user
The newly created UnbUser object
The newly created user instance is also stored in the database.
If a user ID is automatically generated, a random number of KeyLength decimal digits is generated. If the new ID is not unique, it will be retried 50 times before the process fails.
InvalidArgumentException | No description available. |
LengthException | No description available. |
UnbSecurityException | If the display or login name are already assigned. |
UnbDatabaseException | No description available. |
Member of class: UnbUser
Implementation file: user.class.php, line 156
© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.