class TableProperty (View source)

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)

No description

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

__construct(array $row)

No description

Parameters

array $row

table row

string getPureType()

Gets the pure type

Return Value

string type

string isNotNull()

Tells whether the key is null or not

Return Value

string

true if the key is not null, false otherwise

string isUnique()

Tells whether the key is unique or not

Return Value

string

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

string getDotNetPrimitiveType()

Gets the .NET primitive type

Return Value

string type

string getDotNetObjectType()

Gets the .NET object type

Return Value

string type

string getIndexName()

Gets the index name

Return Value

string

containing the name of the index

bool isPK()

Tells whether the key is primary or not

Return Value

bool

string formatCs(string $text)

Formats a string for C#

Parameters

string $text

string to be formatted

Return Value

string

formatted text

string formatXml(string $text)

Formats a string for XML

Parameters

string $text

string to be formatted

Return Value

string

formatted text

string format(string $text)

Formats a string

Parameters

string $text

string to be formatted

Return Value

string

formatted text