From dd8134db6f39889f7a512e8c5c46bcf0d2095a43 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 8 Jan 2024 16:10:54 -0600 Subject: [PATCH] Update wanted ebooks list --- lib/Artist.php | 14 ++++++------- lib/Artwork.php | 36 ++++++++++++++++---------------- lib/Museum.php | 2 +- lib/Tag.php | 2 +- www/contribute/wanted-ebooks.php | 6 +++--- 5 files changed, 30 insertions(+), 30 deletions(-) diff --git a/lib/Artist.php b/lib/Artist.php index 3470d388..d70e78a1 100644 --- a/lib/Artist.php +++ b/lib/Artist.php @@ -8,13 +8,13 @@ use function Safe\date; * @property array $_AlternateSpellings */ class Artist extends PropertiesBase{ - public ?int $ArtistId; - public ?string $Name; - public ?int $DeathYear; - public ?datetime $Created; - public ?datetime $Updated; - protected ?string $_UrlName; - protected $_AlternateSpellings; + public ?int $ArtistId = null; + public ?string $Name = null; + public ?int $DeathYear = null; + public ?datetime $Created = null; + public ?datetime $Updated = null; + protected ?string $_UrlName = null; + protected $_AlternateSpellings; // ******* // GETTERS diff --git a/lib/Artwork.php b/lib/Artwork.php index 0f62bde4..ad625094 100644 --- a/lib/Artwork.php +++ b/lib/Artwork.php @@ -24,24 +24,24 @@ use function Safe\preg_replace; * @property array $_Tags */ class Artwork extends PropertiesBase{ - public ?string $Name; - public ?int $ArtworkId; - public ?int $ArtistId; - public ?int $CompletedYear; - public ?bool $CompletedYearIsCirca; - public ?DateTime $Created; - public ?DateTime $Updated; - public ?string $Status; - public ?string $EbookWwwFilesystemPath; - public ?int $SubmitterUserId; - public ?int $ReviewerUserId; - public ?string $MuseumUrl; - public ?int $PublicationYear; - public ?string $PublicationYearPageUrl; - public ?string $CopyrightPageUrl; - public ?string $ArtworkPageUrl; - public ?bool $IsPublishedInUs; - public ?string $Exception; + public ?string $Name = null; + public ?int $ArtworkId = null; + public ?int $ArtistId = null; + public ?int $CompletedYear = null; + public ?bool $CompletedYearIsCirca = null; + public ?DateTime $Created = null; + public ?DateTime $Updated = null; + public ?string $Status = null; + public ?string $EbookWwwFilesystemPath = null; + public ?int $SubmitterUserId = null; + public ?int $ReviewerUserId = null; + public ?string $MuseumUrl = null; + public ?int $PublicationYear = null; + public ?string $PublicationYearPageUrl = null; + public ?string $CopyrightPageUrl = null; + public ?string $ArtworkPageUrl = null; + public ?bool $IsPublishedInUs = null; + public ?string $Exception = null; protected ?string $_UrlName = null; protected ?string $_Url = null; protected $_Tags = null; diff --git a/lib/Museum.php b/lib/Museum.php index af076900..9c6465b1 100644 --- a/lib/Museum.php +++ b/lib/Museum.php @@ -16,7 +16,7 @@ class Museum extends PropertiesBase{ limit 1; ', [$url], 'Museum'); - if($result[0] === null){ + if(sizeof($result[0]) == 0){ throw new Exceptions\MuseumNotFoundException(); } diff --git a/lib/Tag.php b/lib/Tag.php index 91cb2b9c..6e04790b 100644 --- a/lib/Tag.php +++ b/lib/Tag.php @@ -6,5 +6,5 @@ class Tag extends PropertiesBase{ public int $TagId; public string $Name; public string $UrlName; - protected ?string $_Url; + protected ?string $_Url = null; } diff --git a/www/contribute/wanted-ebooks.php b/www/contribute/wanted-ebooks.php index 36cf7a9b..0c06cdd9 100644 --- a/www/contribute/wanted-ebooks.php +++ b/www/contribute/wanted-ebooks.php @@ -102,9 +102,6 @@
  • The Chink in the Armour by Marie Belloc Lowndes

  • -
  • -

    The Coming Race by Edward Bulwer-Lytton

    -
  • With Edged Tools by Henry Seton Merriman

  • @@ -153,6 +150,9 @@

    Moderate-difficulty productions