wiki.techinc.nl/includes/utils
Bartosz Dziewoński ec79aa3943 SQLPlatform: Introduce buildComparison()
Builds a condition comparing multiple values, for use with indexes
that cover multiple fields, common when e.g. paging through results
or doing batch operations. Can also be to generate a simple comparison
without writing raw SQL (see T210206).

Update a few manually constructed conditions to use this method.
There are more maintenance scripts and API classes that use the
same patterns, but this is a start.

As you can see by the code I'm replacing, there are many ways to do
this. I picked the one used by maintenance/TableCleanup.php, since
I found it the easiest to understand.

Change-Id: Ic368a87fb5ce4c13608b03206cd68518ec9732d4
2022-09-10 04:22:19 +02:00
..
AutoloadGenerator.php Fix many typos in comments 2022-05-10 12:46:11 +00:00
BatchRowIterator.php SQLPlatform: Introduce buildComparison() 2022-09-10 04:22:19 +02:00
BatchRowUpdate.php
BatchRowWriter.php
ClassCollector.php ClassCollector: Fix mistake in comment for T_DOUBLE_COLON case 2022-06-30 12:01:06 -04:00
ExecutableFinder.php
FileContentsHasher.php
MWCryptHKDF.php
MWCryptRand.php
MWFileProps.php filerepo: avoid PHP 8 warnings in File::splitMime() if $mime is null 2022-08-23 17:12:01 -07:00
MWRestrictions.php
README
RowUpdateGenerator.php
UIDGenerator.php
UrlUtils.php UrlUtils: Simplify and increase test coverage 2022-05-16 14:10:31 +10:00
ZipDirectoryReader.php Call ZipDirectoryReader from MimeAnalyzer 2022-05-03 14:43:26 +10:00
ZipDirectoryReaderError.php

The classes in this directory are general utilities for use by any part of
MediaWiki. They do not favour any particular user interface and are not
constrained to serve any particular feature. This is similar to includes/libs,
except that some dependency on the MediaWiki framework (such as the use of
MWException, Status or wfDebug()) disqualifies them from use outside of
MediaWiki without modification.

Utilities should not use global configuration variables, rather they should rely
on the caller to configure their behaviour.