API/DAO Metadata - Retain versioning metadata for possible usage in runtime+tooling
[civicrm-core.git] / CRM / Contact / DAO / Relationship.php
index 3602e3afd1e2e89c97a634e558d1507a46c8a478..5110814fe3c2d0955a7aab7029a79f07662c954c 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Contact/Relationship.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:376227269d8c1c224c357387d0862a9f)
+ * (GenCodeChecksum:b1e83f9c102db77881c4b9c730f38337)
  */
 
 /**
@@ -21,6 +21,13 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_relationship';
 
+  /**
+   * Icon associated with this entity.
+   *
+   * @var string
+   */
+  public static $_icon = 'fa-handshake-o';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
@@ -113,6 +120,13 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
     parent::__construct();
   }
 
+  /**
+   * Returns localized title of this entity.
+   */
+  public static function getEntityTitle() {
+    return ts('Relationships');
+  }
+
   /**
    * Returns foreign keys and entity references.
    *
@@ -150,6 +164,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'entity' => 'Relationship',
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
+          'add' => '1.1',
         ],
         'contact_id_a' => [
           'name' => 'contact_id_a',
@@ -163,6 +178,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'add' => '1.1',
         ],
         'contact_id_b' => [
           'name' => 'contact_id_b',
@@ -179,6 +195,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'EntityRef',
           ],
+          'add' => '1.1',
         ],
         'relationship_type_id' => [
           'name' => 'relationship_type_id',
@@ -195,6 +212,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'Select',
           ],
+          'add' => '1.1',
         ],
         'relationship_start_date' => [
           'name' => 'start_date',
@@ -210,6 +228,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
             'type' => 'Select Date',
             'formatType' => 'activityDate',
           ],
+          'add' => '1.1',
         ],
         'relationship_end_date' => [
           'name' => 'end_date',
@@ -225,6 +244,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
             'type' => 'Select Date',
             'formatType' => 'activityDate',
           ],
+          'add' => '1.1',
         ],
         'is_active' => [
           'name' => 'is_active',
@@ -240,6 +260,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'CheckBox',
           ],
+          'add' => '1.1',
         ],
         'description' => [
           'name' => 'description',
@@ -256,6 +277,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '1.5',
         ],
         'is_permission_a_b' => [
           'name' => 'is_permission_a_b',
@@ -275,6 +297,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
           ],
+          'add' => '2.1',
         ],
         'is_permission_b_a' => [
           'name' => 'is_permission_b_a',
@@ -294,6 +317,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'pseudoconstant' => [
             'callback' => 'CRM_Core_SelectValues::getPermissionedRelationshipOptions',
           ],
+          'add' => '2.1',
         ],
         'case_id' => [
           'name' => 'case_id',
@@ -307,6 +331,7 @@ class CRM_Contact_DAO_Relationship extends CRM_Core_DAO {
           'bao' => 'CRM_Contact_BAO_Relationship',
           'localizable' => 0,
           'FKClassName' => 'CRM_Case_DAO_Case',
+          'add' => '2.2',
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);