\HomeView

Displays the home page after logging in.

Summary

Methods
Properties
Constants
__construct()
show()
No public properties found
No constants found
No protected methods found
$template
N/A
loadStatistics()
loadTypes()
loadCategories()
loadBooks()
$bookManager
N/A

Properties

$template

$template : \Template

Holds the template object to manipulate html files.

Type

normal

$bookManager

$bookManager : \BookManager

BookManager object to fetch statistics and books.

Type

normal

Methods

__construct()

__construct(\Template  $template) : mixed

Initializes the template object.

Parameters

\Template $template

The template object to manipulate html content.

Returns

mixed

show()

show() : void

Outputs the html for this view.

loadStatistics()

loadStatistics() : void

Fetches statistics and adds them to the html template.

loadTypes()

loadTypes() : void

Fetches all available types and displays them as filter options.

loadCategories()

loadCategories() : void

Fetches all available categories and displays them as filter options.

loadBooks()

loadBooks() : void

Fetches books for the current selection and adds them to the html template.