EpubModule
extends EbookModule
Table of Contents
Properties
-
$chapters
: array<string|int, EpubChapter>
-
$container
: EpubContainer|null
-
$coverPath
: string|null
-
$ebook
: Ebook
-
$files
: array<string|int, string>
-
$html
: array<string|int, EpubHtml>
-
$ncx
: NcxItem|null
-
$opf
: OpfItem|null
-
$pagesCount
: int|null
-
$wordsCount
: int|null
Methods
-
__toString()
: string
-
getChapters()
: array<string|int, EpubChapter>
-
getContainer()
: EpubContainer|null
-
getCoverPath()
: string|null
-
getFiles()
: array<string|int, string>
-
getHtml()
: array<string|int, EpubHtml>
-
getNcx()
: NcxItem|null
-
getOpf()
: OpfItem|null
-
getPagesCount()
: int|null
-
getWordsCount()
: int|null
-
make()
: self
-
toArray()
: array<string|int, mixed>
-
toCounts()
: Ebook
-
toCover()
: EbookCover|null
-
toEbook()
: Ebook
-
toJson()
: string
-
__construct()
: mixed
-
arrayToHtml()
: string|null
-
create()
: self
-
parseChapters()
: array<string|int, mixed>
-
parseFiles()
: array<string|int, mixed>
-
parseNcx()
: NcxItem|null
-
setCounts()
: array<string|int, mixed>
$chapters
protected
array<string|int, EpubChapter>
$chapters
= []
$container
protected
EpubContainer|null
$container
= null
$coverPath
protected
string|null
$coverPath
= null
$ebook
protected
Ebook
$ebook
$files
protected
array<string|int, string>
$files
= []
$html
protected
array<string|int, EpubHtml>
$html
= []
$ncx
protected
NcxItem|null
$ncx
= null
$opf
protected
OpfItem|null
$opf
= null
$pagesCount
protected
int|null
$pagesCount
= null
$wordsCount
protected
int|null
$wordsCount
= null
__toString()
public
__toString() : string
getChapters()
public
getChapters() : array<string|int, EpubChapter>
getContainer()
public
getContainer() : EpubContainer|null
getCoverPath()
public
getCoverPath() : string|null
Return values
string|null
getFiles()
public
getFiles() : array<string|int, string>
Return values
array<string|int, string>
getHtml()
public
getHtml() : array<string|int, EpubHtml>
Return values
array<string|int, EpubHtml>
getNcx()
public
getNcx() : NcxItem|null
getOpf()
public
getOpf() : OpfItem|null
getPagesCount()
public
getPagesCount() : int|null
getWordsCount()
public
getWordsCount() : int|null
make()
public
static make(Ebook $ebook) : self
Parameters
-
$ebook
: Ebook
-
toArray()
public
toArray() : array<string|int, mixed>
Return values
array<string|int, mixed>
toCounts()
public
toCounts() : Ebook
toCover()
public
toCover() : EbookCover|null
toEbook()
public
toEbook() : Ebook
toJson()
public
toJson() : string
__construct()
protected
__construct(Ebook $ebook) : mixed
Parameters
-
$ebook
: Ebook
-
arrayToHtml()
protected
arrayToHtml(array<string|int, mixed>|null $array) : string|null
Parameters
-
$array
: array<string|int, mixed>|null
-
Return values
string|null
create()
private
create() : self
parseChapters()
private
parseChapters() : array<string|int, mixed>
Return values
array<string|int, mixed>
parseFiles()
private
parseFiles() : array<string|int, mixed>
Return values
array<string|int, mixed>
parseNcx()
private
parseNcx() : NcxItem|null
setCounts()
private
setCounts() : array<string|int, mixed>
Return values
array<string|int, mixed>