Abricos | User
[ class tree: Abricos ] [ index: Abricos ] [ all elements ]

Class: CMSQUser

Исходное местоположение: /modules/user/module.php

Class CMSQUser

Constant Summary
Method Summary
static void   UserAdd()   Добавить пользователя в базу
static void   UserById()  
static void   UserCount()  
static Integer   UserExists()   Проверить наличие пользователя в базе по логину или эл. почте.
static void   UserList()  
static void   UserListAll()  
static void   UserPasswordInfoByUserName()  
static void   UserPrivateInfo()  
static void   UserPrivateInfoByUserName()  
static void   UserPublicInfo()  
static void   UserSave()  

[ Top ]
Methods
static method UserAdd  [line 291]

  static void UserAdd( CMSDatabase $db, &$user, [ $userGroupId = 3], Array $user  )

Добавить пользователя в базу

Parameters:
CMSDatabase   $db: 
Array   $user:  Указатель на массив данных пользователя
   &$user: 
   $userGroupId: 

API Tags:
Access:  public


[ Top ]
static method UserById  [line 186]

  static void UserById( CMSDatabase $db, $userid  )

Parameters:
CMSDatabase   $db: 
   $userid: 

API Tags:
Access:  public


[ Top ]
static method UserCount  [line 215]

  static void UserCount( CMSDatabase $db  )

Parameters:
CMSDatabase   $db: 

API Tags:
Access:  public


[ Top ]
static method UserExists  [line 267]

  static Integer UserExists( CMSDatabase $db, String $username, String $email  )

Проверить наличие пользователя в базе по логину или эл. почте.

Вернуть результат проверки:

  1. - такого пользователя нет в базе,
  2. - пользователь с таким логином уже зарегистрирован,
  3. - пользователь с таким email уже зарегистрирован

Parameters:
CMSDatabase   $db: 
String   $username: 
String   $email: 

API Tags:
Access:  public


[ Top ]
static method UserList  [line 238]

  static void UserList( CMSDatabase $db, $page, $limit  )

Parameters:
CMSDatabase   $db: 
   $page: 
   $limit: 

API Tags:
Access:  public


[ Top ]
static method UserListAll  [line 224]

  static void UserListAll( CMSDatabase $db  )

Parameters:
CMSDatabase   $db: 

API Tags:
Access:  public


[ Top ]
static method UserPasswordInfoByUserName  [line 171]

  static void UserPasswordInfoByUserName( CMSDatabase $db, $username, [ $retarray = false]  )

Parameters:
CMSDatabase   $db: 
   $username: 
   $retarray: 

API Tags:
Access:  public


[ Top ]
static method UserPrivateInfo  [line 138]

  static void UserPrivateInfo( CMSDatabase $db, $userid, [ $retarray = false]  )

Parameters:
CMSDatabase   $db: 
   $userid: 
   $retarray: 

API Tags:
Access:  public


[ Top ]
static method UserPrivateInfoByUserName  [line 155]

  static void UserPrivateInfoByUserName( CMSDatabase $db, $username, [ $retarray = false]  )

Parameters:
CMSDatabase   $db: 
   $username: 
   $retarray: 

API Tags:
Access:  public


[ Top ]
static method UserPublicInfo  [line 127]

  static void UserPublicInfo( CMSDatabase $db, $username  )

Parameters:
CMSDatabase   $db: 
   $username: 

API Tags:
Access:  public


[ Top ]
static method UserSave  [line 196]

  static void UserSave( CMSDatabase $db, $userid, $data  )

Parameters:
CMSDatabase   $db: 
   $userid: 
   $data: 

API Tags:
Access:  public


[ Top ]
Constants
FIELDS_USERPUB = "
userid as id,
username as unm,
usergroupid as ugp,
joindate as dl,
lastvisit as vst,
realname as rnm,
sex,
homepagename as hpnm,
homepage as hp,
birthday as bday,
icq,
skype
"
[line 112]

[ Top ]

Documentation generated on Thu, 31 Dec 2009 13:47:38 +0300 by phpDocumentor 1.4.3