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
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BiblioContributorMetadataController:: |
public | function |
Overrides EntityDefaultMetadataController:: |
|
EntityDefaultMetadataController:: |
protected | property | ||
EntityDefaultMetadataController:: |
public static | function | A options list callback returning all bundles for an entity type. | |
EntityDefaultMetadataController:: |
protected | function | Return a set of properties for an entity based on the schema definition | |
EntityDefaultMetadataController:: |
public | function |