getAreaIds()

The method returns the area IDS.

Synopsis

public dyn_uint getAreaIds();

Return Value

The area IDs.

Errors

Errors are shown in the log viewer.

EXAMPLE

#uses "classes/userManagement/UserManagement"
main(mapping event)
{
  shared_ptr<UserManagement> m_um = UserManagement::getInstance();
  anytype area = new UserManagementArea("area1");
  anytype area2 = new UserManagementArea("area2");
  m_um.addArea(area);
  m_um.addArea(area2);
  m_um.saveChanges();
  anytype group = new UserManagementGroup("group1");
  m_um.addGroup(group);
  m_um.saveChanges();
  group.addArea(area);
  group.addArea(area2);
  m_um.saveChanges();
  dyn_anytype allAreas = m_um.getAllAreas();
  for (int i =1; i<=dynlen(allAreas); i++)
  {
    DebugN("Get area Name:", allAreas[i].getName());
    DebugN("Area IDs:", group.getAreaIds());
  }
}

Assignment

User administration

See also

getId()