Page TextPage

public abstract class TextPage extends Page

class.textpage.php #10

TextPage extends the Page class to provide an object representation of a Symphony backend text page.


void __construct()

The constructor for TextPage. This sets the page status to Page::HTTP_STATUS_OK, the default content type to text/plain and initialises $this->_Result with an empty string. The constructor also starts the Profiler for this page template.

See Also
void build(array $context)

Calls the view function of this page. If a context is passed, it is also set.

  • $context arrayThe context of the page as an array. Defaults to null

See Also
string generate(null $page)

The generate functions outputs the correct headers for this TextPage, before calling the parent generate function and returning the $this->_Result string

See Also
void handleFailedAuthorisation()

This function is called by Administration class when a user is not authenticated to the Symphony backend. It sets the status of this page to Page::HTTP_STATUS_UNAUTHORIZED and appends a message for generation

public abstract
class.textpage.php #85
void view()

All classes that extend the TextPage class must define a view method which contains the logic for the content of this page. The resulting values must be appended to $this->_Result where it is generated as json on build

See Also

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