I need to slightly modify the CSV export functions from LimeSurvey.
I'm trying to do this simply by modifying CsvWriter - my solution doesn't need to be pretty and can be bespoke and fragile - just for my needs! But I want to retain the current CsvWriter functions too.
To get started I've copied CsvWriter.php to MyNewWriter.php. Renamed the class to MyNewWriter and added a radio button to the export menu by modifying core/plugins/Authdb/Authdb.php.
I've also added a new 'class RDataWriter extends MyNewWriter' in core/plugins/ExportR/RDataWriter.php, copying the function.
I have a lot of experience with PHP, but have never used composer. The expected function at the moment is that I should just have duplicated the CsvWriter under a different name - the first step to learning how the backend works.
However, when I try to export using my 'new' writer I get an error 500 'Class MyNewWriter not found'. I'm assuming that composer needs to rebuild some sort of class table?
I'm hoping there's an easy one-liner that will resolve this. Can anybody point the way?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.