You are here

registration_type.controller.inc in Entity Registration 8.2

The controller class used for registration type entities

File

lib/registration_type.controller.inc
View source
<?php

/**
 * @file
 * The controller class used for registration type entities
 */
class RegistrationTypeController extends EntityAPIControllerExportable {

  /**
   * Overridden.
   */
  public function export($entity, $prefix = '') {

    // Ensure our data properties are properly structured.
    $data_properties = array(
      'held_expire',
      'held_expire_state',
    );
    foreach ($data_properties as $data_property) {
      if (isset($entity->{$data_property})) {
        $entity->data[$data_property] = $entity->{$data_property};
        unset($entity->{$data_property});
      }
    }
    return parent::export($entity, $prefix);
  }

}

Classes

Namesort descending Description
RegistrationTypeController @file The controller class used for registration type entities