Types
class Types (View source)
Class holding type definitions for MySQL and MariaDB.
Methods
Returns list of unary operators.
Check whether operator is unary.
Returns list of operators checking for NULL.
ENUM search operators
TEXT search operators
Number search operators
UUID search operators
Returns operators for given type
Returns operators for given type as html options
Returns the data type description.
Returns class of a type, used for functions available for type or default values.
Returns array of functions available for a class.
Returns array of functions available for a type.
Returns array of all functions available.
Returns array of all attributes available.
Returns array of all column types available.
Returns an array of integer types
Returns an array of float types
Returns the min and max values of a given integer type
Details
__construct(DatabaseInterface $dbi)
No description
string[]
getUnaryOperators()
Returns list of unary operators.
bool
isUnaryOperator(string $op)
Check whether operator is unary.
string[]
getNullOperators()
Returns list of operators checking for NULL.
string[]
getEnumOperators()
ENUM search operators
string[]
getTextOperators()
TEXT search operators
string[]
getNumberOperators()
Number search operators
string[]
getUUIDOperators()
UUID search operators
string[]
getTypeOperators(string $type, bool $null)
Returns operators for given type
string
getTypeOperatorsHtml(string $type, bool $null, string $selectedOperator = null)
Returns operators for given type as html options
string
getTypeDescription(string $type)
Returns the data type description.
string
getTypeClass(string $type)
Returns class of a type, used for functions available for type or default values.
string[]
getFunctionsClass(string $class)
Returns array of functions available for a class.
string[]
getFunctions(string $type)
Returns array of functions available for a type.
string[]
getAllFunctions()
Returns array of all functions available.
string[]
getAttributes()
Returns array of all attributes available.
array
getColumns()
Returns array of all column types available.
VARCHAR, TINYINT, TEXT and DATE are listed first, based on estimated popularity.
string[]
getIntegerTypes()
Returns an array of integer types
array
getFloatTypes()
Returns an array of float types
string[]
getIntegerRange(string $type, bool $signed = true)
Returns the min and max values of a given integer type