EpubChapter
in package
Merge `.ncx` and `.html` files to create chapters.
Table of Contents
Properties
Methods
- content() : string
- label() : string
- source() : string
- toArray() : array<string|int, EpubChapter>
- __construct() : mixed
- findByFilename() : mixed
Properties
$content
protected
string|null
$content
= null
$label
protected
string|null
$label
= null
$source
protected
string|null
$source
= null
Methods
content()
public
content() : string
Return values
stringlabel()
public
label() : string
Return values
stringsource()
public
source() : string
Return values
stringtoArray()
public
static toArray(NcxItem|null $ncx, array<string|int, EpubHtml> $html) : array<string|int, EpubChapter>
Parameters
Return values
array<string|int, EpubChapter>__construct()
protected
__construct([string|null $label = null ][, string|null $source = null ][, string|null $content = null ]) : mixed
Parameters
- $label : string|null = null
- $source : string|null = null
- $content : string|null = null
findByFilename()
private
static findByFilename(array<string|int, EpubHtml> $html, string $filename) : mixed
Parameters
- $html : array<string|int, EpubHtml>
- $filename : string