classTableIndexPage
final class TableIndexPage
Restricted visibility: declared "@visibility root". Code outside that scope must not name this declaration.
Every table the catalog names, with how each is used.
A table is the unit a schema change is made in, so the listing answers the question that precedes one: how much reads this, how much writes it, and how much of that the analysis is unsure about. Tables qualified with a schema are listed under it, so a catalog spanning databases reads database by database.
Methods§
public function __construct(?HtmlText $text = null)public function render(ReportSite $site): stringThe body of the tables listing.
Parameters
$site | ReportSite |
Returns
stringTest cases 3
Called from 1
Calls 7
- method-call ReportSite::index() line 40
- method-call TableIndexPage::bySchema() line 44
- function-call
countline 48 - method-call HtmlText::escape() line 48
- method-call HtmlText::slug() line 48
- method-call HtmlText::count() line 49
- method-call TableIndexPage::table() line 50
public function bySchema(array<string, list<CatalogEntry>> $tables): array<string, array<string, list<CatalogEntry>>>The tables under each schema, the unqualified ones under an empty name.
Parameters
$tables | array<string, list<CatalogEntry>> |
Returns
array<string, array<string, list<CatalogEntry>>>Test cases 1
Called from 1
Calls 3
- method-call TableName::schema() line 70
- new TableName line 70
- function-call
ksortline 72
public function table(ReportSite $site, array<string, list<CatalogEntry>> $tables): stringOne listing of tables, sortable by any column.
Parameters
$site | ReportSite | |
$tables | array<string, list<CatalogEntry>> |
Returns
stringTest cases 1
Called from 1
Calls 1
- method-call TableIndexPage::row() line 86
public function row(ReportSite $site, string $table, list<CatalogEntry> $entries): stringOne table as a row.
Parameters
$site | ReportSite | |
$table | string | |
$entries | list<CatalogEntry> |
Returns
stringTest cases 1
Called from 1
Calls 9
- method-call ReportSite::index() line 103
- new TableName line 105
- function-call
countline 106 - method-call HtmlText::number() line 109
- method-call TableName::isUnknown() line 112
- method-call HtmlText::escape() line 112
- method-call ReportSite::tablePage() line 112
- method-call TableName::label() line 113
- method-call HtmlText::marked() line 113
Private surface 1§
Implementation details, listed for orientation only.
private HtmlText $textTest cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 6
TableIndexPageTest::testBySchemaPutsUnqualifiedTablesUnderAnEmptyNamecallsTableIndexPageTest::testRenderDoesNotGroupWhenNoTableIsQualifiedcallsTableIndexPageTest::testRenderGroupsTablesBySchemaWhenAnyIsQualifiedcallsTableIndexPageTest::testRenderIsWrittenExactlycallsTableIndexPageTest::testRowCountsHowTheTableIsUsedAndMarksAGapInItsNamecallsTableIndexPageTest::testTableIsSortableByEveryColumncalls
Other tests reaching this symbol 2
ReporterInterfaceTestcallsHtmlReporterTestcalls