ChangeTags: turn private getPrevTags() into public getTags()
authorLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 7 Aug 2019 13:12:47 +0000 (15:12 +0200)
committerLucas Werkmeister <lucas.werkmeister@wikimedia.de>
Wed, 7 Aug 2019 13:19:20 +0000 (15:19 +0200)
commit59816a75686739a8730867f13bf7ea6eccdd26df
treeaed7de289eee6cfe7362292e9ecd90dafbf2a40c
parent3c163e348aa5cabdf9512ada3b7ad754a9427099
ChangeTags: turn private getPrevTags() into public getTags()

This makes the most convenient way to get all the change tags for a
given recent change, revision, and/or log entry public. The database is
injected as an additional parameter so that callers can choose to read
from a replica, and the revision and log ID parameters are swapped for
consistency with other methods in the same class. Also, while we’re
already touching the method, let’s extract the change_tag_def store.

Change-Id: Id8f14044ba5d926447aedd60e8cc8eb7dc864899
includes/changetags/ChangeTags.php
tests/phpunit/includes/changetags/ChangeTagsTest.php