0 users online. Create an account or sign in to join them.Users

public abstract class Page

class.page.php #9

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

Constants

public static
class.page.php #15
static string CRLF = PHP_EOL

The end-of-line constant.

Deprecated

This will be removed in the next version of Symphony

Methods

void __construct()

Initialises the Page object by setting the headers to empty

void addHeaderToPage(string $name, string $value)

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.

void generate()

This function calls __renderHeaders().

See Also
array headers()

Accessor function for $_headers

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details