a-blog cms PHP API Reference

EntryWriter
in package

Table of Contents

Properties

$entryRepository  : EntryRepository
$helper  : mixed

Methods

__construct()  : mixed
Constructor
writeEntries()  : void
エントリーアイテム配列を書き出し
computeStatus()  : "publish"|"draft"|"pending"|"future"
エントリーステータスを公開期限・承認状態・ステータスから計算
writeEntryCategory()  : void
カテゴリーを書き出し
writeEntryElement()  : void
エントリーアイテムを書き出し
writeEntryField()  : void
カスタムフィールドを書き出し
writeMainImage()  : int|null
メイン画像アイテムを書き出し

Properties

$helper

protected mixed $helper
Tags
@var

\Acms\Services\Export\Helper;

Methods

__construct()

Constructor

public __construct() : mixed

writeEntries()

エントリーアイテム配列を書き出し

public writeEntries(XMLWriter $writer, int $bid, bool $includeChildBlogs, Logger $logger) : void
Parameters
$writer : XMLWriter
$bid : int
$includeChildBlogs : bool
$logger : Logger

computeStatus()

エントリーステータスを公開期限・承認状態・ステータスから計算

protected computeStatus(array<string|int, mixed> $item) : "publish"|"draft"|"pending"|"future"
Parameters
$item : array<string|int, mixed>
Return values
"publish"|"draft"|"pending"|"future"

writeEntryCategory()

カテゴリーを書き出し

protected writeEntryCategory(XMLWriter $writer, array<string|int, mixed> $item) : void
Parameters
$writer : XMLWriter
$item : array<string|int, mixed>

writeEntryElement()

エントリーアイテムを書き出し

protected writeEntryElement(XMLWriter $writer, array<string|int, mixed> $item, int|null $postId) : void
Parameters
$writer : XMLWriter
$item : array<string|int, mixed>
$postId : int|null

writeEntryField()

カスタムフィールドを書き出し

protected writeEntryField(XMLWriter $writer, int $eid) : void
Parameters
$writer : XMLWriter
$eid : int

writeMainImage()

メイン画像アイテムを書き出し

protected writeMainImage(XMLWriter $writer, array<string|int, mixed> $item) : int|null
Parameters
$writer : XMLWriter
$item : array<string|int, mixed>
Return values
int|null

        
On this page

Search results