BackPress User class.
Located in /includes/class.bp-user.php (line 11)
All capabilities the user has, including individual and role based.
The individual capabilities the user has been given.
User metadata option name.
First name of the user.
Created to prevent notices.
The deprecated user's ID.
The user's ID.
Last name of the user.
Created to prevent notices.
The roles the user is part of.
PHP4 Constructor - Sets up the object properties.
Retrieves the userdata and then assigns all of the data keys to direct properties of the object. Calls BP_User::_init_caps() after setting up the object's user data properties.
Add capability and grant or deny access to capability.
Add role to user.
Updates the user's meta data option with capabilities and roles.
Retrieve all of the role capabilities and merge with individual capabilities.
All of the capabilities of the roles the user belongs to are merged with the users individual roles. This also means that the user can be denied specific roles that their role might have, but the specific user isn't granted permission to.
Whether user has capability or role name.
This is useful for looking up whether the user has a specific role assigned to the user. The second optional parameter can also be used to check for capabilities against a specfic post.
Remove all of the capabilities of the user.
Remove capability from user.
Remove role from user.
Set the role of the user.
This will remove the previous roles of the user and assign the user the new one. You can set the role to an empty string and it will remove all of the roles from the user.
Convert numeric level to level capability name.
Prepends 'level_' to level number.
Setup capability object properties.
Will set the value for the 'cap_key' property to current database table prefix, followed by 'capabilities'. Will then check to see if the property matching the 'cap_key' exists and is an array. If so, it will be used.
Documentation generated on Fri, 18 May 2012 01:33:41 +0100 by phpDocumentor 1.4.3