PHP 클래스 Elgg\Application\CacheHandler

파일 보기 프로젝트 열기: elgg/elgg

공개 프로퍼티들

프로퍼티 타입 설명
$extensions
$utf8_content_types

공개 메소드들

메소드 설명
__construct ( Application $app, Config $config, array $server_vars ) Constructor
handleRequest ( array $path ) : void Handle a request for a cached view
parsePath ( string $path ) : array Parse a request

보호된 메소드들

메소드 설명
getContentType ( string $view ) : string | null Get the content type
getProcessedView ( string $view, string $viewtype ) : string Get the contents of a view for caching
handle304 ( string $etag ) : void Send a 304 and exit() if the ETag matches the request
isCacheableView ( string $view ) : boolean Is the view cacheable. Language views are handled specially.
renderView ( string $view, string $viewtype ) : string Render a view for caching. Language views are handled specially.
send403 ( string $msg = 'Cache error: bad request' ) : void Send an error message to requestor
sendCacheHeaders ( string $etag ) : void Send cache headers
sendRevalidateHeaders ( string $etag ) : void Send revalidate cache headers
setupSimplecache ( ) : void Do a minimal engine load

비공개 메소드들

메소드 설명
getViewFileType ( string $view ) : string Returns the type of output expected from the view.

메소드 상세

__construct() 공개 메소드

Constructor
public __construct ( Application $app, Config $config, array $server_vars )
$app Elgg\Application Elgg Application
$config Elgg\Config Elgg configuration
$server_vars array Server vars

getContentType() 보호된 메소드

Get the content type
protected getContentType ( string $view ) : string | null
$view string The view name
리턴 string | null

getProcessedView() 보호된 메소드

Get the contents of a view for caching
또한 보기: CacheHandler::renderView()
protected getProcessedView ( string $view, string $viewtype ) : string
$view string The view name
$viewtype string The viewtype
리턴 string

handle304() 보호된 메소드

Send a 304 and exit() if the ETag matches the request
protected handle304 ( string $etag ) : void
$etag string ETag value
리턴 void

handleRequest() 공개 메소드

Handle a request for a cached view
public handleRequest ( array $path ) : void
$path array URL path
리턴 void

isCacheableView() 보호된 메소드

Is the view cacheable. Language views are handled specially.
protected isCacheableView ( string $view ) : boolean
$view string View name
리턴 boolean

parsePath() 공개 메소드

Parse a request
public parsePath ( string $path ) : array
$path string Request URL path
리턴 array Cache parameters (empty array if failure)

renderView() 보호된 메소드

Render a view for caching. Language views are handled specially.
protected renderView ( string $view, string $viewtype ) : string
$view string The view name
$viewtype string The viewtype
리턴 string

send403() 보호된 메소드

Send an error message to requestor
protected send403 ( string $msg = 'Cache error: bad request' ) : void
$msg string Optional message text
리턴 void

sendCacheHeaders() 보호된 메소드

Send cache headers
protected sendCacheHeaders ( string $etag ) : void
$etag string ETag value
리턴 void

sendRevalidateHeaders() 보호된 메소드

Send revalidate cache headers
protected sendRevalidateHeaders ( string $etag ) : void
$etag string ETag value
리턴 void

setupSimplecache() 보호된 메소드

Do a minimal engine load
protected setupSimplecache ( ) : void
리턴 void

프로퍼티 상세

$extensions 공개적으로 정적으로 프로퍼티

public static $extensions

$utf8_content_types 공개적으로 정적으로 프로퍼티

public static $utf8_content_types