Class TJsonResponse
TJsonResponse Class
TJsonResponse is the base class for all JSON response provider classes. Derived classes must implement getJsonContent() to return an object or literals to be converted to JSON format. The response will be empty if the returned content is null.
Method Summary |
string
|
|
abstract
object json
|
|
void
|
Initializes the feed.
|
void
|
|
Methods Inherited From TComponent |
TComponent::addParsedObject(), TComponent::attachEventHandler(), TComponent::canGetProperty(), TComponent::canSetProperty(), TComponent::createdOnTemplate(), TComponent::detachEventHandler(), TComponent::evaluateExpression(), TComponent::evaluateStatements(), TComponent::getEventHandlers(), TComponent::getSubProperty(), TComponent::hasEvent(), TComponent::hasEventHandler(), TComponent::hasProperty(), TComponent::raiseEvent(), TComponent::setSubProperty(), TComponent::__get(), TComponent::__set()
|
Method Details |
getID
Output |
string
| ID of this response |
Exception |
|
getJsonContent
public abstract object json getJsonContent |
() |
Output |
object json
| response content, null to suppress output. |
Exception |
|
init
Initializes the feed.
|
setID
public void setID |
(string $value ) |
Input |
string | $value | ID of this response |
Output |
Exception |
|
|