mediawiki-extensions-Discus.../includes/ThreadItem
Bartosz Dziewoński a27e27fc68 Move finding transclusion source from ContentThreadItem to CommentParser
Reasons:
* Various other methods dealing with ranges already live there
* It would be neat if ContentThreadItem was just a value class
  without a lot of logic, similar to DatabaseThreadItem,
  particularly for writing unit tests
* The methods access global state through Title, which can't
  be fixed while they're in ContentThreadItem (see I9dfccc83)

The computation is now always done, instead of only when needed,
but that's a small drawback, since it's fast (fast enough that
I don't see the difference in the time taken when running tests),
and we were already computing it for all comments in many places.

Change-Id: Ic718a964e309ae3a8e15e299081f46d4db860731
2023-12-11 22:18:30 +01:00
..
CommentItem.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
CommentItemTrait.php Update exception handling for new code conventions 2023-01-22 18:17:11 +00:00
ContentCommentItem.php Move finding transclusion source from ContentThreadItem to CommentParser 2023-12-11 22:18:30 +01:00
ContentHeadingItem.php Move finding transclusion source from ContentThreadItem to CommentParser 2023-12-11 22:18:30 +01:00
ContentThreadItem.php Move finding transclusion source from ContentThreadItem to CommentParser 2023-12-11 22:18:30 +01:00
DatabaseCommentItem.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
DatabaseHeadingItem.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
DatabaseThreadItem.php Use PHP 7.4 property types 2022-10-28 21:56:38 +02:00
HeadingItem.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
HeadingItemTrait.php ThreadItem jsonSerialize: make sure callback is applied last 2022-08-30 09:11:46 -05:00
ThreadItem.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00
ThreadItemTrait.php Separate ContentThreadItem and DatabaseThreadItem etc. 2022-07-04 23:35:50 +02:00