PHP Class Prado\Web\Services\TJsonResponse

TJsonResponse is the base class for all JSON response provider classes. Derived classes must implement {@link getJsonContent()} to return an object or literals to be converted to JSON format. The response will be empty if the returned content is null.
Since: 3.1
Inheritance: extends Prado\TApplicationComponent
ファイルを表示 Open project: pradosoft/prado

Public Methods

Method Description
getID ( ) : string
getJsonContent ( ) : object
init ( $config ) Initializes the feed.
setID ( $value )

Method Details

getID() public method

public getID ( ) : string
return string ID of this response

getJsonContent() abstract public method

abstract public getJsonContent ( ) : object
return object json response content, null to suppress output.

init() public method

Initializes the feed.
public init ( $config )

setID() public method

public setID ( $value )