Class humhub\libs\JSONResponse

Inheritancehumhub\libs\JSONResponse » yii\base\BaseObject

Description of JSONResponse

Constants

Hide inherited constants

ConstantValueDescriptionDefined By
RESULT_KEY_OUTPUT 'output' humhub\libs\JSONResponse
RESULT_KEY_SUCCESS 'success' humhub\libs\JSONResponse

Method Details

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
output() public static method

public static void output ( $dom, $success null )
$dom
$success
result() public method

public void result ( )
success() public method

public void success ( $success true )
$success
withOutput() public method

public void withOutput ( $dom, $success null )
$dom
$success