CommonSense PHP API Library
User Class Reference

List of all members.

Public Member Functions

 User (stdClass $data, Api $api)
 getID ()
 getEmail ()
 getName ()
 getSurname ()
 getMobile ()
 getOpenID ()
 getUniqueID ()
 getAddress ()
 getZipcode ()
 getCountry ()
 update ($email, $username, $name, $surname, $mobile, $password)
 delete ()
 deleteAllMyData ()
 addToGroup ($groupid)

Detailed Description

sense dashboard - User.php

This file is part of sense dashboard.

Author:
Remi Appels <remi@sense-os.nl> The class User handels all the user actions

public

Author:
Remi Appels <remi@sense-os.nl>

Member Function Documentation

User::addToGroup ( groupid)

This method will add a user to the group. To add a user at least a username or user_id must be specified. Only members of the group can add a user to the group.

public

Parameters:
intgroupId
Returns:
mixed

This method will remove the user from the database together with his external services.

public

Returns:
mixed
User::update ( email,
username,
name,
surname,
mobile,
password 
)

This method updates the details of the user. Only the user_id of the current user can be selected.

public

Parameters:
stringemail
stringusername
stringname
stringsurname
stringmobile
stringpassword
Returns:
mixed
User::User ( stdClass $  data,
Api api 
)

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables