0 users online. Create an account or sign in to join them.Users
- Symphony 2.2
-
› boot9 -
› core22 -
› email-gateways3 -
› toolkit67 -
› Unknown33 - Delegates82
- Deprecated28
Versions
Options
Page AjaxPage
public abstract class AjaxPage extends Page
class.ajaxpage.php #12AjaxPage extends the Page class to provide an object representation of a Symphony backend AJAX page.
Constants
static integer STATUS_BAD = 400
Refers to the HTTP status code, 400 Bad Request
static integer STATUS_ERROR = 400
Refers to the HTTP status code, 400 Bad Request
static integer STATUS_OK = 200
Refers to the HTTP status code, 200 OK
static integer STATUS_UNAUTHORISED = 401
Refers to the HTTP status code, 401 Unauthorized
Methods
void __construct()
The constructor for AJAXPage. This sets the page status to 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.
Parameters
See Also
void build()
Calls the view function of this page. If a context is passed, it is also set.
Parameters
See Also
string generate()
The generate functions outputs the correct headers for
this AJAXPage, adds $this->_status 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 STATUS_UNAUTHORISED and
appends a message for generation
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