XOOPS
2.6.0
|
Static Public Member Functions | |
static | getIP ($asString=false) |
static | getUnameFromId ($userid, $usereal=false, $linked=false) |
static | getUnameFromIds ($uids, $usereal=false, $linked=false) |
static | sendWelcome ($user) |
static | validate () |
Definition at line 23 of file userutility.php.
|
static |
Get client IP
Adapted from PMA_getIp() [phpmyadmin project]
bool | $asString | requiring integer or dotted string |
Definition at line 224 of file userutility.php.
References $_SERVER.
XoopsUserUtility::getUnameFromId()
int | $userid | id of user |
bool | $usereal | use real name if true |
bool | $linked | show username as link to userinfo.php |
Definition at line 320 of file userutility.php.
References $member_handler, $myts, $user, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and MyTextSanitizer\getInstance().
Referenced by CommentsCommentRenderer\_getPosterArray(), and CommentsCommentRenderer\_getPosterName().
XoopsUserUtility::getUnameFromIds()
array | $uids | array of int ids |
bool | $usereal | use real names if true |
bool | $linked | show names as link to userinfo.php |
Definition at line 275 of file userutility.php.
References $criteria, $myts, $uid, $user_handler, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and MyTextSanitizer\getInstance().
|
static |
int | XoopsUser | $user | id or user object |
Definition at line 32 of file userutility.php.
References $member_handler, $user, $xoops, XoopsLocaleEn_US\F_WELCOME_TO, and Xoops\getInstance().
|
static |
Definition at line 71 of file userutility.php.
References $count, $criteria, $email, $myts, $pass, $uid, $uname, $user, $user_handler, $vpass, $xoops, XoopsLocaleEn_US\E_EMAIL_SHOULD_NOT_CONTAIN_SPACES, XoopsLocaleEn_US\E_EMAIL_TAKEN, XoopsLocaleEn_US\E_INVALID_EMAIL, XoopsLocaleEn_US\E_INVALID_USERNAME, XoopsLocaleEn_US\E_MUST_PROVIDE_PASSWORD, XoopsLocaleEn_US\E_NAME_IS_RESERVED, XoopsLocaleEn_US\E_PASSWORDS_MUST_MATCH, XoopsLocaleEn_US\E_USERNAME_TAKEN, XoopsLocaleEn_US\EF_PASSWORD_MUST_BE_GREATER_THAN, XoopsLocaleEn_US\EF_USERNAME_MUST_BE_LESS_THAN, XoopsLocaleEn_US\EF_USERNAME_MUST_BE_MORE_THAN, Xoops\getInstance(), MyTextSanitizer\getInstance(), and Xoops_Locale_Abstract\trim().