TJsonService class provides to end-users javascript content response in JSON format.
TJsonService manages a set of TJsonResponse, each representing specific response with javascript content. The service parameter, referring to the ID of the service, specifies which javascript content to be provided to end-users.
To use TJsonService, configure it in application configuration as follows,
where each JSON response is specified via a <json> element. Initial property values can be configured in a <json> element.
- <service id="json" class="System.Services.TJsonService">
- <json id="get_article" class="Path.To.JsonResponseClass1" .../>
- <json id="register_rating" class="Path.To.JsonResponseClass2" .../>
- </service>
To retrieve the JSON content provided by "get_article", use the URL
- index.php?json=get_article
Located in /Web/Services/TJsonService.php (line 40)
TComponent | --TApplicationComponent | --TService | --TJsonService
Renders content provided by TJsonResponse::getJsonContent() as javascript in JSON format.
Initializes this module.
This method is required by the IModule interface.
Load the service definitions.
Runs the service.
This method is invoked by application automatically.
Inherited From TService
TService::getEnabled()
TService::getID()
TService::init()
TService::run()
TService::setEnabled()
TService::setID()
Inherited From TApplicationComponent
TApplicationComponent::getApplication()
TApplicationComponent::getRequest()
TApplicationComponent::getResponse()
TApplicationComponent::getService()
TApplicationComponent::getSession()
TApplicationComponent::getUser()
TApplicationComponent::publishAsset()
TApplicationComponent::publishFilePath()
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()
Documentation generated on Mon, 21 Apr 2008 11:35:22 -0400 by phpDocumentor 1.3.0RC4