[Ref] Extract getFormValues
authoreileen <emcnaughton@wikimedia.org>
Fri, 18 Sep 2020 02:25:34 +0000 (14:25 +1200)
committereileen <emcnaughton@wikimedia.org>
Fri, 18 Sep 2020 03:13:18 +0000 (15:13 +1200)
commit986ac53f2addee153934d381c61ed3ffd73ab929
tree352e7ac3f5e89d845120bbfd4e820e17ec8584da
parenta5e7d9d2135cf130222a74902050aba5efe2afd2
[Ref] Extract getFormValues

Digging into this is seems the  is always an object that inherits from this class

It is called statically primarily because the export task does not have
subclasses per form & does not know what variant it's passing in. However, we can
move functions onto the CRM_Contact_Form_Task class as non-static functions
and call them form form-> however unintuitive that seems.

I am trying to clean up the structure such that we can move on from the
static method but decided I should tackle this function a little first.

To test try doing an export from any search & this is called in static mode
(same goes for any task but the path is less ambiguous)
CRM/Contact/Form/Task.php
CRM/Core/Form/Task.php