TopicsReportsGenerator::formatData( $activity )
Format the activity results for each column
Description
Source
File: bp-integrations/learndash/buddypress/generators/TopicsReportsGenerator.php
62 63 64 65 66 67 68 69 70 71 72 73 74 | protected function formatData( $activity ) { return [ 'user_id' => $activity ->user_id, 'user' => $activity ->user_display_name, 'course_id' => $activity ->activity_course_id, 'course' => $activity ->activity_course_title, 'topic' => $activity ->post_title, 'start_date' => $activity ->activity_started_formatted, 'completion_date' => $this ->completionDate( $activity ), 'time_spent' => $this ->timeSpent( $activity ), ]; } |
Changelog
Version | Description |
---|---|
BuddyBoss 1.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.