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