__construct() __construct(boolean $connect_to_db) Init the page, specify if you need a database connection Parameters boolean $connect_to_db
output() output(array $matches) Generates page content and prints. Parameters array $matches The matches array from preg_match.
render() render(array $regex_matches) Constructs the page. Parameters array $regex_matches The matches array from preg_match.
has_keys() has_keys(array $array, array $keys) : boolean Checks to see if the array contains the keys in the array keys. Parameters array $array Array array $keys Keys to be in Array Returns boolean — $result true if the array has all the keys, otherwise false.