Open Journal Systems  3.3.0
APIResponse Class Reference
Inheritance diagram for APIResponse:

Public Member Functions

 withJsonError ($msg, $params=null)
 

Detailed Description

Extends the Response class in the Slim microframework.

Definition at line 16 of file APIResponse.inc.php.

Member Function Documentation

◆ withJsonError()

APIResponse::withJsonError (   $msg,
  $params = null 
)

Response with an error message

Parameters
string$msgThe message translation key
string$paramsOptional parameters to pass to the translation
Returns
APIResponse

Definition at line 25 of file APIResponse.inc.php.


The documentation for this class was generated from the following file: