BookController
in package
Controller for book management operations.
Tags
Table of Contents
Properties
- $bookFacade : BookFacade
- Book facade.
- $viewPath : string
- View base path.
Methods
- __construct() : mixed
- Constructor.
- delete() : void
- Delete a book.
- import() : void
- Show EPUB import form or handle import submission.
- index() : void
- List all books.
- show() : void
- Show a single book with chapters.
- processImport() : void
- Process EPUB import submission.
- showImportResult() : void
- Show import result page.
Properties
$bookFacade
Book facade.
private
BookFacade
$bookFacade
$viewPath
View base path.
private
string
$viewPath
Methods
__construct()
Constructor.
public
__construct(BookFacade $bookFacade) : mixed
Parameters
- $bookFacade : BookFacade
-
Book facade
delete()
Delete a book.
public
delete(array<string, mixed> $params) : void
Parameters
- $params : array<string, mixed>
-
Route parameters (id)
import()
Show EPUB import form or handle import submission.
public
import(array<string, mixed> $params) : void
Parameters
- $params : array<string, mixed>
-
Route parameters
index()
List all books.
public
index(array<string, mixed> $params) : void
Parameters
- $params : array<string, mixed>
-
Route parameters
show()
Show a single book with chapters.
public
show(array<string, mixed> $params) : void
Parameters
- $params : array<string, mixed>
-
Route parameters (id)
processImport()
Process EPUB import submission.
private
processImport() : void
showImportResult()
Show import result page.
private
showImportResult(string $message, string $messageType, int|null $bookId) : void
Parameters
- $message : string
-
Result message
- $messageType : string
-
Bulma notification class
- $bookId : int|null
-
Book ID if successful