$building_stats $building_stats : array<mixed,mixed> Type array<mixed,mixed> — Stats gained by building.
__construct() __construct(resource $db, string $id) Constructor. Retrieves the data and initializes the variables. Parameters resource $db Connection to the database. string $id Selected unit id
parse_filters() parse_filters() Parses the request looking for the selected filters, validates them and adds them to the $filters array. Must be overriden in the page classes.
calculate_buildings() calculate_buildings() Calculates the stats gained from bulding upgrades and populates the $building_stats array.