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
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

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

Method Details

getID() public méthode

public getID ( ) : string
Résultat string ID of this response

getJsonContent() abstract public méthode

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

init() public méthode

Initializes the feed.
public init ( $config )

setID() public méthode

public setID ( $value )