PHP Класс PMA\libraries\StorageEngine

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$comment engine lang description
$engine engine name
$support engine supported by current server
$title engine title/description

Открытые методы

Метод Описание
__construct ( string $engine ) Constructor
getComment ( ) : string Fetches the server's comment about this engine
getEngine ( string $engine ) : StorageEngine Loads the corresponding engine plugin, if available.
getHtmlSelect ( string $name = 'engine', string $id = null, string $selected = null, boolean $offerUnavailableEngines = false, boolean $addEmpty = false ) : string Returns HTML code for storage engine select box
getHtmlVariables ( ) : string Returns as HTML table of the engine's server variables
getInfoPages ( ) : string[] Returns a list of available information pages with labels
getMysqlHelpPage ( ) : string Returns string with filename for the MySQL helppage about this storage engine
getPage ( string $id ) : string Generates the requested information page
getStorageEngines ( ) : string[] Returns array of storage engines
getSupportInformationMessage ( ) : string Information message on whether this storage engine is supported
getTitle ( ) : string Reveals the engine's title
getVariables ( ) : array Generates a list of MySQL variables that provide information about this engine. This function should be overridden when extending this class for a particular engine.
getVariablesLikePattern ( ) : string Returns the pattern to be used in the query for SQL variables related to the storage engine
getVariablesStatus ( ) : array Returns array with detailed info about engine specific server variables
isValid ( string $engine ) : boolean Returns true if given engine name is supported/valid, otherwise false
resolveTypeSize ( integer $value ) : string Returns the engine specific handling for PMA_ENGINE_DETAILS_TYPE_SIZE type variables.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( string $engine )
$engine string The engine ID

getComment() публичный Метод

Fetches the server's comment about this engine
public getComment ( ) : string
Результат string The comment

getEngine() публичный статический Метод

Loads the corresponding engine plugin, if available.
public static getEngine ( string $engine ) : StorageEngine
$engine string The engine ID
Результат StorageEngine The engine plugin

getHtmlSelect() публичный статический Метод

Returns HTML code for storage engine select box
public static getHtmlSelect ( string $name = 'engine', string $id = null, string $selected = null, boolean $offerUnavailableEngines = false, boolean $addEmpty = false ) : string
$name string The name of the select form element
$id string The ID of the form field
$selected string The selected engine
$offerUnavailableEngines boolean Should unavailable storage engines be offered?
$addEmpty boolean Whether to provide empty option
Результат string html selectbox

getHtmlVariables() публичный Метод

Returns as HTML table of the engine's server variables
public getHtmlVariables ( ) : string
Результат string The table that was generated based on the retrieved information

getInfoPages() публичный Метод

Returns a list of available information pages with labels
public getInfoPages ( ) : string[]
Результат string[] The list

getMysqlHelpPage() публичный Метод

Returns string with filename for the MySQL helppage about this storage engine
public getMysqlHelpPage ( ) : string
Результат string MySQL help page filename

getPage() публичный Метод

Generates the requested information page
public getPage ( string $id ) : string
$id string page id
Результат string html output

getStorageEngines() публичный статический Метод

Returns array of storage engines
public static getStorageEngines ( ) : string[]
Результат string[] array of storage engines

getSupportInformationMessage() публичный Метод

Information message on whether this storage engine is supported
public getSupportInformationMessage ( ) : string
Результат string The localized message.

getTitle() публичный Метод

Reveals the engine's title
public getTitle ( ) : string
Результат string The title

getVariables() публичный Метод

Generates a list of MySQL variables that provide information about this engine. This function should be overridden when extending this class for a particular engine.
public getVariables ( ) : array
Результат array The list of variables.

getVariablesLikePattern() публичный Метод

Returns the pattern to be used in the query for SQL variables related to the storage engine
public getVariablesLikePattern ( ) : string
Результат string SQL query LIKE pattern

getVariablesStatus() публичный Метод

Returns array with detailed info about engine specific server variables
public getVariablesStatus ( ) : array
Результат array array with detailed info about specific engine server variables

isValid() публичный статический Метод

Returns true if given engine name is supported/valid, otherwise false
public static isValid ( string $engine ) : boolean
$engine string name of engine
Результат boolean whether $engine is valid or not

resolveTypeSize() публичный Метод

This function should be overridden when PMA_ENGINE_DETAILS_TYPE_SIZE type needs to be handled differently for a particular engine.
public resolveTypeSize ( integer $value ) : string
$value integer Value to format
Результат string the formatted value and its unit

Описание свойств

$comment публичное свойство

engine lang description
public $comment

$engine публичное свойство

engine name
public $engine

$support публичное свойство

engine supported by current server
public $support

$title публичное свойство

engine title/description
public $title