You are here

class BlobPropertyType in Entity Construction Kit (ECK) 7.3

Hierarchy

Expanded class hierarchy of BlobPropertyType

1 string reference to 'BlobPropertyType'
eck_eck_property_types in ./eck.module
Implements hook_eck_property_types().

File

./eck.property_type.inc, line 303
Property types.

View source
class BlobPropertyType implements PropertyTypeInterface {

  /**
   * Schema.
   */
  public static function schema() {
    $schema = array(
      'description' => 'Decimal/Float/Double',
      'type' => 'blob',
      'size' => 'normal',
      'not null' => TRUE,
    );
    return $schema;
  }

  /**
   * Validate.
   */
  public static function validate($value) {

    // Anything can be stored in a blob.
    return TRUE;
  }

}

Members