RelationController
final class RelationController extends AbstractController (View source)
Display table relations for viewing and editing.
Includes phpMyAdmin relations and InnoDB relations.
Methods
__construct(ResponseRenderer $response, Template $template, Relation $relation, DatabaseInterface $dbi)
No description
bool
checkParameters(array $params, bool $request = false)
Function added to avoid path disclosures.
from
AbstractController
void
sendErrorResponse(string $message, int $statusCode = 400)
No description
from
AbstractController
void
void
getDropdownValueForTable()
Send table columns for foreign table dropdown
void
getDropdownValueForDatabase(string $storageEngine)
Send database selection values for dropdown
Details
__construct(ResponseRenderer $response, Template $template, Relation $relation, DatabaseInterface $dbi)
No description
protected void
render(string $templatePath, array $templateData = [])
No description
protected void
addScriptFiles(array $files)
No description
protected void
redirect(string $route, array $params = [])
No description
protected bool
checkParameters(array $params, bool $request = false)
Function added to avoid path disclosures.
Called by each script that needs parameters.
protected void
sendErrorResponse(string $message, int $statusCode = 400)
No description
void
__invoke(ServerRequest $request)
Index
void
getDropdownValueForTable()
Send table columns for foreign table dropdown
void
getDropdownValueForDatabase(string $storageEngine)
Send database selection values for dropdown