class BatTypeMetadataController in Booking and Availability Management Tools for Drupal 7
The MetadataController for BatType entities.
Hierarchy
- class \EntityDefaultMetadataController
- class \BatTypeMetadataController
Expanded class hierarchy of BatTypeMetadataController
1 string reference to 'BatTypeMetadataController'
- bat_unit_entity_info in modules/
bat_unit/ bat_unit.module - Implements hook_entity_info().
File
- modules/
bat_unit/ bat_unit.module, line 2021
View source
class BatTypeMetadataController extends EntityDefaultMetadataController {
/**
*
*/
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties = array(
'type_id',
'type',
'language',
'name',
'created',
'changed',
'status',
'uid',
);
foreach ($properties as $property) {
if (isset($info['bat_type']['properties'][$property])) {
$info['bat_type']['properties'][$property]['getter callback'] = 'entity_property_verbatim_get';
$info['bat_type']['properties'][$property]['setter callback'] = 'entity_property_verbatim_set';
}
}
return $info;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BatTypeMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |
|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function |