X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContact%2FDAO%2FRelationship.php;h=6312c40554160d383a87e937feb8dd47aa623809;hb=1ac9bb56e6130bb7a0c01b9d7c6d1b60fdfcff14;hp=14b10a52802e77892254edd2063d4583955aaac6;hpb=e9e9d5c5b9b8e3cd0b147f05f72b169101e6276a;p=civicrm-core.git diff --git a/CRM/Contact/DAO/Relationship.php b/CRM/Contact/DAO/Relationship.php index 14b10a5280..6312c40554 100644 --- a/CRM/Contact/DAO/Relationship.php +++ b/CRM/Contact/DAO/Relationship.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Contact/Relationship.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:25faea8225f483ae95cf29af08a8542d) + * (GenCodeChecksum:5c1cfe38206fb7c465befe517bf6f23d) */ /** @@ -59,7 +59,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { public $contact_id_b; /** - * id of the relationship + * Type of relationship * * @var int */ @@ -124,9 +124,12 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { /** * Returns localized title of this entity. + * + * @param bool $plural + * Whether to return the plural version of the title. */ - public static function getEntityTitle() { - return ts('Relationships'); + public static function getEntityTitle($plural = FALSE) { + return $plural ? ts('Relationships') : ts('Relationship'); } /** @@ -203,7 +206,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { 'name' => 'relationship_type_id', 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Relationship Type'), - 'description' => ts('id of the relationship'), + 'description' => ts('Type of relationship'), 'required' => TRUE, 'where' => 'civicrm_relationship.relationship_type_id', 'table_name' => 'civicrm_relationship', @@ -214,6 +217,12 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO { 'html' => [ 'type' => 'Select', ], + 'pseudoconstant' => [ + 'table' => 'civicrm_relationship_type', + 'keyColumn' => 'id', + 'labelColumn' => 'label_a_b', + 'nameColumn' => 'name_a_b', + ], 'add' => '1.1', ], 'relationship_start_date' => [