XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsUserUtility Class Reference

Public Member Functions

 getIP ($asString=false)
 
 getUnameFromId ($userid, $usereal=false, $linked=false)
 
 getUnameFromIds ($uid, $usereal=false, $linked=false)
 
 sendWelcome ($user)
 
 validate ()
 

Detailed Description

Definition at line 28 of file userutility.php.

Member Function Documentation

XoopsUserUtility::getIP (   $asString = false)

Get client IP

Adapted from PMA_getIp() [phpmyadmin project]

Parameters
bool$asStringrequiring integer or dotted string
Returns
mixed string or integer value for the IP

Definition at line 217 of file userutility.php.

References $_SERVER.

Referenced by mod_getIP().

Here is the caller graph for this function:

XoopsUserUtility::getUnameFromId (   $userid,
  $usereal = false,
  $linked = false 
)

XoopsUserUtility::getUnameFromId()

Parameters
mixed$userid
mixed$usereal
mixed$linked
Returns

Definition at line 302 of file userutility.php.

References $GLOBALS, $member_handler, $myts, $user, MyTextSanitizer\getInstance(), and xoops_gethandler().

Referenced by mod_getUnameFromId(), and xoops_getLinkedUnameFromId().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsUserUtility::getUnameFromIds (   $uid,
  $usereal = false,
  $linked = false 
)

XoopsUserUtility::getUnameFromIds()

Parameters
mixed$uid
mixed$usereal
mixed$linked
Returns

Definition at line 261 of file userutility.php.

References $GLOBALS, $myts, $result, $sql, $uid, $xoopsDB, XoopsDatabaseFactory\getDatabaseConnection(), and MyTextSanitizer\getInstance().

Referenced by mod_getUnameFromIds().

Here is the call graph for this function:

Here is the caller graph for this function:

XoopsUserUtility::sendWelcome (   $user)

XoopsUserUtility::sendWelcome

Parameters
mixed$user
Returns

Definition at line 36 of file userutility.php.

References $config_handler, $member_handler, $user, $xoopsConfig, $xoopsConfigUser, _US_WELCOME_SUBJECT, XOOPS_CONF_USER, xoops_gethandler(), xoops_getMailer(), and xoops_loadLanguage().

Here is the call graph for this function:

XoopsUserUtility::validate ( )

$uname, $email, $pass = null, $vpass = null XoopsUserUtility::validate

Returns

if (strrpos($uname, ' ') > 0) { $stop .= _US_NICKNAMENOSPACES . '
'; }

Definition at line 82 of file userutility.php.

References $config_handler, $email, $myts, $pass, $result, $sql, $stop, $uid, $uname, $user, $vpass, $xoopsConfigUser, $xoopsDB, $xoopsUser, _US_EMAILNOSPACES, _US_EMAILTAKEN, _US_ENTERPWD, _US_INVALIDMAIL, _US_INVALIDNICKNAME, _US_NAMERESERVED, _US_NICKNAMETAKEN, _US_NICKNAMETOOLONG, _US_NICKNAMETOOSHORT, _US_PASSNOTSAME, _US_PWDTOOSHORT, checkEmail(), XoopsDatabaseFactory\getDatabaseConnection(), MyTextSanitizer\getInstance(), XOOPS_CONF_USER, xoops_gethandler(), xoops_loadLanguage(), and xoops_trim().

Referenced by userCheck().

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file: