$building_stats $building_stats : array<mixed,mixed> Type array<mixed,mixed> — Stats gained by buildings.
__construct() __construct(resource $db) Constructor. Retrieves the data and initializes the variables. Parameters resource $db Connection to the database.
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.
build_query() build_query() : string Builds the query to the rune table using the selected or default filters. Returns string — The query to be executed.
calculate_buildings() calculate_buildings() Calculates the stats gained from bulding upgrades and populates the $building_stats array.