Definition at line 500 of file user.php.
◆ create()
& create |
( |
| $isNew = true | ) |
|
create a new user
- Parameters
-
bool | $isNew | flag the new objects as "new"? |
- Returns
- object XoopsUser
Definition at line 509 of file user.php.
◆ delete()
delete |
( |
& | $user, |
|
|
| $force = false ) |
delete a user from the database
- Parameters
-
object | $user | reference to the user to delete |
bool | $force | |
- Returns
- bool FALSE if failed.
Definition at line 633 of file user.php.
◆ deleteAll()
deleteAll |
( |
| $criteria = null | ) |
|
delete users matching a set of conditions
- Parameters
-
- Returns
- bool FALSE if deletion failed
Definition at line 773 of file user.php.
◆ get()
◆ getCount()
getCount |
( |
| $criteria = null | ) |
|
count users matching a condition
- Parameters
-
- Returns
- int count of users
Definition at line 753 of file user.php.
◆ getObjects()
& getObjects |
( |
| $criteria = null, |
|
|
| $id_as_key = false ) |
retrieve users from the database
- Parameters
-
object | $criteria | CriteriaElement conditions to be met |
bool | $id_as_key | use the UID as key for the array? |
- Returns
- array array of
XoopsUser
objects
Definition at line 691 of file user.php.
◆ getObjectsByLevel()
& getObjectsByLevel |
( |
| $level = 0 | ) |
|
This method is called from pmlite.php. Wmm.. Type:expand (no using criteria).
- Author
- minahito
- Parameters
-
- Returns
- array
Definition at line 728 of file user.php.
◆ getUnames()
getUnames |
( |
| $criteria = null, |
|
|
| $id_as_key = false ) |
Get unames from the database
- Parameters
-
object | $criteria | CriteriaElement conditions to be met |
bool | $id_as_key | use the UID as key for the array? |
- Returns
- array array of uname
Definition at line 657 of file user.php.
◆ insert()
insert |
( |
& | $user, |
|
|
| $force = false ) |
insert a new user in the database
- Parameters
-
object | $user | reference to the XoopsUser object |
bool | $force | |
- Returns
- bool FALSE if failed, TRUE if already present and unchanged or successful
Definition at line 548 of file user.php.
◆ updateAll()
updateAll |
( |
| $fieldname, |
|
|
| $fieldvalue, |
|
|
| $criteria = null ) |
Change a value for users with a certain criteria
- Parameters
-
string | $fieldname | Name of the field |
string | $fieldvalue | Value to write |
object | $criteria | CriteriaElement |
- Returns
- bool
Definition at line 794 of file user.php.
The documentation for this class was generated from the following file: