Public Member Functions | |
| getHttpStatusCode (spunQ_IHttpRequest $request) | |
| Gets the HTTP status code that would be sent by this entry point. | |
| handleRequest (spunQ_IHttpRequest $request) | |
| Start processing. | |
| invoke (array $variables) | |
| Activates this entry point. | |
| createHtmlLink (array $variables, $anchor=NULL) | |
| Create a url pointing to this entry point. | |
| getVariables () | |
| Provides a list of the required variables and their types. | |
| getName () | |
| Returns the alias of the entry point. | |
| getUrlTemplates () | |
| Returns all url templates of this entry point. | |
Definition at line 6 of file IHttpEntryPoint.interface.php.
| spunQ_IHttpEntryPoint::createHtmlLink | ( | array $ | variables, | |
| $ | anchor = NULL | |||
| ) |
Create a url pointing to this entry point.
| $variables | Any variables that might be needed to form the url. Mapping of variable names to values. | |
| $anchor | An optional anchor to be integrated into the url |
| spunQ_IHttpEntryPoint::getHttpStatusCode | ( | spunQ_IHttpRequest $ | request | ) |
Gets the HTTP status code that would be sent by this entry point.
This function will be called for all available entry points to return the most accurate http status number in the spunQ_HttpResponse.
| $request | The request to probe. |
| spunQ_IHttpEntryPoint::getName | ( | ) |
Returns the alias of the entry point.
| spunQ_IHttpEntryPoint::getUrlTemplates | ( | ) |
Returns all url templates of this entry point.
| spunQ_IHttpEntryPoint::getVariables | ( | ) |
Provides a list of the required variables and their types.
| spunQ_IHttpEntryPoint::handleRequest | ( | spunQ_IHttpRequest $ | request | ) |
Start processing.
Will start the actual handling of the request. The result will be printed, so an output buffer might be necessary to capture the results. Should extract the required variables from $request and call invoke().
| $request | The request to respond to. |
| spunQ_IHttpEntryPoint::invoke | ( | array $ | variables | ) |
Activates this entry point.
| $variables | The variables required to show the templates. |
1.5.9