[REF] dev/core#2790 Move getFileName functionality to the trait
authorEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Sep 2021 23:20:41 +0000 (11:20 +1200)
committerEileen McNaughton <emcnaughton@wikimedia.org>
Fri, 3 Sep 2021 23:23:52 +0000 (11:23 +1200)
commit7c0d6f7a6addf425e19949658f4ca6a527c2186e
treefe7d9ab95e45b9ae8cd0e16e52b566c5dd2ee309
parente56a41aae945519344668f08dba0d13b09e39cdb
[REF] dev/core#2790 Move getFileName functionality to the trait

This moves the recently added functionality to standardise the file name to PDFTrait

For code not using the trait (naughty extensions that are using core code in unsupported ways)
the functionality will be the same as prior versions.

(note extensions should just copy & paste the code they want from core into their extensions
rather than call core functions - it's not 'DRY' if it's not supported).
CRM/Activity/Form/Task/PDF.php
CRM/Contact/Form/Task/PDFLetterCommon.php
CRM/Contact/Form/Task/PDFTrait.php
CRM/Contribute/Form/Task/PDFLetter.php
CRM/Member/Form/Task/PDFLetter.php
tests/phpunit/CRM/Utils/TokenTest.php