Documentation

Fb2Parser
in package

Table of Contents

Properties

$binary  : array<string|int, mixed>|null
$body  : array<string|int, mixed>|null
$contents  : array<string|int, mixed>
$cover  : string|null
$description  : Fb2MetaDescription|null
$path  : string
$root  : string|null
$xml  : XmlReader

Methods

getBinary()  : array<string|int, Fb2MetaBinaryItem>
getBody()  : array<string|int, mixed>|null
getContents()  : array<string|int, mixed>
getCover()  : string|null
getDescription()  : Fb2MetaDescription|null
getRoot()  : string|null
make()  : self
__construct()  : mixed
buildBinaryItems()  : array<string|int, Fb2MetaBinaryItem>
buildContainer()  : self
buildDocument()  : Fb2MetaDescriptionDocument|null
buildPublish()  : Fb2MetaDescriptionPublish|null
buildTitle()  : Fb2MetaDescriptionTitle|null
findCover()  : string|null
parseAuthor()  : array<string|int, Fb2MetaAuthor>
parseMetadata()  : array<string|int, mixed>

Properties

$binary

protected array<string|int, mixed>|null $binary = null

$body

protected array<string|int, mixed>|null $body = null

$contents

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

Methods

getBody()

public getBody() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null

getContents()

public getContents() : array<string|int, mixed>
Return values
array<string|int, mixed>

getCover()

public getCover() : string|null
Return values
string|null

getRoot()

public getRoot() : string|null
Return values
string|null

make()

public static make(string $path) : self
Parameters
$path : string
Return values
self

__construct()

protected __construct(string $path, XmlReader $xml[, string|null $root = null ][, array<string|int, mixed> $contents = [] ][, Fb2MetaDescription|null $description = null ][, array<string|int, mixed>|null $body = null ][, array<string|int, Fb2MetaBinaryItem$binary = null ][, string|null $cover = null ]) : mixed
Parameters
$path : string
$xml : XmlReader
$root : string|null = null
$contents : array<string|int, mixed> = []
$description : Fb2MetaDescription|null = null
$body : array<string|int, mixed>|null = null
$binary : array<string|int, Fb2MetaBinaryItem> = null
$cover : string|null = null

buildBinaryItems()

private buildBinaryItems(array<string|int, mixed> $binary) : array<string|int, Fb2MetaBinaryItem>
Parameters
$binary : array<string|int, mixed>
Return values
array<string|int, Fb2MetaBinaryItem>

buildContainer()

private buildContainer() : self
Return values
self

findCover()

private findCover() : string|null
Return values
string|null

parseMetadata()

private parseMetadata() : array<string|int, mixed>
Return values
array<string|int, mixed>

{titleInfo: array, documentInfo: array, publishInfo: array}


        
On this page

Search results