Class Service is a base class for HTTP application interfaces.
Services are the main HTTP interface to the resources of an application. A service should at least respond to one of the HTTP methods HEAD, GET, POST, PUT or DELETE which is called depending on the requested HTTP method by the client.
Services may register filters to specific Request methods. Use the add_filter() method in Service constructors to register a filter for a specific method.
Services also provide routing (delegation) to subroutines or other Services. Use the add_route() method in a constructor to add an entry to the routing table of your Service. Routing does NOT support service filters. Filters are processed only by the Dispatcher. Meaning that filters of the parent service are applied but filters of the plugin service are ignored.
Located in /service.php (line 32)
PHOOL | --Service
Service filters map
Requested HTTP Method
Service routing map
Inherited from PHOOL
PHOOL::$debug
PHOOL::$errorlabels
PHOOL::$errorlevels
PHOOL::$errors
PHOOL::$exists
PHOOL::$logdir
PHOOL::$loglevel
PHOOL::$objname
Add a filter to a specific method of this Service
Register a subroutine or partner Service
Delegates action to a Subroutine or a Partner Service
Uses Reflection to invoke a subroutine with dynamic parameters.
HTTP DELETE handler.
Put all Code to handle this Action on DELETE requests here.
HTTP GET handler.
Put all Code to handle this Action on GET requests here.
Return registered service filters for a specific method
Check if a plugin is registered for the given method/action
HTTP HEAD handler.
Put all Code to return information about this Service here.
HTTP OPTIONS handler
Return a list of Methods implemented by this service.
Returns the result of a partner-service identified by $name
HTTP POST handler.
Put all Code to handle this Action on POST requests here.
HTTP PUT handler.
Put all Code to handle this Action on PUT requests here.
Main Service Interface Method
Called by the Dispatcher to run a Service. This methods does a lookup for routing maps and/or calls the appropriate Handler.
Inherited From PHOOL
PHOOL::PHOOL()
PHOOL::debug()
PHOOL::error()
PHOOL::get_errors()
PHOOL::handle_error()
PHOOL::has_error()
PHOOL::log_error()
PHOOL::set_debug()
PHOOL::set_logdir()
PHOOL::set_loglevel()
Documentation generated on Tue, 12 May 2009 23:09:42 +0200 by phpDocumentor 1.4.1