PHP Class WPDKAjaxResponse

Since: 1.4.0
Author: =undo= ([email protected])
Inheritance: extends WPDKObject
Datei anzeigen Open project: wpxtreme/wpdk Class Usage Examples

Public Properties

Property Type Description
$__version string Override version
$data mixed This property can be a string or - usually - an array.
$error string User define error code or string
$message string Usually an alert message feedback

Public Methods

Method Description
__construct ( ) : WPDKAjaxResponse Create an instance of WPDKAjaxResponse class
json ( ) Send a JSON response back to an Ajax request.

Method Details

__construct() public method

Create an instance of WPDKAjaxResponse class
public __construct ( ) : WPDKAjaxResponse
return WPDKAjaxResponse

json() public method

Send a JSON response back to an Ajax request.
public json ( )

Property Details

$__version public_oe property

Override version
public string $__version
return string

$data public_oe property

This property can be a string or - usually - an array.
public mixed $data
return mixed

$error public_oe property

User define error code or string
public string $error
return string

$message public_oe property

Usually an alert message feedback
public string $message
return string