Public Member Functions | |
| __construct ($body, $type=self::SUCCESS) | |
| toJson () | |
Data Fields | |
| const | SUCCESS = 'success' |
| const | ERROR = 'error' |
Protected Attributes | |
| $type | |
| $body | |
JSON Response
Definition at line 23 of file ajax.lib.php.
| __construct | ( | $ | body, | |
| $ | type = self::SUCCESS | |||
| ) |
| mixed | $body | |
| string | $type Json_Response::SUCCESS (default) or Json_Response::ERROR |
Definition at line 42 of file ajax.lib.php.
| toJson | ( | ) |
Get JSON code for the response
Definition at line 52 of file ajax.lib.php.
$body [protected] |
Definition at line 35 of file ajax.lib.php.
$type [protected] |
Definition at line 35 of file ajax.lib.php.
| const ERROR = 'error' |
Message type ERROR
Definition at line 33 of file ajax.lib.php.
| const SUCCESS = 'success' |
Message type SUCCESS
Definition at line 28 of file ajax.lib.php.
1.6.3