| [ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
| File Size: | 245 lines (8 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
Esi:: (9 methods):
__construct()
createCacheStrategy()
hasSurrogateEsiCapability()
addSurrogateEsiCapability()
addSurrogateControl()
needsEsiParsing()
renderIncludeTag()
process()
handle()
| __construct(array $contentTypes = array('text/html', 'text/xml', 'application/xhtml+xml', 'application/xml') X-Ref |
| Constructor. param: array $contentTypes An array of content-type that should be parsed for ESI information. |
| createCacheStrategy() X-Ref |
| Returns a new cache strategy instance. return: EsiResponseCacheStrategyInterface A EsiResponseCacheStrategyInterface instance |
| hasSurrogateEsiCapability(Request $request) X-Ref |
| Checks that at least one surrogate has ESI/1.0 capability. param: Request $request A Request instance return: bool true if one surrogate has ESI/1.0 capability, false otherwise |
| addSurrogateEsiCapability(Request $request) X-Ref |
| Adds ESI/1.0 capability to the given Request. param: Request $request A Request instance |
| addSurrogateControl(Response $response) X-Ref |
| Adds HTTP headers to specify that the Response needs to be parsed for ESI. This method only adds an ESI HTTP header if the Response has some ESI tags. param: Response $response A Response instance |
| needsEsiParsing(Response $response) X-Ref |
| Checks that the Response needs to be parsed for ESI tags. param: Response $response A Response instance return: bool true if the Response needs to be parsed, false otherwise |
| renderIncludeTag($uri, $alt = null, $ignoreErrors = true, $comment = '') X-Ref |
| Renders an ESI tag. param: string $uri A URI param: string $alt An alternate URI param: bool $ignoreErrors Whether to ignore errors or not param: string $comment A comment to add as an esi:include tag return: string |
| process(Request $request, Response $response) X-Ref |
| Replaces a Response ESI tags with the included resource content. param: Request $request A Request instance param: Response $response A Response instance return: Response |
| handle(HttpCache $cache, $uri, $alt, $ignoreErrors) X-Ref |
| Handles an ESI from the cache. param: HttpCache $cache An HttpCache instance param: string $uri The main URI param: string $alt An alternative URI param: bool $ignoreErrors Whether to ignore errors or not return: string |
| Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |