PHP Класс 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.
С версии: 3.1
Наследование: extends Prado\TApplicationComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
getID ( ) : string
getJsonContent ( ) : object
init ( $config ) Initializes the feed.
setID ( $value )

Описание методов

getID() публичный метод

public getID ( ) : string
Результат string ID of this response

getJsonContent() абстрактный публичный метод

abstract public getJsonContent ( ) : object
Результат object json response content, null to suppress output.

init() публичный метод

Initializes the feed.
public init ( $config )

setID() публичный метод

public setID ( $value )