class UUIDPropertyType in Entity Construction Kit (ECK) 7.3
Hierarchy
- class \FixedSizeTextPropertyType implements PropertyTypeInterface
- class \UUIDPropertyType
Expanded class hierarchy of UUIDPropertyType
1 string reference to 'UUIDPropertyType'
- eck_eck_property_types in ./
eck.module - Implements hook_eck_property_types().
File
- ./
eck.property_type.inc, line 387 - Property types.
View source
class UUIDPropertyType extends FixedSizeTextPropertyType {
/**
* Schema Conditions.
*/
public static function schemaConditions() {
return array(
'locked' => 'length',
);
}
/**
* Schema.
*/
public static function schema() {
$schema = parent::schema();
$schema['description'] = 'Universally Unique Identifier';
$schema['length'] = 16;
return $schema;
}
/**
* Validate.
*/
public static function validate($value) {
// @TODO UUID module has a function ... steal :)
return TRUE;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
UUIDPropertyType:: |
public static | function |
Schema. Overrides FixedSizeTextPropertyType:: |
|
UUIDPropertyType:: |
public static | function | Schema Conditions. | |
UUIDPropertyType:: |
public static | function |
Validate. Overrides FixedSizeTextPropertyType:: |