PHP Class Jarves\Admin\FieldTypes\ColumnDefinition

Inheritance: implements Jarves\Admin\FieldTypes\ColumnDefinitionInterface
显示文件 Open project: jarves/jarves Class Usage Examples

Protected Properties

Property Type Description
$name string Column name to select. camelCased.
$phpDataType string
$requiredRegex string
$sqlDataType string

Public Methods

Method Description
getName ( ) : string
getPhpDataType ( ) : string
getRequiredRegex ( ) : mixed | string
getSqlDataType ( ) : string
isBoolean ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
isFloat ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
isInteger ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
setName ( string $name )
setPhpDataType ( string $phpDataType )
setRequiredRegex ( string $requiredRegex )
setSqlDataType ( string $sqlDataType )

Method Details

getName() public method

public getName ( ) : string
return string

getPhpDataType() public method

public getPhpDataType ( ) : string
return string

getRequiredRegex() public method

public getRequiredRegex ( ) : mixed | string
return mixed | string

getSqlDataType() public method

public getSqlDataType ( ) : string
return string

isBoolean() public static method

public static isBoolean ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
$column Jarves\Admin\FieldTypes\ColumnDefinitionInterface
return boolean

isFloat() public static method

public static isFloat ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
$column Jarves\Admin\FieldTypes\ColumnDefinitionInterface
return boolean

isInteger() public static method

public static isInteger ( Jarves\Admin\FieldTypes\ColumnDefinitionInterface $column ) : boolean
$column Jarves\Admin\FieldTypes\ColumnDefinitionInterface
return boolean

setName() public method

public setName ( string $name )
$name string

setPhpDataType() public method

public setPhpDataType ( string $phpDataType )
$phpDataType string

setRequiredRegex() public method

public setRequiredRegex ( string $requiredRegex )
$requiredRegex string

setSqlDataType() public method

public setSqlDataType ( string $sqlDataType )
$sqlDataType string

Property Details

$name protected_oe property

Column name to select. camelCased.
protected string $name
return string

$phpDataType protected_oe property

protected string $phpDataType
return string

$requiredRegex protected_oe property

protected string $requiredRegex
return string

$sqlDataType protected_oe property

protected string $sqlDataType
return string