PHP Class PMA\libraries\plugins\schema\ExportRelationSchema

Afficher le fichier Open project: phpmyadmin/phpmyadmin Class Usage Examples

Protected Properties

Свойство Type Description
$db
$diagram
$offline
$orientation
$pageNumber
$paper
$sameWide
$showColor
$showKeys
$tableDimension

Méthodes publiques

Méthode Description
__construct ( string $db, object $diagram ) Constructor.
dieSchema ( integer $pageNumber, string $type = '', string $error_message = '' ) : void Displays an error message
getOrientation ( ) : string Returns orientation
getPageNumber ( ) : integer Returns the schema page number
getPaper ( ) : string Returns the paper size
isAllTableSameWidth ( ) : boolean Returns whether to use same width for all tables or not
isOffline ( ) : boolean Returns whether the client side database is used
isShowColor ( ) : boolean Returns whether to show colors
isShowKeys ( ) : boolean Returns whether to show keys
isTableDimension ( ) : boolean Returns whether to show table dimensions
setAllTablesSameWidth ( boolean $value ) : void Set same width of All Tables
setOffline ( boolean $value ) : void Set whether the document is generated from client side DB
setOrientation ( string $value ) : void Set Orientation
setPageNumber ( integer $value ) : void Set Page Number
setPaper ( string $value ) : void Set type of paper
setShowColor ( boolean $value ) : void Sets showColor
setShowKeys ( boolean $value ) : void Set Show only keys
setTableDimension ( boolean $value ) : void Set Table Dimension

Méthodes protégées

Méthode Description
getFileName ( String $extension ) : string Returns the file name
getTablesFromRequest ( ) : array Get the table names from the request

Method Details

__construct() public méthode

Constructor.
public __construct ( string $db, object $diagram )
$db string database name
$diagram object schema diagram

dieSchema() public static méthode

Displays an error message
public static dieSchema ( integer $pageNumber, string $type = '', string $error_message = '' ) : void
$pageNumber integer ID of the chosen page
$type string Schema Type
$error_message string The error message
Résultat void

getFileName() protected méthode

Returns the file name
protected getFileName ( String $extension ) : string
$extension String file extension
Résultat string file name

getOrientation() public méthode

Returns orientation
public getOrientation ( ) : string
Résultat string orientation

getPageNumber() public méthode

Returns the schema page number
public getPageNumber ( ) : integer
Résultat integer schema page number

getPaper() public méthode

Returns the paper size
public getPaper ( ) : string
Résultat string paper size

getTablesFromRequest() protected méthode

Get the table names from the request
protected getTablesFromRequest ( ) : array
Résultat array an array of table names

isAllTableSameWidth() public méthode

Returns whether to use same width for all tables or not
public isAllTableSameWidth ( ) : boolean
Résultat boolean whether to use same width for all tables or not

isOffline() public méthode

Returns whether the client side database is used
public isOffline ( ) : boolean
Résultat boolean

isShowColor() public méthode

Returns whether to show colors
public isShowColor ( ) : boolean
Résultat boolean whether to show colors

isShowKeys() public méthode

Returns whether to show keys
public isShowKeys ( ) : boolean
Résultat boolean whether to show keys

isTableDimension() public méthode

Returns whether to show table dimensions
public isTableDimension ( ) : boolean
Résultat boolean whether to show table dimensions

setAllTablesSameWidth() public méthode

Set same width of All Tables
public setAllTablesSameWidth ( boolean $value ) : void
$value boolean set same width of all tables or not
Résultat void

setOffline() public méthode

Set whether the document is generated from client side DB
public setOffline ( boolean $value ) : void
$value boolean offline or not
Résultat void

setOrientation() public méthode

Set Orientation
public setOrientation ( string $value ) : void
$value string Orientation will be portrait or landscape
Résultat void

setPageNumber() public méthode

Set Page Number
public setPageNumber ( integer $value ) : void
$value integer Page Number of the document to be created
Résultat void

setPaper() public méthode

Set type of paper
public setPaper ( string $value ) : void
$value string paper type can be A4 etc
Résultat void

setShowColor() public méthode

Sets showColor
public setShowColor ( boolean $value ) : void
$value boolean whether to show colors
Résultat void

setShowKeys() public méthode

Set Show only keys
public setShowKeys ( boolean $value ) : void
$value boolean show only keys or not
Résultat void

setTableDimension() public méthode

Set Table Dimension
public setTableDimension ( boolean $value ) : void
$value boolean show table co-ordinates or not
Résultat void

Property Details

$db protected_oe property

protected $db

$diagram protected_oe property

protected $diagram

$offline protected_oe property

protected $offline

$orientation protected_oe property

protected $orientation

$pageNumber protected_oe property

protected $pageNumber

$paper protected_oe property

protected $paper

$sameWide protected_oe property

protected $sameWide

$showColor protected_oe property

protected $showColor

$showKeys protected_oe property

protected $showKeys

$tableDimension protected_oe property

protected $tableDimension