Class Json_Response - echiong/testRepo GitHub Wiki

##Class Json_Response

Description of json_response

To change this template, choose Tools | Templates and open the template in the editor.

Package: [[application<a href="Package application.libraries.md">libraries]]
Author: Alel
Located at application/libraries/json_response.php

##Methods summary


public __construct ( )


public setSuccess ( string $message )

Sets the success message.

Parameters

$message string
$message The message


public setError ( string $message, string|integer $errorCode = null, array $errorArray = null )

Sets the error message.

Parameters

$message string
$message The message

$errorCode string|integer
$errorCode Error code

$errorArray array
$errorArray Errors


public string toJson ( )

Encodes to JSON

Returns string

<table class="summary" id="properties">
<caption>Properties summary</caption>
<tr data-order="_response" id="$_response">
	<td class="attributes"><code>
		protected  
		mixed
	</code></td>

	<td class="name">

$_response

#
		<div class="description detailed">
			

		</div>
	</div></td>
</tr>
</table>
⚠️ **GitHub.com Fallback** ⚠️