class BatUnitMetadataController in Booking and Availability Management Tools for Drupal 7
The MetadataController for BatUnit entities.
Hierarchy
- class \EntityDefaultMetadataController
- class \BatUnitMetadataController
Expanded class hierarchy of BatUnitMetadataController
1 string reference to 'BatUnitMetadataController'
- bat_unit_entity_info in modules/
bat_unit/ bat_unit.module - Implements hook_entity_info().
File
- modules/
bat_unit/ bat_unit.module, line 1100
View source
class BatUnitMetadataController extends EntityDefaultMetadataController {
/**
*
*/
public function entityPropertyInfo() {
$info = parent::entityPropertyInfo();
$properties = array(
'unit_id',
'type_id',
'type',
'language',
'name',
'created',
'changed',
'status',
'uid',
);
foreach ($properties as $property) {
if (isset($info['bat_unit']['properties'][$property])) {
$info['bat_unit']['properties'][$property]['getter callback'] = 'entity_property_verbatim_get';
$info['bat_unit']['properties'][$property]['setter callback'] = 'entity_property_verbatim_set';
}
}
return $info;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BatUnitMetadataController:: |
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 |