web\Link $hreflang

$hreflang public property The language of the target resource public string $hreflang = null

web\JsonResponseFormatter format()

format() public method Formats the specified response. public void format ( $response )$response yii\web\Response The response to be formatted.

web\JsonResponseFormatter formatJsonp()

formatJsonp() protected method Formats response data in JSONP format. protected void formatJsonp ( $response )$response yii\web\Response

web\JsonResponseFormatter formatJson()

formatJson() protected method Formats response data in JSON format. protected void formatJson ( $response )$response yii\web\Response

web\JsonResponseFormatter $prettyPrint

$prettyPrint public property (available since version 2.0.7) Whether to format the output in a readable "pretty" format. This can be useful for debugging purpose. If this is true, JSON_PRETTY_PRINT will be added to $encodeOptions. Defaults to false. This property has no effect, when $useJsonp is true. public boolean $prettyPrint = false

web\JsonResponseFormatter $useJsonp

$useJsonp public property Whether to use JSONP response format. When this is true, the response data must be an array consisting of data and callback members. The latter should be a JavaScript function name while the former will be passed to this function as a parameter. public boolean $useJsonp = false

web\JsonResponseFormatter $encodeOptions

$encodeOptions public property (available since version 2.0.7) The encoding options passed to yii\helpers\Json::encode(). For more details please refer to http://www.php.net/manual/en/function.json-encode.php. Default is JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE. This property has no effect, when $useJsonp is true. public integer $encodeOptions = 320

web\JsonParser parse()

parse() public method Parses a HTTP request body. public array parse ( $rawBody, $contentType )$rawBody string The raw HTTP request body. $contentType string The content type specified for the request body. return array Parameters parsed from the request body throws yii\web\BadRequestHttpException if the body contains invalid json and $throwException is true.

web\JsonParser $throwException

$throwException public property Whether to throw a yii\web\BadRequestHttpException if the body is invalid json public boolean $throwException = true

web\JsExpression __toString()

__toString() public method The PHP magic function converting an object into a string. public string __toString ( )return string The JavaScript expression.