\Page

Page superclass.

Every visitable page type must inherit from this one.

Summary

Methods
Properties
Constants
__construct()
$db
$view
$title
$name
$description
$favicon
$icon
$canonical
$author
$filters
No constants found
No protected methods found
No protected properties found
N/A
parse_filters()
No private properties found
N/A

Properties

$db

$db : resource

Type

resource — Database connection.

$view

$view : string

Type

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.

Methods

__construct()

__construct(resource  $db) 

Constructor.

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.