/**
* Get database id given a user name
* @param $name \string Username
- * @return \2types{\int,\null} The corresponding user's ID, or null if user is nonexistent
- * @static
+ * @return \types{\int,\null} The corresponding user's ID, or null if user is nonexistent
*/
static function idFromName( $name ) {
$nt = Title::makeTitleSafe( NS_USER, $name );
* Given unvalidated user input, return a canonical username, or false if
* the username is invalid.
* @param $name \string User input
- * @param $validate \2types{\string,\bool} Type of validation to use:
+ * @param $validate \types{\string,\bool} Type of validation to use:
* - false No validation
* - 'valid' Valid for batch processes
* - 'usable' Valid for batch processes and login
*
* @see getNewtalk()
* @param $field \string 'user_ip' for anonymous users, 'user_id' otherwise
- * @param $id \2types{\string,\int} User's IP address for anonymous users, User ID otherwise
+ * @param $id \types{\string,\int} User's IP address for anonymous users, User ID otherwise
* @param $fromMaster \bool true to fetch from the master, false for a slave
* @return \bool True if the user has new messages
* @private
/**
* Add or update the new messages flag
* @param $field \string 'user_ip' for anonymous users, 'user_id' otherwise
- * @param $id \2types{\string,\int} User's IP address for anonymous users, User ID otherwise
+ * @param $id \types{\string,\int} User's IP address for anonymous users, User ID otherwise
* @return \bool True if successful, false otherwise
* @private
*/
/**
* Clear the new messages flag for the given user
* @param $field \string 'user_ip' for anonymous users, 'user_id' otherwise
- * @param $id \2types{\string,\int} User's IP address for anonymous users, User ID otherwise
+ * @param $id \types{\string,\int} User's IP address for anonymous users, User ID otherwise
* @return \bool True if successful, false otherwise
* @private
*/
* login credentials aren't being hijacked with a foreign form
* submission.
*
- * @param $salt \2types{\string,\arrayof{\string}} Optional function-specific data for hashing
+ * @param $salt \types{\string,\arrayof{\string}} Optional function-specific data for hashing
* @return \string The new edit token
*/
function editToken( $salt = '' ) {
* Generate a new e-mail confirmation token and send a confirmation/invalidation
* mail to the user's given address.
*
- * @return \2types{\bool,\type{WikiError}} True on success, a WikiError object on failure.
+ * @return \types{\bool,\type{WikiError}} True on success, a WikiError object on failure.
*/
function sendConfirmationMail() {
global $wgLang;
* @param $body \string Message body
* @param $from \string Optional From address; if unspecified, default $wgPasswordSender will be used
* @param $replyto \string Reply-To address
- * @return \2types{\bool,\type{WikiError}} True on success, a WikiError object on failure
+ * @return \types{\bool,\type{WikiError}} True on success, a WikiError object on failure
*/
function sendMail( $subject, $body, $from = null, $replyto = null ) {
if( is_null( $from ) ) {
/**
* Get the timestamp of account creation.
*
- * @return \2types{\string,\bool} string Timestamp of account creation, or false for
+ * @return \types{\string,\bool} string Timestamp of account creation, or false for
* non-existent/anonymous user accounts.
*/
public function getRegistration() {
* Get the title of a page describing a particular group
*
* @param $group \string Internal group name
- * @return \2types{\type{Title},\bool} Title of the page if it exists, false otherwise
+ * @return \types{\type{Title},\bool} Title of the page if it exists, false otherwise
*/
static function getGroupPage( $group ) {
global $wgMessageCache;