PageGenerationService
in package
implements
PageGenerationListenerInterface
Table of Contents
Interfaces
Properties
- $pages : array<string|int, Page>
- $pool : ProcessPool
Methods
- addEntryPage() : void
- エントリーページを追加
- addPage() : void
- ページを追加
- onPageGenerationError() : void
- エラー時の処理
- onPageGenerationStart() : bool
- 開始時の処理
- onPageGenerationSuccess() : void
- 成功時の処理
- requestStop() : void
- 停止を要求する
- run() : array<string|int, mixed>
- ページを生成
- getConsoleScriptPath() : string
- console.phpスクリプトのパスを取得
- getPhpBinPath() : string
- phpの実行パスを取得
Properties
$pages
private
array<string|int, Page>
$pages
= []
$pool
private
ProcessPool
$pool
Methods
addEntryPage()
エントリーページを追加
public
addEntryPage(string $url, string $destinationPathname, int $entryId[, string|null $userAgent = null ][, bool $withSession = false ]) : void
Parameters
- $url : string
- $destinationPathname : string
- $entryId : int
- $userAgent : string|null = null
- $withSession : bool = false
addPage()
ページを追加
public
addPage(string $url, string $destinationPathname[, string|null $userAgent = null ][, bool $withSession = false ]) : void
Parameters
- $url : string
- $destinationPathname : string
- $userAgent : string|null = null
- $withSession : bool = false
onPageGenerationError()
エラー時の処理
public
onPageGenerationError(Page $page, int $statusCode, ProcessResult $result) : void
Parameters
- $page : Page
- $statusCode : int
- $result : ProcessResult
onPageGenerationStart()
開始時の処理
public
onPageGenerationStart(Page $page) : bool
Parameters
- $page : Page
Return values
boolonPageGenerationSuccess()
成功時の処理
public
onPageGenerationSuccess(Page $page, string $stdout, int $statusCode, ProcessResult $result) : void
Parameters
- $page : Page
- $stdout : string
- $statusCode : int
- $result : ProcessResult
requestStop()
停止を要求する
public
requestStop() : void
run()
ページを生成
public
run(int $maxParallel[, PageGenerationListenerInterface $listener = null ][, bool $withData = false ]) : array<string|int, mixed>
Parameters
- $maxParallel : int
- $listener : PageGenerationListenerInterface = null
- $withData : bool = false
Return values
array<string|int, mixed>getConsoleScriptPath()
console.phpスクリプトのパスを取得
private
getConsoleScriptPath() : string
Return values
stringgetPhpBinPath()
phpの実行パスを取得
private
getPhpBinPath() : string