You are here

class SimplenewsSubscriberMetadataController in Simplenews 7.2

Metadata controller for the simplenews_subscriber entity.

Hierarchy

Expanded class hierarchy of SimplenewsSubscriberMetadataController

Related topics

1 string reference to 'SimplenewsSubscriberMetadataController'
simplenews_entity_info in ./simplenews.module
Implements hook_entity_info().

File

includes/simplenews.info.inc, line 43

View source
class SimplenewsSubscriberMetadataController extends EntityDefaultMetadataController {

  /**
   * Overrides EntityDefaultMetadataController::entityPropertyInfo().
   */
  function entityPropertyInfo() {
    $info = parent::entityPropertyInfo();
    $properties =& $info[$this->type]['properties'];
    $properties['activated']['type'] = 'boolean';
    $properties['mail']['label'] = t('E-mail');
    $properties['uid']['type'] = 'user';
    $properties['uid']['label'] = t('User');
    $properties['language']['type'] = 'language';
    $properties['created']['type'] = 'date';
    $properties['simplenews_subscriptions'] = array(
      'label' => t('Simplenews Subscriptions'),
      'description' => t('The simplenews newsletters the party is subscribed to.'),
      'type' => 'list<simplenews_newsletter>',
      'getter callback' => 'simplenews_property_simplenews_subscriptions_getter_callback',
    );
    return $info;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
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
SimplenewsSubscriberMetadataController::entityPropertyInfo function Overrides EntityDefaultMetadataController::entityPropertyInfo(). Overrides EntityDefaultMetadataController::entityPropertyInfo