X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FDAO%2FParticipant.php;h=d3d45572dcbe678390620dc4c569188bf280e194;hb=8f35ee6459208ef7f628c06d1f277dcc182e55b5;hp=f688facea2cb2018c5ae03277b7e1246507abec8;hpb=8b9a8f4abb25cfa7a498eaaa3e459e4d313e350a;p=civicrm-core.git diff --git a/CRM/Event/DAO/Participant.php b/CRM/Event/DAO/Participant.php index f688facea2..d3d45572dc 100644 --- a/CRM/Event/DAO/Participant.php +++ b/CRM/Event/DAO/Participant.php @@ -6,7 +6,7 @@ * * Generated from xml/schema/CRM/Event/Participant.xml * DO NOT EDIT. Generated by CRM_Core_CodeGen - * (GenCodeChecksum:07eafc5db4afa9fe7ca200110727d42f) + * (GenCodeChecksum:b6283ba17eeb4f9d190252787851648d) */ /** @@ -19,14 +19,14 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { * * @var string */ - static $_tableName = 'civicrm_participant'; + public static $_tableName = 'civicrm_participant'; /** * Should CiviCRM log any modifications to this table in the civicrm_log table. * * @var bool */ - static $_log = TRUE; + public static $_log = TRUE; /** * Participant Id @@ -174,7 +174,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { */ public static function getReferenceColumns() { if (!isset(Civi::$statics[__CLASS__]['links'])) { - Civi::$statics[__CLASS__]['links'] = static ::createReferenceColumns(__CLASS__); + Civi::$statics[__CLASS__]['links'] = static::createReferenceColumns(__CLASS__); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_id', 'civicrm_event', 'id'); Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'status_id', 'civicrm_participant_status_type', 'id'); @@ -205,7 +205,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.id', 'headerPattern' => '/(^(participant(.)?)?id$)/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -221,7 +220,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.contact_id', 'headerPattern' => '/contact(.?id)?/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -238,7 +236,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.event_id', 'headerPattern' => '/event id$/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -255,7 +252,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.status_id', 'headerPattern' => '/(participant.)?(status)$/i', - 'dataPattern' => '', 'export' => TRUE, 'default' => '1', 'table_name' => 'civicrm_participant', @@ -282,7 +278,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.role_id', 'headerPattern' => '/(participant.)?(role)$/i', - 'dataPattern' => '', 'export' => TRUE, 'default' => 'NULL', 'table_name' => 'civicrm_participant', @@ -306,7 +301,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.register_date', 'headerPattern' => '/^(r(egister\s)?date)$/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -327,7 +321,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.source', 'headerPattern' => '/(participant.)?(source)$/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -347,7 +340,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.fee_level', 'headerPattern' => '/^(f(ee\s)?level)$/i', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -361,8 +353,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'title' => ts('Test'), 'import' => TRUE, 'where' => 'civicrm_participant.is_test', - 'headerPattern' => '', - 'dataPattern' => '', 'export' => TRUE, 'default' => '0', 'table_name' => 'civicrm_participant', @@ -377,7 +367,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.is_pay_later', 'headerPattern' => '/(is.)?(pay(.)?later)$/i', - 'dataPattern' => '', 'export' => TRUE, 'default' => '0', 'table_name' => 'civicrm_participant', @@ -411,8 +400,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'description' => ts('FK to Participant ID'), 'import' => TRUE, 'where' => 'civicrm_participant.registered_by_id', - 'headerPattern' => '', - 'dataPattern' => '', 'export' => TRUE, 'default' => 'NULL', 'table_name' => 'civicrm_participant', @@ -426,6 +413,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Discount ID'), 'description' => ts('FK to Discount ID'), + 'where' => 'civicrm_participant.discount_id', 'default' => 'NULL', 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -467,8 +455,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'description' => ts('The campaign for which this participant has been registered.'), 'import' => TRUE, 'where' => 'civicrm_participant.campaign_id', - 'headerPattern' => '', - 'dataPattern' => '', 'export' => TRUE, 'table_name' => 'civicrm_participant', 'entity' => 'Participant', @@ -486,6 +472,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Discount Amount'), 'description' => ts('Discount Amount'), + 'where' => 'civicrm_participant.discount_amount', 'table_name' => 'civicrm_participant', 'entity' => 'Participant', 'bao' => 'CRM_Event_BAO_Participant', @@ -496,6 +483,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Event Cart ID'), 'description' => ts('FK to civicrm_event_carts'), + 'where' => 'civicrm_participant.cart_id', 'table_name' => 'civicrm_participant', 'entity' => 'Participant', 'bao' => 'CRM_Event_BAO_Participant', @@ -507,6 +495,7 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'type' => CRM_Utils_Type::T_INT, 'title' => ts('Must Wait on List'), 'description' => ts('On Waiting List'), + 'where' => 'civicrm_participant.must_wait', 'table_name' => 'civicrm_participant', 'entity' => 'Participant', 'bao' => 'CRM_Event_BAO_Participant', @@ -520,7 +509,6 @@ class CRM_Event_DAO_Participant extends CRM_Core_DAO { 'import' => TRUE, 'where' => 'civicrm_participant.transferred_to_contact_id', 'headerPattern' => '/transfer(.?id)?/i', - 'dataPattern' => '', 'export' => TRUE, 'default' => 'NULL', 'table_name' => 'civicrm_participant',