XOOPS  2.6.0
XoopsUserUtility Class Reference

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 ()
 

Detailed Description

Definition at line 23 of file userutility.php.

Member Function Documentation

static XoopsUserUtility::getIP (   $asString = false)
static

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 224 of file userutility.php.

References $_SERVER.

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

XoopsUserUtility::getUnameFromId()

Parameters
int$useridid of user
bool$userealuse real name if true
bool$linkedshow username as link to userinfo.php
Returns
string name or link

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().

Here is the call graph for this function:

Here is the caller graph for this function:

static XoopsUserUtility::getUnameFromIds (   $uids,
  $usereal = false,
  $linked = false 
)
static

XoopsUserUtility::getUnameFromIds()

Parameters
array$uidsarray of int ids
bool$userealuse real names if true
bool$linkedshow names as link to userinfo.php
Returns
array of strings, names or links

Definition at line 275 of file userutility.php.

References $criteria, $myts, $uid, $user_handler, $xoops, XoopsBaseConfig\get(), Xoops\getInstance(), and MyTextSanitizer\getInstance().

Here is the call graph for this function:

static XoopsUserUtility::sendWelcome (   $user)
static

XoopsUserUtility::sendWelcome

Parameters
int | XoopsUser$userid or user object
Returns
bool

Definition at line 32 of file userutility.php.

References $member_handler, $user, $xoops, XoopsLocaleEn_US\F_WELCOME_TO, and Xoops\getInstance().

Here is the call graph for this function:


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