| [ Index ] |
|
Code source de XOOPS 2.0.17.1 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 666 lignes (23 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
XoopsUser:: (40 méthodes):
XoopsUser()
isGuest()
getUnameFromId()
incrementPost()
setGroups()
getGroups()
groups()
isAdmin()
rank()
isActive()
isOnline()
uid()
name()
uname()
email()
url()
user_avatar()
user_regdate()
user_icq()
user_from()
user_sig()
user_viewemail()
actkey()
user_aim()
user_yim()
user_msnm()
pass()
posts()
attachsig()
level()
theme()
timezone()
umode()
uorder()
notify_method()
notify_mode()
user_occ()
bio()
user_intrest()
last_login()
XoopsGuestUser:: (1 méthode):
isGuest()
XoopsUserHandler:: (8 méthodes):
create()
get()
insert()
delete()
getObjects()
getCount()
deleteAll()
updateAll()
| XoopsUser($id = null) X-Ref |
| constructor param: array $id Array of key-value-pairs to be assigned to the user. (for backward compatibility only) param: int $id ID of the user to be loaded from the database. |
| isGuest() X-Ref |
| check if the user is a guest user return: bool returns false |
| getUnameFromId( $userid, $usereal = 0 ) X-Ref |
| Updated by Catzwolf 11 Jan 2004 find the username for a given ID param: int $userid ID of the user to find param: int $usereal switch for usename or realname return: string name of the user. name for "anonymous" if not found. |
| incrementPost() X-Ref |
| increase the number of posts for the user |
| setGroups($groupsArr) X-Ref |
| set the groups for the user param: array $groupsArr Array of groups that user belongs to |
| getGroups() X-Ref |
| get the groups that the user belongs to return: array array of groups |
| groups() X-Ref |
| alias for {@link getGroups()} return: array array of groups |
| isAdmin( $module_id = null ) X-Ref |
| Is the user admin ? This method will return true if this user has admin rights for the specified module.<br /> - If you don't specify any module ID, the current module will be checked.<br /> - If you set the module_id to -1, it will return true if the user has admin rights for at least one module param: int $module_id check if user is admin of this module return: bool is the user admin of that module? |
| rank() X-Ref |
| get the user's rank return: array array of rank ID and title |
| isActive() X-Ref |
| is the user activated? return: bool |
| isOnline() X-Ref |
| is the user currently logged in? return: bool |
| uid() X-Ref |
| get the users UID return: int |
| name($format="S") X-Ref |
| get the users name param: string $format format for the output, see {@link XoopsObject::getVar()} return: string |
| uname($format="S") X-Ref |
| get the user's uname param: string $format format for the output, see {@link XoopsObject::getVar()} return: string |
| email($format="S") X-Ref |
| get the user's email param: string $format format for the output, see {@link XoopsObject::getVar()} return: string |
| url($format="S") X-Ref |
| Pas de description |
| user_avatar($format="S") X-Ref |
| Pas de description |
| user_regdate() X-Ref |
| Pas de description |
| user_icq($format="S") X-Ref |
| Pas de description |
| user_from($format="S") X-Ref |
| Pas de description |
| user_sig($format="S") X-Ref |
| Pas de description |
| user_viewemail() X-Ref |
| Pas de description |
| actkey() X-Ref |
| Pas de description |
| user_aim($format="S") X-Ref |
| Pas de description |
| user_yim($format="S") X-Ref |
| Pas de description |
| user_msnm($format="S") X-Ref |
| Pas de description |
| pass() X-Ref |
| Pas de description |
| posts() X-Ref |
| Pas de description |
| attachsig() X-Ref |
| Pas de description |
| level() X-Ref |
| Pas de description |
| theme() X-Ref |
| Pas de description |
| timezone() X-Ref |
| Pas de description |
| umode() X-Ref |
| Pas de description |
| uorder() X-Ref |
| Pas de description |
| notify_method() X-Ref |
| Pas de description |
| notify_mode() X-Ref |
| Pas de description |
| user_occ($format="S") X-Ref |
| Pas de description |
| bio($format="S") X-Ref |
| Pas de description |
| user_intrest($format="S") X-Ref |
| Pas de description |
| last_login() X-Ref |
| Pas de description |
Classe: XoopsUserHandler - X-Ref
XOOPS user handler class.| create($isNew = true) X-Ref |
| create a new user param: bool $isNew flag the new objects as "new"? return: object XoopsUser |
| get($id) X-Ref |
| retrieve a user param: int $id UID of the user return: mixed reference to the {@link XoopsUser} object, FALSE if failed |
| insert(&$user, $force = false) X-Ref |
| insert a new user in the database param: object $user reference to the {@link XoopsUser} object param: bool $force return: bool FALSE if failed, TRUE if already present and unchanged or successful |
| delete(&$user, $force = false) X-Ref |
| delete a user from the database param: object $user reference to the user to delete param: bool $force return: bool FALSE if failed. |
| getObjects($criteria = null, $id_as_key = false) X-Ref |
| retrieve users from the database param: object $criteria {@link CriteriaElement} conditions to be met param: bool $id_as_key use the UID as key for the array? return: array array of {@link XoopsUser} objects |
| getCount($criteria = null) X-Ref |
| count users matching a condition param: object $criteria {@link CriteriaElement} to match return: int count of users |
| deleteAll($criteria = null) X-Ref |
| delete users matching a set of conditions param: object $criteria {@link CriteriaElement} return: bool FALSE if deletion failed |
| updateAll($fieldname, $fieldvalue, $criteria = null) X-Ref |
| Change a value for users with a certain criteria param: string $fieldname Name of the field param: string $fieldvalue Value to write param: object $criteria {@link CriteriaElement} return: bool |
| Généré le : Sun Nov 25 11:44:32 2007 | par Balluche grâce à PHPXref 0.7 |
|