BookStack/app/Entities/Models
Dan Brown f99af807d0
Reviewed and refactored additional editor draft save warnings
- Added testing to cover warning cases.
- Refactored logic to be simpler and move much of the business out of
  the controller.
- Added new message that's more suitable to the case this was handling.
- For detecting an outdated draft, checked the draft created_at time
  instead of updated_at to better fit the scenario being checked.
- Updated some method types to align with those potentially being used
  in the logic of the code.
- Added a cache of shown messages on the front-end to prevent them
  re-showing on every save during the session, even if dismissed.
2021-10-04 20:26:55 +01:00
..
Book.php Applied styleci style changes 2021-09-18 21:21:44 +01:00
BookChild.php Applied stylci advisories 2021-08-24 21:23:55 +01:00
Bookshelf.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Chapter.php Optimized loading of page/chapter URLs to be a little more efficient 2021-08-21 19:59:55 +01:00
Deletion.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Entity.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
HasCoverImage.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Page.php Fixed lack of proper ordering of pages 2021-09-01 20:30:02 +01:00
PageRevision.php Reviewed and refactored additional editor draft save warnings 2021-10-04 20:26:55 +01:00
SearchTerm.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00