Public Member Functions | |
| user ($id, $login, $password, $admin, $first_name, $last_name, $email, $lang, $ui_lang, $timestamp) | |
| setWatches ($watches) | |
| isWatching ($node_id) | |
| has user subscribed to this node | |
| isAdmin () | |
| is user an admin | |
| isModerator () | |
| is user a moderator | |
| isAnonymous () | |
| is user anonymous or not | |
Public Attributes | |
| $id | |
| database id | |
| $login | |
| login | |
| $password | |
| md5 encoded password | |
| $admin | |
| admin level (0=user, 1=moderator, 2=admin as defined in constants.lib.php) | |
| $first_name | |
| first name | |
| $last_name | |
| last name | |
| email | |
| $lang | |
| lang content | |
| $ui_lang | |
| ui lang code (i18n) | |
| $timestamp | |
| timestamp of creation | |
| $watches | |
| array<node_id> list of nodes subscribed | |
| user::isAdmin | ( | ) |
is user an admin
an admin should be considered a moderator, but isModerator() below will return false as the comparison is not intelligent (only database values are compared)
| user::isAnonymous | ( | ) |
is user anonymous or not
there is always a user object defined in our world if there is no user logged in, method createAnonymousUser is called on wiki and we can later see if our current user is logged in or not via this method
| user::isModerator | ( | ) |
is user a moderator
| user::isWatching | ( | $ | node_id | ) |
has user subscribed to this node
| node_id | database id of node to look at |
| user::$admin |
admin level (0=user, 1=moderator, 2=admin as defined in constants.lib.php)
| user::$email |
| user::$first_name |
first name
| user::$id |
database id
| user::$lang |
lang content
| user::$last_name |
last name
| user::$login |
login
| user::$password |
md5 encoded password
| user::$timestamp |
timestamp of creation
| user::$ui_lang |
ui lang code (i18n)
| user::$watches |
array<node_id> list of nodes subscribed
1.4.7