Mike Colagrosso
65d1dcdd88
Use the NOW
constant from eec7971
2024-11-04 13:16:56 -06:00
Mike Colagrosso
6bec232d37
Remove checks against EBOOK_EARLIEST_CREATION_DATE
2024-11-04 13:16:56 -06:00
Mike Colagrosso
1076c9a77d
Remove primary key EbookSourceId
...
There is a one to many relationship between `Ebook` and `EbookSource`, and we
don't query by `EbookSourceId`. We add a `SortOrder` column to keep the sources
in the same order as specified in `content.opf`.
2024-11-04 13:16:56 -06:00
Mike Colagrosso
85307a7c7e
Standardize trim and other validation of nullable and non-nullable properties
2024-11-04 13:16:56 -06:00
Mike Colagrosso
0eaf2e8e47
Handle nullable and non-nullable validation consistently
2024-11-04 13:16:56 -06:00
Mike Colagrosso
8a61713fa4
Ebook validation: Trim properties that are present
2024-11-04 13:16:56 -06:00
Mike Colagrosso
221c2ff347
Validate Collection name
2024-11-04 13:16:56 -06:00
Mike Colagrosso
2aae231710
EbookTag validation: Trim name and check for empty string
2024-11-04 13:16:56 -06:00
Mike Colagrosso
2273367c6d
Collection validation: Pass enum to InvalidCollectionTypeException, not value
2024-11-04 13:16:56 -06:00
Mike Colagrosso
754fc0ab2b
LocSubject: Trim Name and validate Name isn't empty
2024-11-04 13:16:56 -06:00
Mike Colagrosso
5b1bb2a9f0
Change tag type from string to enum (TagType)
2024-11-04 13:16:56 -06:00
Mike Colagrosso
402dae95ff
Add a Type enum to Tags for artwork/ebook
2024-11-04 13:16:56 -06:00
Mike Colagrosso
ee29c526f8
Add a CollectionMembership class
2024-11-04 13:16:56 -06:00
Mike Colagrosso
5c69923176
Workaround a bug in Safe-PHP causes PHPStan errors
2024-11-04 13:16:56 -06:00
Mike Colagrosso
72d679a04f
Fix PHPStan errors
2024-11-04 13:16:56 -06:00
Mike Colagrosso
032032b920
Additional Ebook validation
2024-11-04 13:16:56 -06:00
Mike Colagrosso
63d411a2e6
Initial code changes to insert/update Ebook records
2024-11-04 13:16:56 -06:00
Alex Cabal
44901cf3e2
Add Db::QueryBool() and some code style updates
2024-09-15 13:50:13 -05:00
Alex Cabal
fa323842f6
Fix broken check in ValidationException
2024-05-24 23:37:28 -05:00
Alex Cabal
98f45ea4e0
Add the HttpInput::File() and HttpInput::Date() method
2024-05-24 20:48:28 -05:00
Alex Cabal
a9eab552ab
Flesh out some PHPDocs, and consistently name enums
2024-05-14 15:40:56 -05:00
Alex Cabal
ee7c8343dd
Convert some constants to enums
2024-05-11 21:51:06 -05:00
Alex Cabal
703e1a7a03
Continue improving type hints
2024-05-10 23:38:57 -05:00
Alex Cabal
c4c8e7353f
Enable strict exception type hint checking in PHPStan and add exception type hints
2024-05-10 20:47:36 -05:00
Alex Cabal
50efeb05d1
Style tweaks for getters and add more type hinting
2024-04-30 22:45:20 -05:00
Alex Cabal
e14988ff8c
Improve exceptions in DB classes
2024-04-27 14:42:37 -05:00
Alex Cabal
07110829e7
Specify explicit duplicate key exception in DB class
2024-04-26 13:58:05 -05:00
Alex Cabal
7eaa400ae3
Type tweaks for exceptions and some validation
2024-04-25 20:40:49 -05:00
Alex Cabal
225b01f3dd
Tweak type hints in ValidationException
2024-04-22 20:18:43 -05:00
Alex Cabal
e55fecaaa2
Switch from DateTime to DateTimeImmutable across codebase
2024-04-13 14:05:14 -05:00
Alex Cabal
2e7b1041bd
Add type hint
2024-03-20 13:08:38 -05:00
Alex Cabal
a9dcdcde94
Limit artwork results at the DB level
2024-01-28 14:04:29 -06:00
Alex Cabal
fe03f01393
Some more minor fixes, and checks for the temporary 'todo' tag
2024-01-18 21:31:36 -06:00
Alex Cabal
ca3fc6dbfd
Refactor HttpInput::Str and rename some exceptions for consistency
2024-01-18 11:21:05 -06:00
Alex Cabal
2b5f4f55a2
Style tweaks to artworks DB
2024-01-18 10:50:14 -06:00
Alex Cabal
531e3600ea
Convert some constants to enums
2024-01-14 22:32:47 -06:00
Alex Cabal
16df5b29fe
Validate and normalize museum URLs when submitting artwork
2024-01-12 14:20:54 -06:00
Alex Cabal
e17a4bcc65
Normalize URLs when submitting artwork to database
2024-01-09 13:59:00 -06:00
Alex Cabal
1c3640fab6
More type hinting
2024-01-08 20:21:42 -06:00
Alex Cabal
cb79832092
More type hinting
2024-01-08 17:00:20 -06:00
Alex Cabal
8e37543fa3
Add type hints to Artwork class members
2024-01-08 14:06:25 -06:00
Alex Cabal
5b6a334dd0
Add minimum artwork dimensions
2024-01-08 13:48:56 -06:00
Alex Cabal
5a1c05d8c5
Add password login option for some users, and further refinements to artwork management system
2024-01-06 22:27:38 -06:00
Mike Colagrosso
6a5c05511a
Add cover art database
...
Co-authored-by: Job Curtis <job.curtis@gmail.com>
Co-authored-by: Alex Cabal <alex@standardebooks.org>
2024-01-03 19:14:04 -06:00
Alex Cabal
12cf83a843
Rename SeException class to AppException
2023-07-14 09:36:10 -05:00
Alex Cabal
fda3ca6695
Clean up unused code in ValidationException
2023-07-06 21:48:28 -05:00
Alex Cabal
0bc3dc3830
Create cookie-based login and authentication system
2022-07-10 20:53:20 -05:00
Alex Cabal
4efc5dcdaf
Rename Vote object to PollVote
2022-07-06 11:36:42 -05:00
Alex Cabal
497f749523
Tweak patrons poll REST structure
2022-07-04 12:46:48 -05:00
Alex Cabal
011cd747f1
Convert newsletter to use Users table as base
2022-07-04 12:09:49 -05:00