- Symphony 2.2.3
-
› assets
11 -
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
67 -
› Unknown
33 - Delegates87
- Deprecated30
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
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(Administration $parent)
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(
$context)
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