relation = $relation; } /** * @param array $params Request parameters * @return string */ public function index(array $params): string { global $db; // If request for creating the pmadb if (isset($params['create_pmadb']) && $this->relation->createPmaDatabase()) { $this->relation->fixPmaTables('phpmyadmin'); } // If request for creating all PMA tables. if (isset($params['fixall_pmadb'])) { $this->relation->fixPmaTables($db); } $cfgRelation = $this->relation->getRelationsParam(); // If request for creating missing PMA tables. if (isset($params['fix_pmadb'])) { $this->relation->fixPmaTables($cfgRelation['db']); } return $this->relation->getRelationsParamDiagnostic($cfgRelation); } }