You are here

class BiblioContributorMetadataController in Bibliography Module 7.3

Extend the default OG membership metadata properties.

Hierarchy

Expanded class hierarchy of BiblioContributorMetadataController

File

includes/biblio_contributor.metadata.inc, line 11
Provides Entity metadata integration.

View source
class BiblioContributorMetadataController extends EntityDefaultMetadataController {
  public function entityPropertyInfo() {
    $info = parent::entityPropertyInfo();
    $properties =& $info[$this->type]['properties'];

    // Initialize values to prevent WSOD, on certain cases of clear cache.
    $properties = !empty($properties) ? $properties : array();
    $names = array(
      'name',
      'lastname',
      'firstname',
      'prefix',
      'suffix',
      'initials',
    );
    foreach ($names as $name) {
      $properties[$name]['getter callback'] = 'entity_property_verbatim_get';
      $properties[$name]['setter callback'] = 'entity_property_verbatim_set';
    }
    return $info;
  }

}

Members

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