class Designer (View source)

Set of functions related to database designer

Properties

Template $template

Methods

__construct(DatabaseInterface $dbi, Relation $relation, Template $template)

No description

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(string $db, array $designerTables, 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 $designerTables, array $scriptTables, array $scriptContr, array $scriptDisplayField, int $displayPage, bool $visualBuilderMode, string $selectedPage, array $paramsArray, array|null $tabPos, array $tabColumn, array $tablesAllKeys, array $tablesPkOrUniqueKeys)

Returns HTML for Designer page

Details

__construct(DatabaseInterface $dbi, Relation $relation, Template $template)

No description

Parameters

DatabaseInterface $dbi

DatabaseInterface object

Relation $relation

Relation instance

Template $template

Template instance

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

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

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

array returnClassNamesFromMenuButtons()

Returns class names for various buttons on Designer Side Menu

Return Value

array

class names of various buttons

string getDatabaseTables(string $db, array $designerTables, 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

string $db

The database name from the request

array $designerTables

The designer tables

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

string getHtmlForMain(string $db, string $getDb, array $designerTables, array $scriptTables, array $scriptContr, array $scriptDisplayField, int $displayPage, bool $visualBuilderMode, 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 $designerTables

The designer tables

array $scriptTables

array on foreign key support for each table

array $scriptContr

initialization data array

array $scriptDisplayField

displayed tables in designer with their display fields

int $displayPage

page number of the selected page

bool $visualBuilderMode

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