class Designer (View source)

Set of functions related to database designer

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, mixed $formatParam, mixed $exportTypeParam)

Function to get html for displaying the schema export

array
returnClassNamesFromMenuButtons()

Returns class names for various buttons on Designer Side Menu

array
getColumnTypes(array $tableColumnsInfo, array $tablesAllKeys)

No description

getDesignerConfig(string $db, array $designerTables, array $scriptTables, array $scriptContr, int $displayPage)

No description

Details

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

No description

Parameters

DatabaseInterface $dbi
Relation $relation
Template $template

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, mixed $formatParam, mixed $exportTypeParam)

Function to get html for displaying the schema export

Parameters

string $db

database name

int $page

the page to be exported

mixed $formatParam
mixed $exportTypeParam

Return Value

string

array returnClassNamesFromMenuButtons()

Returns class names for various buttons on Designer Side Menu

Return Value

array

class names of various buttons

array getColumnTypes(array $tableColumnsInfo, array $tablesAllKeys)

No description

Parameters

array $tableColumnsInfo

table column info

array $tablesAllKeys

unique or primary indices

Return Value

array

stdClass getDesignerConfig(string $db, array $designerTables, array $scriptTables, array $scriptContr, int $displayPage)

No description

Parameters

string $db
array $designerTables

The designer tables

array $scriptTables

array on foreign key support for each table

array $scriptContr

initialization data array

int $displayPage

Return Value

stdClass