Model to hold user information.
More...
Model to hold user information.
Definition at line 20 of file User.php.
◆ __construct()
Fossology\UI\Api\Models\User::__construct |
( |
|
$id, |
|
|
|
$name, |
|
|
|
$description, |
|
|
|
$email, |
|
|
|
$accessLevel, |
|
|
|
$root_folder_id, |
|
|
|
$emailNotification, |
|
|
|
$agents, |
|
|
|
$default_group_fk = null , |
|
|
|
$defaultBucketPool = null |
|
) |
| |
User constructor.
- Parameters
-
integer | $id | |
string | $name | |
string | $description | |
string | $email | |
integer | $accessLevel | |
integer | $root_folder_id | |
integer | $default_group_fk | |
boolean | $emailNotification | |
object | $agents | |
integer | $defaultBucketPool | |
Definition at line 91 of file User.php.
◆ getAccessLevel()
Fossology\UI\Api\Models\User::getAccessLevel |
( |
| ) |
|
◆ getAgents()
Fossology\UI\Api\Models\User::getAgents |
( |
| ) |
|
◆ getArray()
Fossology\UI\Api\Models\User::getArray |
( |
|
$version = ApiVersion::V1 | ) |
|
Get user element as an associative array
- Returns
- array
Definition at line 221 of file User.php.
◆ getDefaultBucketPool()
Fossology\UI\Api\Models\User::getDefaultBucketPool |
( |
| ) |
|
◆ getDefaultGroupId()
Fossology\UI\Api\Models\User::getDefaultGroupId |
( |
| ) |
|
- Returns
- integer
Definition at line 179 of file User.php.
◆ getDescription()
Fossology\UI\Api\Models\User::getDescription |
( |
| ) |
|
◆ getEmail()
Fossology\UI\Api\Models\User::getEmail |
( |
| ) |
|
◆ getEmailNotification()
Fossology\UI\Api\Models\User::getEmailNotification |
( |
| ) |
|
- Returns
- boolean
Definition at line 187 of file User.php.
◆ getId()
Fossology\UI\Api\Models\User::getId |
( |
| ) |
|
- Returns
- integer
Definition at line 131 of file User.php.
◆ getJSON()
Fossology\UI\Api\Models\User::getJSON |
( |
| ) |
|
Get current user in JSON representation
- Returns
- string
Definition at line 212 of file User.php.
◆ getName()
Fossology\UI\Api\Models\User::getName |
( |
| ) |
|
◆ getRootFolderId()
Fossology\UI\Api\Models\User::getRootFolderId |
( |
| ) |
|
- Returns
- integer
Definition at line 171 of file User.php.
◆ $accessLevel
string Fossology\UI\Api\Models\User::$accessLevel |
|
private |
Current user access level
Definition at line 46 of file User.php.
◆ $agents
array Fossology\UI\Api\Models\User::$agents |
|
private |
Current user's agent preference
Definition at line 66 of file User.php.
◆ $analysis
Analysis Fossology\UI\Api\Models\User::$analysis |
|
private |
Current user's analysis from $agents
Definition at line 71 of file User.php.
◆ $defaultBucketPool
int Fossology\UI\Api\Models\User::$defaultBucketPool |
|
private |
Default bucket pool of the user
Definition at line 76 of file User.php.
◆ $defaultGroup
integer Fossology\UI\Api\Models\User::$defaultGroup |
|
private |
Current user's default group id
Definition at line 56 of file User.php.
◆ $description
string Fossology\UI\Api\Models\User::$description |
|
private |
Current user description
Definition at line 36 of file User.php.
◆ $email
string Fossology\UI\Api\Models\User::$email |
|
private |
Current user email
Definition at line 41 of file User.php.
◆ $emailNotification
boolean Fossology\UI\Api\Models\User::$emailNotification |
|
private |
Current user's email preference
Definition at line 61 of file User.php.
◆ $id
integer Fossology\UI\Api\Models\User::$id |
|
private |
Current user id
Definition at line 26 of file User.php.
◆ $name
string Fossology\UI\Api\Models\User::$name |
|
private |
Current user's name
Definition at line 31 of file User.php.
◆ $rootFolderId
integer Fossology\UI\Api\Models\User::$rootFolderId |
|
private |
Current user's root folder id
Definition at line 51 of file User.php.
The documentation for this class was generated from the following file: