UniGenLocationCategories
in package
Helper class for organizing Locations into categories.
Though we expect a location to be only in one category, it is possible to edit a location in the Admin Tools so that it is in two or more categories. For simplicity here, it will only show up in the first category it matches, but it will identify all other categories that it is in. If multi-category locations becomes common, this code should be modified.
Table of Contents
Properties
Methods
Properties
$locTypes
public
array<string, array<string|int, int>>
$locTypes
= []
$locAdded
private
array<string|int, int>
$locAdded
= []
Methods
added()
public
added(int $locID) : bool
Parameters
- $locID : int
Return values
booladdLoc()
public
addLoc(int $locID, string $category) : string
Parameters
- $locID : int
- $category : string