Skip to content

Handler

  • Full name: \SebLucas\EPubMeta\App\Handler

Properties

bookdir

protected string $bookdir

rootdir

protected string $rootdir

epub

protected ?\SebLucas\EPubMeta\EPub $epub

error

protected ?string $error

Methods

__construct

public __construct(string $bookdir): mixed

Parameters:

Parameter Type Description
$bookdir string

handle

Handle request

public handle(mixed $request = null): void

Parameters:

Parameter Type Description
$request mixed @todo

searchBookApi

Proxy google requests

protected searchBookApi(string $query): string|false

Parameters:

Parameter Type Description
$query string

getEpubData

Get Epub data

protected getEpubData(\SebLucas\EPubMeta\EPub $epub, array<string,string> $data = []): array<string,string>

Parameters:

Parameter Type Description
$epub \SebLucas\EPubMeta\EPub
$data array

saveEpubData

Save Epub data

protected saveEpubData(\SebLucas\EPubMeta\EPub $epub): \SebLucas\EPubMeta\EPub

Parameters:

Parameter Type Description
$epub \SebLucas\EPubMeta\EPub

renameEpubFile

Rename Epub file

protected renameEpubFile(\SebLucas\EPubMeta\EPub $epub): string

Parameters:

Parameter Type Description
$epub \SebLucas\EPubMeta\EPub

renderTemplate

Render template with data

protected renderTemplate(string $template, array<string,string> $data): string

Parameters:

Parameter Type Description
$template string
$data array


Automatically generated on 2025-03-18