mirror of
https://github.com/standardebooks/web.git
synced 2025-07-12 17:42:29 -04:00
Refactor functions out of Library
This commit is contained in:
parent
1449148989
commit
b7b63a4be5
24 changed files with 419 additions and 444 deletions
|
@ -103,7 +103,7 @@ function CreateZip(string $filePath, array $ebooks, string $type, string $webRoo
|
|||
}
|
||||
|
||||
// Iterate over all ebooks and arrange them by publication month.
|
||||
foreach(Library::GetEbooks() as $ebook){
|
||||
foreach(Ebook::GetAll() as $ebook){
|
||||
$timestamp = $ebook->EbookCreated->format('Y-m');
|
||||
$updatedTimestamp = $ebook->EbookUpdated->getTimestamp();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue