<?php
 namespace App\Reports\Sources\UsersVisits; class PopulateQuickColumns extends \App\Reports\Sources\PopulateAbstract { public function populate() :void { $reportTable = $this->tableManager->getTableName(); $activeColumns = array_keys( $this->columnsManager->getStdColumns() ); global $DBTRd_offices, $DBTRd_departments; $this->reportGenerationStatusUpdate('extractMainDataFromDb', 'updateExtraDetails', 0); $reportCopyInfo = new \App\Reports\Db\ManageRecords\UpdateSimple($reportTable, $activeColumns); $reportCopyInfo->populateSimple($DBTRd_offices, 'userOfficeName', 'userOfficeId', "name"); $reportCopyInfo = new \App\Reports\Db\ManageRecords\UpdateSimple($reportTable, $activeColumns); $reportCopyInfo->populateSimple($DBTRd_departments, 'userDepartmentName', 'userDepartmentId', "name"); } } 