Methods |
Description |
---|---|
Reports::getGroupUsersList() |
Get group’s member list for filter |
Reports::getReportFilters() |
Get available report filters |
Reports::getStepTypes() |
Get list of steps available from all generators |
Reports::init() |
Add actions once integration is ready |
Reports::isRealJoins() |
Fix bug on LD where they typed the action name wrong |
Reports::registerReportsScript() |
Add scripts when it’s on the reports page |
Reports::removeCourseColumnIfSelected() |
Remove the course column if a course is selected in the filter |
Reports::removeCourseFilterIfOnlyOne() |
Remove the filter if only 1 option available |
Reports::removePointsColumnIfNotAssigned() |
Remove the points column if all courses doesn’t have points |
Reports::removeUserColumnIfSelected() |
Remove the user column if a user is selected in the filter |
Reports::removeUserFilterIfStudent() |
Remove user filter is nond admin/mod are viewing reports tab |
Reports::reportAdditionalActivityFields() |
Sub filter for ld’s activity sql query on fields |
Reports::reportAdditionalActivityGroups() |
Sub filter for ld’s activity sql query on group_by |
Reports::reportAdditionalActivityTables() |
Sub filter for ld’s activity sql query on joins |
Reports::reportAdditionalActivityWheres() |
Sub filter for ld’s activity sql query on wheres |
Reports::showReportCourseStats() |
Output report course stats html |
Reports::showReportExport() |
Output report export button html |
Reports::showReportFilters() |
Output report filters html |
Reports::showReportTables() |
Output report results tables |
Reports::showReportUserStats() |
Output report user stats html |
Reports::standarlizeGeneratorColumns() |
Convert generator columns to datatable js format |
ReportsGenerator::__construct() |
Constructor |
ReportsGenerator::addCourseTimeSpentActivityFields() |
Add course time spent to sql fields statement |
ReportsGenerator::addCourseTitleActivityFields() |
Add course name to sql fields |
ReportsGenerator::addCourseTitleActivityGroup() |
Add placeholder where statement |
ReportsGenerator::addCourseTitleActivityTables() |
Add course table to sql joins |
ReportsGenerator::addCourseTitleActivityWhere() |
Add activity check on sql where |
ReportsGenerator::allSteps() |
Get all the learndash post type except groups |
ReportsGenerator::column() |
Get the built-in column setting by name reference |
ReportsGenerator::columns() |
Returns the columns and their settings |
ReportsGenerator::completionDate() |
Format completed date |
ReportsGenerator::coursePointsEarned() |
Format points earned if enabled |
ReportsGenerator::excludeCourseTimeSpent() |
Remove course time spent to sql statement |
ReportsGenerator::export() |
Prepare the export data |
ReportsGenerator::fetch() |
Fetch the data from the database |
ReportsGenerator::formatData() |
Format the activity results for each column |
ReportsGenerator::formatDataForDisplay() |
Overwrite results value for display |
ReportsGenerator::formatDataForExport() |
Overwrite results value for export |
ReportsGenerator::getColumns() |
Get the table columns |
ReportsGenerator::getData() |
Get the results data |
ReportsGenerator::getPager() |
Get the pagination info |
ReportsGenerator::hasArg() |
Check if the given argument is passed from request |
ReportsGenerator::includeCourseTimeSpent() |
Add course time spent to sql statement |
ReportsGenerator::includeCourseTitle() |
Add addition sql statement when fetching course reports |
ReportsGenerator::maybeAddActivityGroupBy() |
Replace placeholder where with gorup by statement |
ReportsGenerator::remove_post_ids_param() |
Remove post ids param from sql query |
ReportsGenerator::setupParams() |
Setup ld activity query params |
ReportsGenerator::timeSpent() |
Format secons to human readable teim spent |
ReportsGenerator::updatedDate() |
Convert completed date |
Requirements::__construct() |
Constructor |