These methods allow you to manage users in your activeCollab setup:
object ActiveCollab::findUserById( int $user_id) - Fetches the ActiveCollabUser object
Parameters:
user_id - id of a specific user
Return value: Object instance of ActiveCollabUser;
ActiveCollabCompany company->getCompanyUsers(void) - Gets all users in the company
Return value: Array of object instances of ActiveCollabUser
object $user = new ActiveCollabUser( int $company_id ) - Creates a new ActiveCollabUser object
Parameters: company_id - id of a company in which the user is going to be created
Variable value: Object instance of ActiveCollabUser
These methods are called out through an user object.
• setFirstName(string $first_name) - Sets the first name of the user
• setLastName(string $last_name) - Sets the last name of the user
• setEmail(string $email) - Sets the email of the user
• setPassword(string $password) - Sets the password of the user
• setPasswordA(string $password_confirm) - Sets the confirmation password of the user
• setRoleId(int $role) - Sets the role of the user
• setAvatarURL(string $avatar) - Sets the URL of the avatar of the user
• save(void) - Saves the user object into activeCollab
• delete(void) - Deletes the user from activeCollab