Page TextPage JSONPage

public abstract class JSONPage extends TextPage

class.jsonpage.php #10

JSONPage extends the Page class to provide an object representation of a Symphony backend JSON page.


void __construct()

The constructor for JSONPage. This sets the page status to Page::HTTP_STATUS_OK, the default content type to application/json and initialises $this->_Result with an array. The constructor also starts the Profiler for this page template.

See Also
string generate(null $page)

The generate functions outputs the correct headers for this JSONPage, adds $this->getHttpStatusCode() code to the root attribute before calling the parent generate function and generating the $this->_Result json 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

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