getAreas()

The method returns all areas.

Synopsis

public dyn_anytype getAreas(anytype um);

Parameter Description
um An instance of the UserManagement class.

Return Value

All areas.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main()
{
  shared_ptr<UserManagement> m_um = UserManagement::getInstance();
  anytype area1 = new UserManagementArea("Area1");
  anytype area2 = new UserManagementArea("Area2");
  m_um.addArea(area1);
  m_um.addArea(area2);
  m_um.saveChanges();
  anytype group = new UserManagementGroup("Group1");
  m_um.addGroup(group);
  m_um.saveChanges();
  group.addArea(area1);
  group.addArea(area2);
  m_um.saveChanges();
  /*Returns the areas */
  DebugTN("Get areas:", group.getAreas(m_um));
}

Assignment

User administration

See also

getArea(), getAllGroups(), getAreaByName()