You are here

class CommerceLicenseViewsController in Commerce License 7

@file Provides Views integration.

Hierarchy

Expanded class hierarchy of CommerceLicenseViewsController

1 string reference to 'CommerceLicenseViewsController'
commerce_license_entity_info in ./commerce_license.module
Implements hook_entity_info().

File

includes/views/commerce_license.views_controller.inc, line 8
Provides Views integration.

View source
class CommerceLicenseViewsController extends EntityDefaultViewsController {

  /**
   * Overrides EntityDefaultViewsController::views_data().
   */
  public function views_data() {
    $data = parent::views_data();
    $data['commerce_license']['access_details'] = array(
      'title' => t('Access details'),
      'help' => t('The access details of an activated license.'),
      'field' => array(
        'handler' => 'commerce_license_handler_field_access_details',
        'click sortable' => FALSE,
        'type' => 'commerce_license',
        'real field' => 'entity object',
      ),
    );

    // Make the log handler match the one in Commerce Order.
    $data['commerce_license_revision']['log']['field']['handler'] = 'views_handler_field_xss';
    unset($data['commerce_license_revision']['log']['argument']);
    unset($data['commerce_license_revision']['log']['sort']);
    return $data;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
CommerceLicenseViewsController::views_data public function Overrides EntityDefaultViewsController::views_data(). Overrides EntityDefaultViewsController::views_data
EntityDefaultViewsController::$type protected property
EntityDefaultViewsController::getRelationshipHandlerClass public function Determines the handler to use for a relationship to an entity type.
EntityDefaultViewsController::map_from_schema_info protected function Comes up with views information based on the given schema and property info.
EntityDefaultViewsController::optionsListCallback public static function A callback returning property options, suitable to be used as views options callback.
EntityDefaultViewsController::schema_fields protected function Try to come up with some views fields with the help of the schema and the entity property information.
EntityDefaultViewsController::schema_revision_fields protected function Try to come up with some views fields with the help of the revision schema and the entity property information.
EntityDefaultViewsController::__construct public function