Class humhub\libs\JSONResponse

Inheritancehumhub\libs\JSONResponse
Deprecated since version since v1.2

Description of JSONResponse

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
STATE_CONFIRM 0 humhub\libs\JSONResponse
STATE_ERROR_APPLICATION 1 humhub\libs\JSONResponse
STATE_ERROR_VALIDATOIN 2 humhub\libs\JSONResponse

Method Details

__construct() public method

public void __construct ( )
asJSON() public method

public void asJSON ( )
confirm() public method

public void confirm ( $content )
$content
content() public method

public void content ( $content )
$content
data() public method

public void data ( $key, $value )
$key
$value
error() public method

public void error ( $errors, $errorTitle null, $status null )
$errors
$errorTitle
$status