API/DAO Metadata - Retain versioning metadata for possible usage in runtime+tooling
[civicrm-core.git] / CRM / Event / DAO / Participant.php
index 2bf5d85243ef29b0bc2842109d3944f9fde9ab2b..09f5bc0a9393665d28339b7a5d622897e33cfb81 100644 (file)
@@ -6,7 +6,7 @@
  *
  * Generated from xml/schema/CRM/Event/Participant.xml
  * DO NOT EDIT.  Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:bc3da50711791a21ca2aff845977efbb)
+ * (GenCodeChecksum:5ae3aa69ac3d004f649038adbf993b8b)
  */
 
 /**
@@ -21,6 +21,13 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
    */
   public static $_tableName = 'civicrm_participant';
 
+  /**
+   * Icon associated with this entity.
+   *
+   * @var string
+   */
+  public static $_icon = 'fa-ticket';
+
   /**
    * Should CiviCRM log any modifications to this table in the civicrm_log table.
    *
@@ -166,6 +173,13 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
     parent::__construct();
   }
 
+  /**
+   * Returns localized title of this entity.
+   */
+  public static function getEntityTitle() {
+    return ts('Participants');
+  }
+
   /**
    * Returns foreign keys and entity references.
    *
@@ -210,6 +224,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '1.7',
         ],
         'participant_contact_id' => [
           'name' => 'contact_id',
@@ -226,6 +241,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'add' => '1.7',
         ],
         'event_id' => [
           'name' => 'event_id',
@@ -242,6 +258,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Event',
+          'add' => '1.7',
         ],
         'participant_status_id' => [
           'name' => 'status_id',
@@ -267,6 +284,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
             'keyColumn' => 'id',
             'labelColumn' => 'label',
           ],
+          'add' => '1.7',
         ],
         'participant_role_id' => [
           'name' => 'role_id',
@@ -292,6 +310,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
             'optionGroupName' => 'participant_role',
             'optionEditPath' => 'civicrm/admin/options/participant_role',
           ],
+          'add' => '1.7',
         ],
         'participant_register_date' => [
           'name' => 'register_date',
@@ -310,6 +329,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
             'type' => 'Select Date',
             'formatType' => 'activityDateTime',
           ],
+          'add' => '1.7',
         ],
         'participant_source' => [
           'name' => 'source',
@@ -329,6 +349,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'html' => [
             'type' => 'Text',
           ],
+          'add' => '1.7',
         ],
         'participant_fee_level' => [
           'name' => 'fee_level',
@@ -345,6 +366,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'serialize' => self::SERIALIZE_SEPARATOR_BOOKEND,
+          'add' => '1.7',
         ],
         'participant_is_test' => [
           'name' => 'is_test',
@@ -358,6 +380,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '1.7',
         ],
         'participant_is_pay_later' => [
           'name' => 'is_pay_later',
@@ -372,6 +395,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '2.1',
         ],
         'participant_fee_amount' => [
           'name' => 'fee_amount',
@@ -391,6 +415,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '2.1',
         ],
         'participant_registered_by_id' => [
           'name' => 'registered_by_id',
@@ -406,6 +431,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_DAO_Participant',
+          'add' => '2.1',
         ],
         'participant_discount_id' => [
           'name' => 'discount_id',
@@ -419,6 +445,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Core_DAO_Discount',
+          'add' => '2.1',
         ],
         'participant_fee_currency' => [
           'name' => 'fee_currency',
@@ -447,6 +474,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
             'nameColumn' => 'name',
             'abbrColumn' => 'symbol',
           ],
+          'add' => '3.0',
         ],
         'participant_campaign_id' => [
           'name' => 'campaign_id',
@@ -466,6 +494,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
             'keyColumn' => 'id',
             'labelColumn' => 'title',
           ],
+          'add' => '3.4',
         ],
         'discount_amount' => [
           'name' => 'discount_amount',
@@ -477,6 +506,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '4.1',
         ],
         'cart_id' => [
           'name' => 'cart_id',
@@ -489,6 +519,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Event_Cart_DAO_Cart',
+          'add' => '4.1',
         ],
         'must_wait' => [
           'name' => 'must_wait',
@@ -500,6 +531,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'entity' => 'Participant',
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
+          'add' => '4.1',
         ],
         'transferred_to_contact_id' => [
           'name' => 'transferred_to_contact_id',
@@ -516,6 +548,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO {
           'bao' => 'CRM_Event_BAO_Participant',
           'localizable' => 0,
           'FKClassName' => 'CRM_Contact_DAO_Contact',
+          'add' => '4.7',
         ],
       ];
       CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'fields_callback', Civi::$statics[__CLASS__]['fields']);