PHP Класс PMA\libraries\plugins\export\TableProperty

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$defaultValue mixed Default value
$ext string Extension
$key integer The key
$name string Name
$nullable boolean Whether the key is nullable or not
$type string Type

Открытые методы

Метод Описание
__construct ( array $row ) Constructor
format ( string $text ) : string Formats a string
formatCs ( string $text ) : string Formats a string for C#
formatXml ( string $text ) : string Formats a string for XML
getDotNetObjectType ( ) : string Gets the .NET object type
getDotNetPrimitiveType ( ) : string Gets the .NET primitive type
getIndexName ( ) : string Gets the index name
getPureType ( ) : string Gets the pure type
isNotNull ( ) : boolean Tells whether the key is null or not
isPK ( ) : boolean Tells whether the key is primary or not
isUnique ( ) : boolean Tells whether the key is unique or not

Описание методов

__construct() публичный Метод

Constructor
public __construct ( array $row )
$row array table row

format() публичный Метод

Formats a string
public format ( string $text ) : string
$text string string to be formatted
Результат string formatted text

formatCs() публичный Метод

Formats a string for C#
public formatCs ( string $text ) : string
$text string string to be formatted
Результат string formatted text

formatXml() публичный Метод

Formats a string for XML
public formatXml ( string $text ) : string
$text string string to be formatted
Результат string formatted text

getDotNetObjectType() публичный Метод

Gets the .NET object type
public getDotNetObjectType ( ) : string
Результат string type

getDotNetPrimitiveType() публичный Метод

Gets the .NET primitive type
public getDotNetPrimitiveType ( ) : string
Результат string type

getIndexName() публичный Метод

Gets the index name
public getIndexName ( ) : string
Результат string containing the name of the index

getPureType() публичный Метод

Gets the pure type
public getPureType ( ) : string
Результат string type

isNotNull() публичный Метод

Tells whether the key is null or not
public isNotNull ( ) : boolean
Результат boolean true if the key is not null, false otherwise

isPK() публичный Метод

Tells whether the key is primary or not
public isPK ( ) : boolean
Результат boolean true if the key is primary, false otherwise

isUnique() публичный Метод

Tells whether the key is unique or not
public isUnique ( ) : boolean
Результат boolean true if the key is unique, false otherwise

Описание свойств

$defaultValue публичное свойство

Default value
public mixed $defaultValue
Результат mixed

$ext публичное свойство

Extension
public string $ext
Результат string

$key публичное свойство

The key
public int $key
Результат integer

$name публичное свойство

Name
public string $name
Результат string

$nullable публичное свойство

Whether the key is nullable or not
public bool $nullable
Результат boolean

$type публичное свойство

Type
public string $type
Результат string