class CivicrmRelationshipEntityType in CRM Core 7
Hierarchy
- class \CivicrmEntityType
Expanded class hierarchy of CivicrmRelationshipEntityType
1 string reference to 'CivicrmRelationshipEntityType'
- CivicrmRelationshipEntityType.inc in modules/
crm_core_data_import/ plugins/ source_plugins/ civicrm/ CivicrmRelationshipEntityType.inc
File
- modules/
crm_core_data_import/ plugins/ source_plugins/ civicrm/ CivicrmRelationshipEntityType.inc, line 16
View source
class CivicrmRelationshipEntityType extends CivicrmEntityType {
/**
* Returns available entity types.
*/
public function getCivicrmTypes() {
$types = array();
$available_types = crm_core_data_import_civicrm_api('relationship_type', 'get');
foreach ($available_types as $value) {
if (!empty($value['description'])) {
$types[$value['id']] = $value['description'];
}
else {
$types[$value['id']] = $value['name_a_b'];
}
}
return $types;
}
/**
* Returns available Drupal entity types.
*/
public function getDrupalTypes() {
return array();
}
/**
* Returns available fields.
*/
public function getEntityFields($type = FALSE) {
return array();
}
}
Members
Name![]() |
Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CivicrmEntityType:: |
public | function | Attach extra fields. | |
CivicrmEntityType:: |
public | function | Fetch field from CiviCRM. | |
CivicrmEntityType:: |
public | function | Returns entity bundles. | |
CivicrmEntityType:: |
public | function | Returns entity name of current plugin. | |
CivicrmRelationshipEntityType:: |
public | function |
Returns available entity types. Overrides CivicrmEntityType:: |
|
CivicrmRelationshipEntityType:: |
public | function |
Returns available Drupal entity types. Overrides CivicrmEntityType:: |
|
CivicrmRelationshipEntityType:: |
public | function |
Returns available fields. Overrides CivicrmEntityType:: |