Page AjaxPage

public abstract class AjaxPage extends Page

class.ajaxpage.php #12

AjaxPage extends the Page class to provide an object representation of a Symphony backend AJAX page.

Methods

void __construct()

The constructor for AJAXPage. This sets the page status to Page::HTTP_STATUS_OK, the default content type to text/xml and initialises $this->_Result with an XMLElement. 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.

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

See Also
string generate(mixed $page)

The generate functions outputs the correct headers for this AJAXPage, adds $this->getHttpStatusCode() code to the root attribute before calling the parent generate function and generating the $this->_Result XMLElement

See Also
void handleFailedAuthorisation()

This function is called 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.ajaxpage.php #85
void view()

All classes that extend the AJAXPage class must define a view method which contains the logic for the content of this page. The resulting HTML is append to $this->_Result where it is generated 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