a-blog cms PHP API Reference

DiffEngine extends Engine
in package

Table of Contents

Properties

$compiler  : Compiler
$config  : stdClass
$destination  : Destination
$finder  : Finder
$logger  : Logger
$maxPublish  : int
$targetCategoryIds  : array<string|int, int>
$targetEntryIds  : array<string|int, int>
$terminateFlag  : TerminateCheck

Methods

__construct()  : mixed
DiffEngine constructor.
init()  : void
初期設定
run()  : void
Run
runDiff()  : 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()  : void
アセットの書き出し
processExportCategoryArchivePage()  : void
カテゴリーアーカイブページの書き出し
processExportCategoryPagenation()  : void
カテゴリーページの書き出し
processExportCategoryTop()  : void
カテゴリートップの書き出し
processExportEntry()  : void
エントリーの書き出し
processExportPagenation()  : void
ページの書き出し
processExportTheme()  : void
テーマのテンプレート書き出し
processExportThemeAssets()  : mixed
テーマのアセット書き出し
processExportTop()  : void
トップページの書き出し
processResolvCssPath()  : mixed
css の url属性のパス解決
resolvePathInCss()  : void
css の url属性のパス解決
setDiffItems()  : mixed
指定された日付より新しいエントリーを設定

Properties

$config

protected stdClass $config

$finder

protected Finder $finder

$maxPublish

protected int $maxPublish = 3

$targetCategoryIds

protected array<string|int, int> $targetCategoryIds = []

$targetEntryIds

protected array<string|int, int> $targetEntryIds = []

Methods

__construct()

DiffEngine constructor.

public __construct() : mixed

init()

初期設定

public init(Logger $logger, Destination $destination, int $maxPublish, stdClass $config) : void
Parameters
$logger : Logger
$destination : Destination
$maxPublish : int
$config : stdClass
Tags
throws
Exception

run()

Run

public run(int $bid) : void
Parameters
$bid : int

runDiff()

Run

public runDiff(int $bid, string $from) : mixed
Parameters
$bid : int
$from : string

(YYYY-MM-DD HH:ii:ss)

copyAssets()

copy assets

protected copyAssets(int $bid) : void
Parameters
$bid : int

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(int $bid) : void
Parameters
$bid : int

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(int $bid) : void
Parameters
$bid : int

processExportCategoryArchivePage()

カテゴリーアーカイブページの書き出し

protected processExportCategoryArchivePage(int $bid, array<string|int, int> $categoryIds, array<string|int, mixed> $startDates, array<string|int, mixed> $maxPages[, bool $generateMonthArchivePage = true ][, array<string|int, string> $years = [] ]) : void
Parameters
$bid : int
$categoryIds : array<string|int, int>
$startDates : array<string|int, mixed>
$maxPages : array<string|int, mixed>
$generateMonthArchivePage : bool = true
$years : array<string|int, string> = []

processExportCategoryPagenation()

カテゴリーページの書き出し

protected processExportCategoryPagenation(int $bid, array<string|int, int> $categoryIds, array<string|int, int> $maxPages) : void
Parameters
$bid : int
$categoryIds : array<string|int, int>
$maxPages : array<string|int, int>

processExportCategoryTop()

カテゴリートップの書き出し

protected processExportCategoryTop(int $bid) : void
Parameters
$bid : int
Tags
inheritDoc

processExportEntry()

エントリーの書き出し

protected processExportEntry(int $bid) : void
Parameters
$bid : int
Tags
inheritDoc

processExportPagenation()

ページの書き出し

protected processExportPagenation(int $bid, int $maxPageCount) : void
Parameters
$bid : int
$maxPageCount : int

processExportTheme()

テーマのテンプレート書き出し

protected processExportTheme(int $bid, array<string|int, mixed> $themes) : void
Parameters
$bid : int
$themes : array<string|int, mixed>
Tags
inheritDoc

processExportThemeAssets()

テーマのアセット書き出し

protected processExportThemeAssets(mixed $themes) : mixed
Parameters
$themes : mixed
Tags
inheritDoc

processExportTop()

トップページの書き出し

protected processExportTop(int $bid) : void
Parameters
$bid : int

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

setDiffItems()

指定された日付より新しいエントリーを設定

private setDiffItems(int $bid, string $from) : mixed
Parameters
$bid : int
$from : string

(YYYY-MM-DD HH:ii:ss)


        
On this page

Search results