ExportRelationSchema
class ExportRelationSchema (View source)
This class is inherited by all schema classes It contains those methods which are common in them it works like factory pattern
Properties
protected bool | $showColor | ||
protected bool | $tableDimension | ||
protected bool | $sameWide | ||
protected bool | $showKeys | ||
protected string | $orientation | ||
protected string | $paper | ||
protected int | $pageNumber | ||
protected bool | $offline |
Methods
Set Page Number
Returns the schema page number
Sets showColor
Returns whether to show colors
Set Table Dimension
Returns whether to show table dimensions
Set same width of All Tables
Returns whether to use same width for all tables or not
Set Show only keys
Returns whether to show keys
Set Orientation
Returns orientation
Set type of paper
Returns the paper size
Set whether the document is generated from client side DB
Returns whether the client side database is used
Get the table names from the request
No description
Displays an error message
Details
__construct(Relation $relation, DatabaseName $db)
No description
void
setPageNumber(int $value)
Set Page Number
int
getPageNumber()
Returns the schema page number
void
setShowColor(bool $value)
Sets showColor
bool
isShowColor()
Returns whether to show colors
void
setTableDimension(bool $value)
Set Table Dimension
bool
isTableDimension()
Returns whether to show table dimensions
void
setAllTablesSameWidth(bool $value)
Set same width of All Tables
bool
isAllTableSameWidth()
Returns whether to use same width for all tables or not
void
setShowKeys(bool $value)
Set Show only keys
bool
isShowKeys()
Returns whether to show keys
void
setOrientation(string $value)
Set Orientation
string
getOrientation()
Returns orientation
void
setPaper(string $value)
Set type of paper
string
getPaper()
Returns the paper size
void
setOffline(bool $value)
Set whether the document is generated from client side DB
bool
isOffline()
Returns whether the client side database is used
protected array
getTablesFromRequest()
Get the table names from the request
protected string
getFileName(string $extension)
No description
static never
dieSchema(int $pageNumber, string $type = '', string $errorMessage = '')
Displays an error message