Documentation

Glpi\Api\Rest\EndPointHandler | GLPI API Client Library for PHP

class EndPointHandler

Class EndPointHandler

Properties

protected Client $client

Methods

__construct(Client $client)

EndPointHandler constructor.

getClient()

No description

array
getMyProfiles()

Return all the profiles associated to logged user.

array
getActiveProfile()

Return the current active profile.

array
changeActiveProfile(integer $profiles_id)

Change active profile to the profiles_id one.

array
getMyEntities(array $queryString = [])

Return all the possible entities of the current logged user (and for current active profile).

array
getActiveEntities()

Return active entities of current logged user.

array
changeActiveEntities(array $parameters = [])

Change active entity to the entities_id one.

Details

at line 46
__construct(Client $client)

EndPointHandler constructor.

Parameters

Client $client

at line 53
Client getClient()

Return Value

Client

at line 61
array getMyProfiles()

Return all the profiles associated to logged user.

Return Value

array

at line 73
array getActiveProfile()

Return the current active profile.

Return Value

array

at line 88
array changeActiveProfile(integer $profiles_id)

Change active profile to the profiles_id one.

Parameters

integer $profiles_id

Return Value

array

See also

getMyProfiles endpoint for possible profiles.

at line 102
array getMyEntities(array $queryString = [])

Return all the possible entities of the current logged user (and for current active profile).

Parameters

array $queryString

Return Value

array

at line 115
array getActiveEntities()

Return active entities of current logged user.

Return Value

array

at line 130
array changeActiveEntities(array $parameters = [])

Change active entity to the entities_id one.

Parameters

array $parameters

Return Value

array

See also

getMyEntities endpoint for possible entities.
Back to top