You are here

class BatTypeMetadataController in Booking and Availability Management Tools for Drupal 7

The MetadataController for BatType entities.

Hierarchy

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

Namesort descending Modifiers Type Description Overrides
BatTypeMetadataController::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