PHP Classes

File: htdocs/Frameworks/art/functions.user.php

Recommend this page to a friend!
  Classes of Michael Beck   Xoops 2.5   htdocs/Frameworks/art/functions.user.php   Download  
File: htdocs/Frameworks/art/functions.user.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Xoops 2.5
Modular content management publication system
Author: By
Last change:
Date: 7 years ago
Size: 1,633 bytes
 

Contents

Class file image Download
<?php
/**
 * user/member handlers
 *
 * @copyright (c) 2000-2016 XOOPS Project (www.xoops.org)
 * @license GNU GPL 2 (http://www.gnu.org/licenses/gpl-2.0.html)
 * @author Taiwen Jiang <phppp@users.sourceforge.net>
 * @since 1.00
 * @package Frameworks
 * @subpackage art
 */
if (!defined('FRAMEWORKS_ART_FUNCTIONS_USER')):
   
define('FRAMEWORKS_ART_FUNCTIONS_USER', true);

   
xoops_load('XoopsUserUtility');

   
/**
     * @param bool $asString
     *
     * @return mixed
     */
   
function mod_getIP($asString = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Deprecated function '" . __FUNCTION__ . "', use XoopsUserUtility directly.");

        return
XoopsUserUtility::getIP($asString);
    }

   
/**
     * @param $uid
     * @param bool $usereal
     * @param bool $linked
     *
     * @return array
     */
   
function &mod_getUnameFromIds($uid, $usereal = false, $linked = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Deprecated function '" . __FUNCTION__ . "', use XoopsUserUtility directly.");
       
$ids = XoopsUserUtility::getUnameFromIds($uid, $usereal, $linked);

        return
$ids;
    }

   
/**
     * @param $uid
     * @param int $usereal
     * @param bool $linked
     *
     * @return string
     */
   
function mod_getUnameFromId($uid, $usereal = 0, $linked = false)
    {
       
$GLOBALS['xoopsLogger']->addDeprecated("Deprecated function '" . __FUNCTION__ . "', user XoopsUserUtility directly.");

        return
XoopsUserUtility::getUnameFromId($uid, $usereal, $linked);
    }

endif;