Engine
in package
Table of Contents
Properties
- $compiler : Compiler
- $config : stdClass
- $destination : Destination
- $finder : Finder
- $logger : Logger
- $maxPublish : int
- $nameServer : string
- $terminateFlag : TerminateCheck
Methods
- __construct() : mixed
- Engine constructor.
- init() : mixed
- 初期設定
- run() : mixed
- Run
- copyAssets() : void
- copy assets
- copyThemeItems() : void
- copy theme items
- copyThemeRequireItems() : void
- copy theme require items
- deleteOldFiles() : void
- delete files
- extractTheme() : array<string|int, mixed>
- get themes
- getConfig() : mixed
- processExportAssets() : mixed
- アセットの書き出し
- processExportCategoryArchivePage() : PromiseInterface<string|int, null>
- カテゴリーアーカイブページの書き出し
- processExportCategoryPagenation() : PromiseInterface<string|int, null>
- カテゴリーページの書き出し
- processExportCategoryTop() : PromiseInterface<string|int, null>
- カテゴリートップの書き出し
- processExportEntry() : PromiseInterface<string|int, null>
- エントリーの書き出し
- processExportPagenation() : PromiseInterface<string|int, null>
- ページの書き出し
- processExportTheme() : PromiseInterface<string|int, null>
- テーマのテンプレート書き出し
- processExportThemeAssets() : mixed
- テーマのアセット書き出し
- processExportTop() : PromiseInterface<string|int, null>
- トップページの書き出し
- processResolvCssPath() : mixed
- css の url属性のパス解決
- resolvePathInCss() : void
- css の url属性のパス解決
Properties
$compiler
protected
Compiler
$compiler
$config
protected
stdClass
$config
$destination
protected
Destination
$destination
$finder
protected
Finder
$finder
$logger
protected
Logger
$logger
$maxPublish
protected
int
$maxPublish
$nameServer
protected
string
$nameServer
$terminateFlag
protected
TerminateCheck
$terminateFlag
Methods
__construct()
Engine constructor.
public
__construct() : mixed
init()
初期設定
public
init(Logger $logger, Destination $destination, int $maxPublish, string $nameServer, stdClass $config) : mixed
Parameters
- $logger : Logger
- $destination : Destination
- $maxPublish : int
- $nameServer : string
- $config : stdClass
Tags
run()
Run
public
run() : mixed
copyAssets()
copy assets
protected
copyAssets() : void
copyThemeItems()
copy theme items
protected
copyThemeItems(string $theme) : void
Parameters
- $theme : string
copyThemeRequireItems()
copy theme require items
protected
copyThemeRequireItems(string $theme) : void
Parameters
- $theme : string
deleteOldFiles()
delete files
protected
deleteOldFiles() : void
extractTheme()
get themes
protected
extractTheme(string $theme) : array<string|int, mixed>
Parameters
- $theme : string
Return values
array<string|int, mixed>getConfig()
protected
getConfig(mixed $key, mixed $default, mixed $i) : mixed
Parameters
- $key : mixed
- $default : mixed
- $i : mixed
processExportAssets()
アセットの書き出し
protected
processExportAssets() : mixed
processExportCategoryArchivePage()
カテゴリーアーカイブページの書き出し
protected
processExportCategoryArchivePage(array<string|int, int> $categoryIds) : PromiseInterface<string|int, null>
Parameters
- $categoryIds : array<string|int, int>
Return values
PromiseInterface<string|int, null>processExportCategoryPagenation()
カテゴリーページの書き出し
protected
processExportCategoryPagenation(array<string|int, int> $categoryIds) : PromiseInterface<string|int, null>
Parameters
- $categoryIds : array<string|int, int>
Return values
PromiseInterface<string|int, null>processExportCategoryTop()
カテゴリートップの書き出し
protected
processExportCategoryTop() : PromiseInterface<string|int, null>
Return values
PromiseInterface<string|int, null>processExportEntry()
エントリーの書き出し
protected
processExportEntry() : PromiseInterface<string|int, null>
Return values
PromiseInterface<string|int, null>processExportPagenation()
ページの書き出し
protected
processExportPagenation(int $maxPageCount) : PromiseInterface<string|int, null>
Parameters
- $maxPageCount : int
Return values
PromiseInterface<string|int, null>processExportTheme()
テーマのテンプレート書き出し
protected
processExportTheme(array<string|int, mixed> $themes) : PromiseInterface<string|int, null>
Parameters
- $themes : array<string|int, mixed>
Return values
PromiseInterface<string|int, null>processExportThemeAssets()
テーマのアセット書き出し
protected
processExportThemeAssets(array<string|int, string> $themes) : mixed
Parameters
- $themes : array<string|int, string>
processExportTop()
トップページの書き出し
protected
processExportTop() : PromiseInterface<string|int, null>
Return values
PromiseInterface<string|int, null>processResolvCssPath()
css の url属性のパス解決
protected
processResolvCssPath(array<string|int, string> $themes) : mixed
Parameters
- $themes : array<string|int, string>
resolvePathInCss()
css の url属性のパス解決
protected
resolvePathInCss(string $theme) : void
Parameters
- $theme : string