Skip to content

Export participants scores and store questions ​

Domain/Stores/Reports/StoreParticipantsScoresStoreQuestionsReport.php lists store employees with their scores and question answers. Admins can compare answers on a store question with score categories.

Employee question - Voluptatibus quis in rerum est aliquam.
Answer - Ut aspernatur quaerat esse atque corporis.
Total invited employees: 354
Employees that have accepted the invitation: 187
Total employees with scores: 92
rec_ls_alcohol_glasses_per_week_cat:
    Good - 0 (0.00 %)
    Mediocre - 0 (0.00 %)
    Bad - 92 (100.00 %)
rec_ls_exercise_cat:
    Good - 0 (0.00 %)
    Mediocre - 92 (100.00 %)
    Bad - 0 (0.00 %)

Usage ​

In the store or main backoffice, open Reports and export Score store questions.

The HTTP entry is Interfaces/Backoffice/Shared/Controllers/Reports/ExportStoreReportsScoreStoreQuestions.php.

Code ​

generate() counts invited employees. getExportText prints accepted invitations (COUNT_ACTIVE) and employees with scores (COUNT_WITH_SCORES).

Then it loops over each relevant score type (rec_ls_alcohol_glasses_per_week_cat, rec_ls_exercise_cat, and so on) and score category (Good, Mediocre, Bad). The text shows how people with a given health score answered that question.