public abstract class Page

class.page.php #9

Page is an abstract class that holds an object representation of a page's headers.

Methods

void __construct()

Initialises the Page object by setting the headers to empty

void addHeaderToPage(string $name, string $value, integer $response_code)

Adds a header to the $_headers array using the $name as the key.

Parameters
  • $name stringThe header name, eg. Content-Type.

  • $value string(optional) The value for the header, eg. text/xml. Defaults to null.

  • $response_code integer(optional) The HTTP response code that should be set by PHP with this header, eg. 200

void generate()

This function calls __renderHeaders().

See Also
array headers()

Accessor function for $_headers

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details