79 return new self(
null,
true );
94 throw new \InvalidArgumentException(
'Invalid ID' );
109 UserRigorOptions::RIGOR_USABLE
112 throw new \InvalidArgumentException(
'Invalid user name' );
132 return $this->user ===
null;
149 return $this->user ===
null ? 0 : $this->user->getId();
157 return $this->user ===
null ? null : $this->user->getName();
165 return $this->user ===
null || $this->user->getId() === 0 ?
'' : $this->user->getToken(
false );
173 return $this->user ??
new User;
185 if ( $this->user ===
null ) {
189 ( $this->
verified ?
'+' :
'-' ) .
':' .
The User object encapsulates all of the user-specific settings (user_id, name, rights,...
getName()
Get the user name, or the IP of an anonymous user.
load( $flags=self::READ_NORMAL)
Load the user table data for this object from the source given by mFrom.
isAnon()
Get whether the user is anonymous.