getAllPermissionDescriptions()

The method returns all descriptions for authorization levels (user bits).

Synopsis

public dyn_langString getAllPermissionDescriptions();

Return Value

All descriptions for authorization levels (user bits).

Errors

Errors are shown in the log viewer.

EXAMPLE

main(mapping event)
{
  shared_ptr<UserManagement> um = UserManagement::getInstance();
  dyn_langString descriptions = um.getAllPermissionDescriptions();
  DebugN("All desrciptions:", descriptions);
  /* Change the description for bit 1 */
  langString bit1;
  for (int i = 0; i < getNoOfLangs(); i++)
  setLangString(bit1, i, "bit1");
  descriptions[1] = bit1;
  /* Save to object */
  um.setAllPermissionDescriptions(descriptions);
  /* Save to DP */
  um.saveChanges();
  DebugN("All descriptions after changing the bit 1:", descriptions);
}

Assignment

User administration

See also

getPermissionDescription()