You are here

class UUIDPropertyType in Entity Construction Kit (ECK) 7.3

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
UUIDPropertyType::schema public static function Schema. Overrides FixedSizeTextPropertyType::schema
UUIDPropertyType::schemaConditions public static function Schema Conditions.
UUIDPropertyType::validate public static function Validate. Overrides FixedSizeTextPropertyType::validate