Generator
class Generator (View source)
HTML Generator
Methods
Displays a button to copy content to clipboard
Get a link to variable documentation
Returns HTML code for a tooltip
returns html code for db link to default db page
Returns an HTML IMG tag for a particular icon from a theme, which may be an actual file or an icon from a sprite.
Returns information about SSL status for current connection
Returns default function for a particular column.
Creates a dropdown box with MySQL functions for a particular column.
Renders a single link for the top of the navigation panel
No description
Prepare the message and the query usually the message is the result of the query executed
Displays a link to the PHP documentation
Displays a link to the documentation as an icon
Displays a MySQL error message in the main panel when $exit is true.
Returns an HTML IMG tag for a particular image from a theme
Displays a link, or a link with code to trigger POST request.
Prepare navigation for a list
format sql strings
This function processes the datatypes supported by the DB, as specified in Types->getColumns() and returns an HTML snippet that creates a drop-down list.
Details
static string
showCopyToClipboard(string $text)
Displays a button to copy content to clipboard
static string
linkToVarDocumentation(string $name, bool $useMariaDB = false, string|null $text = null)
Get a link to variable documentation
static string
showHint(string $message)
Returns HTML code for a tooltip
static string
getDbLink(string $database)
returns html code for db link to default db page
static string
getIcon(string $icon, string $alternate = '', bool $forceText = false, bool $menuIcon = false, string $controlParam = 'ActionLinksMode')
Returns an HTML IMG tag for a particular icon from a theme, which may be an actual file or an icon from a sprite.
This function takes into account the ActionLinksMode configuration setting and wraps the image tag in a span tag.
static string
getServerSSL()
Returns information about SSL status for current connection
static string
getDefaultFunctionForField(string $trueType, bool $firstTimestamp, string|null $defaultValue, string $extra, bool $isNull, string $key, string $type, bool $insertMode)
Returns default function for a particular column.
static string
getFunctionsForField(string $defaultFunction, mixed $foreignField = null)
Creates a dropdown box with MySQL functions for a particular column.
static string
getNavigationLink(string $link, string $text, string $icon, string $linkId = '')
Renders a single link for the top of the navigation panel
static array
getStartAndNumberOfRowsFieldsetData(string $sqlQuery)
No description
static string
getMessage(Message|string $message, string|null $sqlQuery = null, MessageType $type = MessageType::Notice)
Prepare the message and the query usually the message is the result of the query executed
static string
showPHPDocumentation(string $target)
Displays a link to the PHP documentation
static string
showDocumentationLink(string $link, string $target = 'documentation', bool $bbcode = false, bool $disableTabIndex = false)
Displays a link to the documentation as an icon
static string|null
mysqlDie(string $serverMessage = '', string $sqlQuery = '', bool $isModifyLink = true, string $backUrl = '', bool $exit = true)
Displays a MySQL error message in the main panel when $exit is true.
Returns the error message otherwise.
static string
getImage(string $image, string $alternate = '', array $attributes = [])
Returns an HTML IMG tag for a particular image from a theme
The image name should match CSS class defined in icons.css.php
static string
linkOrButton(string $urlPath, array|null $urlParams, string $message, string|array $tagParams = [], string $target = '', bool $respectUrlLengthLimit = true)
Displays a link, or a link with code to trigger POST request.
POST is used in following cases:
- URL is too long
- URL components are over Suhosin limits
- There is SQL query in the parameters
static string
getListNavigator(int $count, int $pos, array $urlParams, string $script, string $frame, int $maxCount, string $name = 'pos', array $classes = [])
Prepare navigation for a list
static string
formatSql(string $sqlQuery, bool $truncate = false)
format sql strings
static string
getSupportedDatatypes(string $selected)
This function processes the datatypes supported by the DB, as specified in Types->getColumns() and returns an HTML snippet that creates a drop-down list.