You are here

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

Namesort descending Modifiers Type Description Overrides
BatBookingMetadataController::entityPropertyInfo public function Overrides EntityDefaultMetadataController::entityPropertyInfo
EntityDefaultMetadataController::$type protected property
EntityDefaultMetadataController::bundleOptionsList public static function A options list callback returning all bundles for an entity type.
EntityDefaultMetadataController::convertSchema protected function Return a set of properties for an entity based on the schema definition
EntityDefaultMetadataController::__construct public function