class TableProperty

PhpMyAdmin\Plugins\Export\Helpers\TableProperty class

Properties

string $name Name
string $type Type
string $nullable Whether the key is nullable or not
string $key The key
mixed $defaultValue Default value
string $ext Extension

Methods

__construct(array $row)

Constructor

string
getPureType()

Gets the pure type

string
isNotNull()

Tells whether the key is null or not

string
isUnique()

Tells whether the key is unique or not

string
getDotNetPrimitiveType()

Gets the .NET primitive type

string
getDotNetObjectType()

Gets the .NET object type

string
getIndexName()

Gets the index name

bool
isPK()

Tells whether the key is primary or not

string
formatCs(string $text)

Formats a string for C#

string
formatXml(string $text)

Formats a string for XML

string
format(string $text)

Formats a string

Details

at line 69
__construct(array $row)

Constructor

Parameters

array $row table row

at line 84
string getPureType()

Gets the pure type

Return Value

string type

at line 98
string isNotNull()

Tells whether the key is null or not

Return Value

string true if the key is not null, false otherwise

at line 108
string isUnique()

Tells whether the key is unique or not

Return Value

string "true" if the key is unique, "false" otherwise

at line 118
string getDotNetPrimitiveType()

Gets the .NET primitive type

Return Value

string type

at line 152
string getDotNetObjectType()

Gets the .NET object type

Return Value

string type

at line 186
string getIndexName()

Gets the index name

Return Value

string containing the name of the index

at line 201
bool isPK()

Tells whether the key is primary or not

Return Value

bool true if the key is primary, false otherwise

at line 213
string formatCs(string $text)

Formats a string for C#

Parameters

string $text string to be formatted

Return Value

string formatted text

at line 230
string formatXml(string $text)

Formats a string for XML

Parameters

string $text string to be formatted

Return Value

string formatted text

at line 253
string format(string $text)

Formats a string

Parameters

string $text string to be formatted

Return Value

string formatted text