Class AjaxRequest
Methods
__construct()
__construct( $target, $onsuccess, $onfailure = null)
Parameters
$target | ||
$onsuccess | ||
$onfailure |
- Inherited from \AjaxRequest
Tags
None found |
set_target()
set_target( $target)
Parameters
$target |
- Inherited from \AjaxRequest
Tags
None found |
set_method()
set_method( $method)
Parameters
$method |
- Inherited from \AjaxRequest
Tags
None found |
set_success_callback()
set_success_callback( $onsuccess)
Parameters
$onsuccess |
- Inherited from \AjaxRequest
Tags
None found |
set_failure_callback()
set_failure_callback( $onfailure = null)
Parameters
$onfailure |
- Inherited from \AjaxRequest
Tags
None found |
add_event_callback()
add_event_callback( $event, $callback)
Parameters
$event | ||
$callback |
- Inherited from \AjaxRequest
Tags
None found |
add_param()
add_param( $key, $value)
Parameters
$key | ||
$value |
- Inherited from \AjaxRequest
Tags
None found |
render()
render() : string
Returns a string representation of the view.
Returns
string
—
a string representation of the view
- Inherited from \AjaxRequest
Tags
None found |
get_template()
get_template()
- Inherited from \AjaxRequest
Tags
None found |
assign()
assign(\Template $tpl)
Parameters
\Template | $tpl |
- Inherited from \AjaxRequest
Tags
None found |
Properties
Constants
GET
GET = 'get'
Tags
None found |
POST
POST = 'post'
Tags
None found |
BEFORE_SEND
BEFORE_SEND = 'beforeSend'
Tags
None found |
AJAX_SEND
AJAX_SEND = 'ajaxSend'
Tags
None found |
SUCCESS
SUCCESS = 'success'
Tags
None found |
AJAX_SUCCESS
AJAX_SUCCESS = 'ajaxSuccess'
Tags
None found |
ERROR
ERROR = 'error'
Tags
None found |
AJAX_ERROR
AJAX_ERROR = 'ajaxError'
Tags
None found |
COMPLETE
COMPLETE = 'complete'
Tags
None found |
AJAX_COMPLETE
AJAX_COMPLETE = 'ajaxComplete'
Tags
None found |