summaryrefslogtreecommitdiffstats
path: root/includes/venue.php
Commit message (Collapse)AuthorAgeFilesLines
* Fix misc errors detected by psalm.Harald Eilertsen2022-03-101-1/+1
| | | | | - Lacking type info in venue.php - Potentially dereference null-objects in giglog_admin_page.php
* iCal file download fixes to generate one file per concertAndreaChirulescu2022-02-271-1/+1
| | | | giglog import fixes to catch errors and ignore old concerts
* Clean up, fix and rename db tables.Harald Eilertsen2021-09-161-7/+11
| | | | | | | | | | | | | | | | | This patch got a bit more involved than what was originally planned, but since we're messing with the tables I decided to do it all right away. - Moves the constraint definition to the CREATE TABLE statement for the concerts table. This replaces the existing KEY definition that it had. - Make sure the venues table is created before the concerts table so that the above mentioned constraint definition works. - Rename the tables. Use the wpdb-prefix and make the name a bit prettier. This caused some changes in the Concert and Venue classes, and for slightly silly reasons some test classes. The code actually turned out better (for the most part), but some refactoring can still be done. The column names remains unchanged for now.
* Remove logging from Venue class.Harald Eilertsen2021-09-061-8/+0
| | | | Move logging to presentation/logic layer if necessary.
* Ordered venues by name in drop downAndreaChirulescu2021-09-051-1/+2
|
* Make name and city required attributes for Venues.Harald Eilertsen2021-09-021-6/+21
| | | | It does not make sense to have anonymous venues nowhere.
* Fix more type issues in Concert and Venue classesHarald Eilertsen2021-09-021-5/+5
|
* psalm: Ad types to attrs and constructor for VenueHarald Eilertsen2021-09-021-6/+6
|
* Fix misc Psalm issues.Harald Eilertsen2021-06-121-2/+2
|
* New method Venue::get to get venue by idHarald Eilertsen2021-05-091-0/+16
|
* Make venue constructor public.Harald Eilertsen2021-05-091-1/+1
|
* Venue::venues_in_city wrong type annotationHarald Eilertsen2021-05-081-1/+1
|
* Autofixes by PsalmHarald Eilertsen2021-05-081-2/+2
|
* Auto fixup missing return types by PsalmHarald Eilertsen2021-05-081-5/+15
|
* Added an uppercase in sql for venue and concert duplicate checkAndreaChirulescu2021-04-231-1/+9
| | | | Added test to create duplicate concert with varied cases in string
* Save city for venues too.Harald Eilertsen2021-04-151-1/+2
|
* Fix prepare call in Venue::venues_in_city.Harald Eilertsen2021-04-151-1/+1
|
* GiglogAdmin_Venue: Use default args to set default city.Harald Eilertsen2021-04-141-4/+3
|
* Use (object) notation to create plain objects.Harald Eilertsen2021-04-141-6/+5
|
* Switch to Reuse for license handling.Harald Eilertsen2021-04-141-16/+5
| | | | Run `reuse lint` to verify that all material is licensed.
* Fixed capital IFs and hopefully formatting issuesAndreaChirulescu2021-04-111-1/+1
|
* Added small forms to add new venue and bandAndreaChirulescu2021-04-111-5/+6
| | | | Made form for concert both functional to edit existing concert or add new concert
* Change venues into proper objects.Harald Eilertsen2021-04-101-12/+63
| | | | | | | | | This means most static functions now either return a venue object, or an array of venue objects. The exception is the `all_cities` method, which still return an array of cities as strings. The constructor has been made private, as it should not be used directly from anywhere but the static methods on the Venue class.
* Beuatified files after using editconfig with notepad++AndreaChirulescu2021-04-091-72/+72
|
* Beginning of a very rudimentary form for adding/editing concertsAndreaChirulescu2021-04-081-62/+72
|
* Move rendering of concert assignment table.Harald Eilertsen2021-04-011-0/+10
| | | | | | Moved it to the admin page for now. May move it further to a partial or something later. There's quite a bit of cleanup needed. It still refers to some utility functions in the old shortcode module.
* Refactor processing uploads.Harald Eilertsen2021-03-081-0/+52
Moves all database operations to separate classes for each type of object, bands, venues and concerts. This makes the logic cleaner, and concentrates the db related code to logically distinct parts of the code. This means we no longer need the global access to the $wpdb object from the processing code.