QUESTION: What is the Matomo class that determines how the file retrieved, when the file_get_contents() function is called, is filled?
Now, I understand that there are many subordinate classes/modules that likely inherit the sought after class. It is my goal, however, to learn how to make customized HTTP REST requests and manipulate their content. To this end I must know how the retrieved file is configured, so that I can properly parse its content.
Ultimately I want to produce my own widgets on my own website via AJAX, for in this way I can access the Matomo server directly, process the result in an invisible PHP file that does not reveal its source, retrieve the output with AJAX, and then format it for display on my website.
I know, it is like inventing the Matomo wheel all over again, but I do not know enough about Matomo and likely even PHP to fix the security issue ot the Matomo widgets.