UserData
class UserData implements UserDataInterface (View source)
Defines the user data service.
Properties
| protected Connection | $connection | The database connection to use. |
Methods
mixed|array
get(string $module, int $uid = NULL, string $name = NULL)
Returns data stored for a user account.
set(string $module, int $uid, string $name, mixed $value)
Stores data for a user account.
delete(string|array $module = NULL, int|array $uid = NULL, string $name = NULL)
Deletes data stored for a user account.
Details
__construct(Connection $connection)
Constructs a new user data service.
mixed|array
get(string $module, int $uid = NULL, string $name = NULL)
Returns data stored for a user account.
set(string $module, int $uid, string $name, mixed $value)
Stores data for a user account.
delete(string|array $module = NULL, int|array $uid = NULL, string $name = NULL)
Deletes data stored for a user account.