class Designer

Set of functions related to database designer

Properties

Template $template

Methods

__construct(DatabaseInterface $dbi)

Designer constructor.

string
getHtmlForEditOrDeletePages(string $db, string $operation)

Function to get html for displaying the page edit/delete form

string
getHtmlForPageSaveAs(string $db)

Function to get html for displaying the page save as form

string
getHtmlForSchemaExport(string $db, int $page)

Function to get html for displaying the schema export

array
returnClassNamesFromMenuButtons()

Returns class names for various buttons on Designer Side Menu

string
getDatabaseTables(array $tab_pos, int $display_page, array $tab_column, array $tables_all_keys, array $tables_pk_or_unique_keys)

Get HTML to display tables on designer page

string
getHtmlForMain(string $db, string $getDb, array $scriptTables, array $scriptContr, array $scriptDisplayField, int $displayPage, boolean $hasQuery, string $selectedPage, array $paramsArray, array|null $tabPos, array $tabColumn, array $tablesAllKeys, array $tablesPkOrUniqueKeys)

Returns HTML for Designer page

Details

at line 47
__construct(DatabaseInterface $dbi)

Designer constructor.

Parameters

DatabaseInterface $dbi DatabaseInterface object

at line 62
string getHtmlForEditOrDeletePages(string $db, string $operation)

Function to get html for displaying the page edit/delete form

Parameters

string $db database name
string $operation 'edit' or 'delete' depending on the operation

Return Value

string html content

at line 80
string getHtmlForPageSaveAs(string $db)

Function to get html for displaying the page save as form

Parameters

string $db database name

Return Value

string html content

at line 126
string getHtmlForSchemaExport(string $db, int $page)

Function to get html for displaying the schema export

Parameters

string $db database name
int $page the page to be exported

Return Value

string

at line 181
array returnClassNamesFromMenuButtons()

Returns class names for various buttons on Designer Side Menu

Return Value

array class names of various buttons

at line 248
string getDatabaseTables(array $tab_pos, int $display_page, array $tab_column, array $tables_all_keys, array $tables_pk_or_unique_keys)

Get HTML to display tables on designer page

Parameters

array $tab_pos tables positions
int $display_page page number of the selected page
array $tab_column table column info
array $tables_all_keys all indices
array $tables_pk_or_unique_keys unique or primary indices

Return Value

string html

at line 322
string getHtmlForMain(string $db, string $getDb, array $scriptTables, array $scriptContr, array $scriptDisplayField, int $displayPage, boolean $hasQuery, string $selectedPage, array $paramsArray, array|null $tabPos, array $tabColumn, array $tablesAllKeys, array $tablesPkOrUniqueKeys)

Returns HTML for Designer page

Parameters

string $db database in use
string $getDb database in url
array $scriptTables array on foreign key support for each table
array $scriptContr initialization data array
array $scriptDisplayField display fields of each table
int $displayPage page number of the selected page
boolean $hasQuery whether this is visual query builder
string $selectedPage name of the selected page
array $paramsArray array with class name for various buttons on side menu
array|null $tabPos table positions
array $tabColumn table column info
array $tablesAllKeys all indices
array $tablesPkOrUniqueKeys unique or primary indices

Return Value

string html