PHP 클래스 PMA\libraries\StorageEngine

파일 보기 프로젝트 열기: phpmyadmin/phpmyadmin 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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