class LongTextPropertyType in Entity Construction Kit (ECK) 7.3
Hierarchy
- class \LongTextPropertyType implements PropertyTypeInterface
Expanded class hierarchy of LongTextPropertyType
1 string reference to 'LongTextPropertyType'
- eck_eck_property_types in ./
eck.module - Implements hook_eck_property_types().
File
- ./
eck.property_type.inc, line 217 - Property types.
View source
class LongTextPropertyType implements PropertyTypeInterface {
/**
* Schema.
*/
public static function schema() {
$schema = array(
'description' => 'Long Text (longer than 8000 characters)',
'type' => 'text',
'length' => 255,
'not null' => TRUE,
// Relevant only to: varchar, char, and text.
'length' => 255,
);
return $schema;
}
/**
* Validate.
*/
public static function validate($value) {
// Pretty much anything can be store in a text field
// even an object?
// @TODO check what happens when trying to save an obejct to a varchar field
// in the db.
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
LongTextPropertyType:: |
public static | function |
Schema. Overrides PropertyTypeInterface:: |
|
LongTextPropertyType:: |
public static | function |
Validate. Overrides PropertyTypeInterface:: |