ColumnType
- Type
- Abstract Class
- Namespace
- Craft
- Inherits
- Craft\ColumnType » Craft\BaseEnum
- Since
- 1.0
The ColumnType class is an abstract class that defines all of the abstract column types that will eventually be changed to a physical database column type.
This class is a poor man's version of an enum, since PHP does not have support for native enumerations.
See also http://craftcms.com
View source (opens new window)
# Public Methods
Method | Description |
---|---|
getConstants() | |
isValidName() | Checks to see if the given name is valid in the enum. |
isValidValue() | Checks to see if the given value is valid in the enum. |
# Constants
Constant | Description |
---|---|
BigInt | |
Binary | |
Bool | |
Char | |
Date | |
DateTime | |
Decimal | |
Enum | |
Int | |
Locale | |
LongText | |
MediumInt | |
MediumText | |
PK | |
SmallInt | |
Text | |
Time | |
Timestamp | |
TinyInt | |
TinyText | |
Varchar |