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.
$monster
$monster : array<mixed,\K_Unit>
Type
array<mixed,\K_Unit>
— Selected unit array.
[0]: Unawakened monster (null if default purple).
[1]: Awakened monster (null if silver).
[2]: Second awakened monster (null if unavailaable).
$family
$family : array<mixed,integer>
Type
array<mixed,integer>
— IDs to other units of the family
Methods
__construct()
__construct(resource $db, integer $id)
Constructor.
Retrieves the data and initializes the variables.
Parameters
resource
$db
Connection to the database.
integer
$id
Monster id. Can be any of the awakening stages
parse_filters()
parse_filters()
Parses the request looking for the selected filters, validates them
and adds them to the $filters array.