<?php
 refreshReportStatus('extractMainDataFromDb', 'updateUserDetails', 0); $reportCopyInfo = new \App\Reports\Db\ManageRecords\UpdateSimple($reportTable, $availableTableColumns); $reportCopyInfo->populateSimple($DBTOffices, 'officeName', 'idOffice', 'name'); $reportCopyInfo = new \App\Reports\Db\ManageRecords\UpdateSimple($reportTable, $availableTableColumns); $reportCopyInfo->populateSimple($DBTDepartments, 'departmentName', 'idDepartment', 'name'); refreshReportStatus('extractMainDataFromDb', 'updateAccessDetails', 0); $reportCopyInfo = new \App\Reports\Db\ManageRecords\UpdateSimple($reportTable, $availableTableColumns); $reportCopyInfo->populateSimple($DBTUserProfiles, 'profileName', 'idProfile', 'name'); if (in_array('sectionName', $availableTableColumns)) { \App\Loader_Lang::getInstance()->loadAppFile("_customLoad/usersAccess/options.lang.php"); $_LANG = \App\Loader_Lang::getInstance()->getAll(); } $reportCopyInfo = new \App\Reports\Db\ManageRecords\Update($reportTable, 'rep', $availableTableColumns); $reportCopyInfo->addCaseStructureColumn("sectionName", "idSection", (Array)$_LANG['usersAccess']['options']); $reportCopyInfo->addFilter("rep.type", "=", "option"); $reportCopyInfo->populate(); $reportCopyInfo = new \App\Reports\Db\ManageRecords\Update($reportTable, 'rep', $availableTableColumns); $reportCopyInfo->addCaseStructureColumn("sectionName", "idSection", (Array)$_LANG['menu']); $reportCopyInfo->addFilter("rep.type", "=", "section"); $reportCopyInfo->populate(); 