mirror of
https://github.com/standardebooks/web.git
synced 2025-07-16 11:26:37 -04:00
Rename function to Ebook::GetByIsWantedAndDifficulty()
This commit is contained in:
parent
e25993b208
commit
2d5cba0aaa
2 changed files with 2 additions and 2 deletions
|
@ -2426,7 +2426,7 @@ final class Ebook{
|
||||||
*
|
*
|
||||||
* @return array<Ebook>
|
* @return array<Ebook>
|
||||||
*/
|
*/
|
||||||
public static function GetWantedByDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{
|
public static function GetByIsWantedAndDifficulty(Enums\EbookPlaceholderDifficulty $difficulty): array{
|
||||||
return Db::Query('
|
return Db::Query('
|
||||||
SELECT Ebooks.*
|
SELECT Ebooks.*
|
||||||
from Ebooks inner join EbookPlaceholders using (EbookId)
|
from Ebooks inner join EbookPlaceholders using (EbookId)
|
||||||
|
|
|
@ -3,7 +3,7 @@ use function Safe\ob_end_clean;
|
||||||
use function Safe\ob_start;
|
use function Safe\ob_start;
|
||||||
|
|
||||||
function WantedEbooks(Enums\EbookPlaceholderDifficulty $difficulty, ?bool $showPlaceholderMetadata): string{
|
function WantedEbooks(Enums\EbookPlaceholderDifficulty $difficulty, ?bool $showPlaceholderMetadata): string{
|
||||||
$ebooks = Ebook::GetWantedByDifficulty($difficulty);
|
$ebooks = Ebook::GetByIsWantedAndDifficulty($difficulty);
|
||||||
$showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
|
$showPlaceholderMetadata = $showPlaceholderMetadata ?? false;
|
||||||
|
|
||||||
ob_start();
|
ob_start();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue