PHP 클래스 Backend\Modules\Pages\Engine\CacheBuilder

파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$blocks
$cache Psr\Cache\CacheItemPoolInterface
$database SpoonDatabase
$sitemapId

공개 메소드들

메소드 설명
__construct ( SpoonDatabase $database, Psr\Cache\CacheItemPoolInterface $cache )
buildCache ( string $language ) Builds the pages cache
getKeys ( string $language ) : array
getNavigation ( string $language ) : array

보호된 메소드들

메소드 설명
dumpEditorLinkList ( array $navigation, array $keys, string $language ) : string Save the link list
getBlocks ( ) : array Returns an array containing all extras
getCacheHeader ( string $itContainsMessage ) : string Gets the header for cache files
getData ( string $language ) : array Fetches all data from the database
getOrder ( array $navigation, string $type = 'page', integer $parentId, array $order = [] ) : array Get the order
getPageData ( &$keys, array $page, string $language ) : array Fetches the pagedata for a certain page array It also adds the page data to the keys array
getPageExtraBlocks ( $page ) : array
getPageTreeType ( $page, &$pageData ) : string
getSitemapId ( ) : string Returns an array containing all widgets

메소드 상세

__construct() 공개 메소드

public __construct ( SpoonDatabase $database, Psr\Cache\CacheItemPoolInterface $cache )
$database SpoonDatabase
$cache Psr\Cache\CacheItemPoolInterface

buildCache() 공개 메소드

Builds the pages cache
public buildCache ( string $language )
$language string The language to build the cache for.

getBlocks() 보호된 메소드

Returns an array containing all extras
protected getBlocks ( ) : array
리턴 array

getCacheHeader() 보호된 메소드

Gets the header for cache files
protected getCacheHeader ( string $itContainsMessage ) : string
$itContainsMessage string A message about the content of the file
리턴 string A comment to be used in the cache file

getData() 보호된 메소드

Fetches all data from the database
protected getData ( string $language ) : array
$language string
리턴 array tupple containing keys and navigation

getKeys() 공개 메소드

public getKeys ( string $language ) : array
$language string
리턴 array

getNavigation() 공개 메소드

public getNavigation ( string $language ) : array
$language string
리턴 array

getOrder() 보호된 메소드

Get the order
protected getOrder ( array $navigation, string $type = 'page', integer $parentId, array $order = [] ) : array
$navigation array The navigation array.
$type string The type of navigation.
$parentId integer The Id to start from.
$order array The array to hold the order.
리턴 array

getPageData() 보호된 메소드

Fetches the pagedata for a certain page array It also adds the page data to the keys array
protected getPageData ( &$keys, array $page, string $language ) : array
$page array
$language string
리턴 array An array containing more data for the page

getPageExtraBlocks() 보호된 메소드

protected getPageExtraBlocks ( $page ) : array
$page array
리턴 array

getPageTreeType() 보호된 메소드

protected getPageTreeType ( $page, &$pageData ) : string
$page array
$pageData array
리턴 string

getSitemapId() 보호된 메소드

Returns an array containing all widgets
protected getSitemapId ( ) : string
리턴 string

프로퍼티 상세

$blocks 보호되어 있는 프로퍼티

protected $blocks

$cache 보호되어 있는 프로퍼티

protected CacheItemPoolInterface,Psr\Cache $cache
리턴 Psr\Cache\CacheItemPoolInterface

$database 보호되어 있는 프로퍼티

protected SpoonDatabase $database
리턴 SpoonDatabase

$sitemapId 보호되어 있는 프로퍼티

protected $sitemapId