MediaWiki REL1_35
|
Public Member Functions | |
__construct (UserNameUtils $userNameUtils) | |
newAnonymous ( $ip=null) | |
Returns a new anonymous User based on ip. | |
newFromActorId (int $actorId) | |
newFromAnyId (?int $userId, ?string $userName, ?int $actorId, $dbDomain=false) | |
newFromConfirmationCode (string $confirmationCode, int $flags=self::READ_NORMAL) | |
newFromId (int $id) | |
newFromName (string $name, string $validate=UserNameUtils::RIGOR_VALID) | |
newFromUserIdentity (UserIdentity $userIdentity) | |
Private Attributes | |
UserNameUtils | $userNameUtils |
Additional Inherited Members | |
Public Attributes inherited from IDBAccessObject | |
const | READ_LOCKING = self::READ_LATEST | 2 |
Constants for object loading bitfield flags (higher => higher QoS) | |
const | READ_NONE = -1 |
Creates User objects.
For now, there is nothing interesting in this class. It is meant for preventing static User methods causing problems in unit tests.
Definition at line 36 of file UserFactory.php.
MediaWiki\User\UserFactory::__construct | ( | UserNameUtils | $userNameUtils | ) |
UserNameUtils | $userNameUtils |
Definition at line 46 of file UserFactory.php.
References MediaWiki\User\UserFactory\$userNameUtils.
MediaWiki\User\UserFactory::newAnonymous | ( | $ip = null | ) |
Returns a new anonymous User based on ip.
string | null | $ip | IP address |
Definition at line 72 of file UserFactory.php.
References User\isIP(), MediaWiki\User\UserFactory\newFromName(), and MediaWiki\User\UserNameUtils\RIGOR_NONE.
MediaWiki\User\UserFactory::newFromActorId | ( | int | $actorId | ) |
int | $actorId |
Definition at line 100 of file UserFactory.php.
MediaWiki\User\UserFactory::newFromAnyId | ( | ?int | $userId, |
?string | $userName, | ||
?int | $actorId, | ||
$dbDomain = false |
|||
) |
?int | $userId | |
?string | $userName | |
?int | $actorId | |
bool | string | $dbDomain |
Definition at line 129 of file UserFactory.php.
MediaWiki\User\UserFactory::newFromConfirmationCode | ( | string | $confirmationCode, |
int | $flags = self::READ_NORMAL |
||
) |
string | $confirmationCode | |
int | $flags |
Definition at line 144 of file UserFactory.php.
References User\newFromConfirmationCode().
MediaWiki\User\UserFactory::newFromId | ( | int | $id | ) |
int | $id |
Definition at line 91 of file UserFactory.php.
MediaWiki\User\UserFactory::newFromName | ( | string | $name, |
string | $validate = UserNameUtils::RIGOR_VALID |
||
) |
string | $name | |
string | $validate | Validation strategy, one of the UserNameUtils::RIGOR_* constants. For no validation, use UserNameUtils::RIGOR_NONE. |
Definition at line 57 of file UserFactory.php.
References User\newFromName().
Referenced by MediaWiki\User\UserFactory\newAnonymous().
MediaWiki\User\UserFactory::newFromUserIdentity | ( | UserIdentity | $userIdentity | ) |
UserIdentity | $userIdentity |
Definition at line 109 of file UserFactory.php.
|
private |
Definition at line 41 of file UserFactory.php.
Referenced by MediaWiki\User\UserFactory\__construct().