string
— Path to the view associated with the page.
$title
$title : string
Type
string
— Title of the page, in the defined language.
$name
$name : string
Type
string
— Site name.
$description
$description : string
Type
string
— Page description, in the defined language.
$favicon
$favicon : string
Type
string
— URL to the site favicon.
$icon
$icon : string
Type
string
— URL to the page icon or main image.
$canonical
$canonical : string
Type
string
— Canonical URL.
$author
$author : string
Type
string
— Autjhor URL.
$filters
$filters : array<mixed,mixed>
Type
array<mixed,mixed>
— The filters the page can handle.
$upgrades
$upgrades : array<mixed,mixed>
Type
array<mixed,mixed>
— List of available upgrades.
Can be described as:
$upgrades = [
[
unit (Unit),
upgrade = [
[
rune (Rune),
craft = [(Rune_Craft)]
]
]
]
]
Methods
__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 filters passed in the request and sets $filters.
Filters must be in $_GET, nd the available ones are max_stars (1-6),
min_stars (1-6) and in_storage (on/off).
build_query()
build_query() : string
Builds the query for the page, using the providded or default filters.