You are here

class BatUnitMetadataController in Booking and Availability Management Tools for Drupal 7

The MetadataController for BatUnit entities.

Hierarchy

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

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