Tariqa
3.0
|
Public Member Functions | |
getUserId () | |
getAttributeList () | |
isMemberOf ($groups, $binary_and=false) | |
get_preference ($name) | |
set_preference ($name, $value, $db=null) | |
get_access_level () | |
__get ($attributeName) | |
__set ($attributeName, $value) | |
__isset ($attributeName) | |
__unset ($attributeName) |
__get | ( | $ | attributeName | ) |
Accessor, quickly access the user's attributes using object style syntax
Implemented in EC_User.
__isset | ( | $ | attributeName | ) |
Accessor, quickly access the user's attributes using object style syntax
Implemented in EC_User.
__set | ( | $ | attributeName, |
$ | value | ||
) |
Accessor, quickly access the user's attributes using object style syntax
Implemented in EC_User.
__unset | ( | $ | attributeName | ) |
Accessor, quickly access the user's attributes using object style syntax
Implemented in EC_User.
get_access_level | ( | ) |
get_preference | ( | $ | name | ) |
Gets an user preference. Returns null if the preference is not set
string | $name | The name of the preference public |
Implemented in EC_User.
getAttributeList | ( | ) |
isMemberOf | ( | $ | groups, |
$ | binary_and = false |
||
) |
Check the group membership of an user
string | array | $groups | Either the name of a group or an array of group names against which to check the membership of the user |
bool | $binary_and | If set to true, the user must be a member of ALL the groups in the list, otherwise it must belong to at least one of the groups |
Implemented in EC_User.
set_preference | ( | $ | name, |
$ | value, | ||
$ | db = null |
||
) |
Sets an user preference. To delete a preference from the database, just set the null value for it and set the $db to an instance of mMysql. If you want to delete an array from the database, just put a "%" instead of the index value. For example, to delete the "general/countries" array: $user->set_preference("general/countries/%", null);
string | $name | The preference |
mixed | $value | The value |
mMysql | $db | A database connection (used for saving the preference to the database) [OPTIONAL] public |
Implemented in EC_User.