You are here

protected function GenericResource::normalizeIncludeTotals in Auth0 Single Sign On 8.2

Normalize include_totals parameter.

Parameters

array $params Original parameters to normalize.:

null|mixed $include_totals Include totals parameter value, if any.:

Return value

array

5 calls to GenericResource::normalizeIncludeTotals()
Roles::getPermissions in vendor/auth0/auth0-php/src/API/Management/Roles.php
Get the permissions associated to a role. Required scope: "read:roles"
Roles::getUsers in vendor/auth0/auth0-php/src/API/Management/Roles.php
Get users assigned to a specific role. Required scopes:
Users::getLogs in vendor/auth0/auth0-php/src/API/Management/Users.php
Get log entries for a specific user. Required scope: "read:logs"
Users::getPermissions in vendor/auth0/auth0-php/src/API/Management/Users.php
Get all permissions for a specific user. Required scope: "read:users"
Users::getRoles in vendor/auth0/auth0-php/src/API/Management/Users.php
Get all roles assigned to a specific user. Required scopes:

File

vendor/auth0/auth0-php/src/API/Management/GenericResource.php, line 78

Class

GenericResource
Class GenericResource. Extended by Management API endpoints classes.

Namespace

Auth0\SDK\API\Management

Code

protected function normalizeIncludeTotals(array $params, $include_totals = null) {

  // User parameter include_totals if params does not have the key.
  if (!isset($params['include_totals'])) {
    $params['include_totals'] = $include_totals;
  }

  // Make sure we have a boolean.
  $params['include_totals'] = filter_var($params['include_totals'], FILTER_VALIDATE_BOOLEAN, FILTER_NULL_ON_FAILURE);
  return $params;
}