Open Journal Systems
3.3.0
APIResponse.inc.php
1
<?php
14
use Slim\Http\Response;
15
16
class
APIResponse
extends
Response {
17
25
public
function
withJsonError
($msg, $params =
null
) {
26
return
$this->withJson(
27
array(
28
'error'
=> $msg,
29
'errorMessage'
=> __($msg, $params),
30
)
31
);
32
}
33
}
APIResponse\withJsonError
withJsonError($msg, $params=null)
Definition:
APIResponse.inc.php:25
APIResponse
Extends the Response class in the Slim microframework.
Definition:
APIResponse.inc.php:16
lib
pkp
classes
core
APIResponse.inc.php
Generated on Fri Aug 28 2020 14:50:39 for Open Journal Systems by
1.8.17