'title' => ts('ACL ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_acl.id',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'description' => ts('ACL Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_acl.name',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'title' => ts('Deny ACL?'),
'description' => ts('Is this ACL entry Allow (0) or Deny (1) ?'),
'required' => TRUE,
+ 'where' => 'civicrm_acl.deny',
'default' => '0',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_acl.entity_table',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'description' => ts('ID of the object possessing this ACL'),
+ 'where' => 'civicrm_acl.entity_id',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_acl.operation',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'description' => ts('The table of the object controlled by this ACL entry'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_acl.object_table',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Object ID'),
'description' => ts('The ID of the object controlled by this ACL entry'),
+ 'where' => 'civicrm_acl.object_id',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'description' => ts('If this is a grant/revoke entry, what table are we granting?'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_acl.acl_table',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ACL Group ID'),
'description' => ts('ID of the ACL or ACL group being granted/revoked'),
+ 'where' => 'civicrm_acl.acl_id',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('ACL Is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_acl.is_active',
'table_name' => 'civicrm_acl',
'entity' => 'ACL',
'bao' => 'CRM_ACL_BAO_ACL',
'title' => ts('Cache ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_cache.id',
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
'bao' => 'CRM_ACL_BAO_Cache',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Cache Contact'),
'description' => ts('Foreign Key to Contact'),
+ 'where' => 'civicrm_acl_cache.contact_id',
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
'bao' => 'CRM_ACL_BAO_Cache',
'title' => ts('Cache ACL'),
'description' => ts('Foreign Key to ACL'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_cache.acl_id',
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
'bao' => 'CRM_ACL_BAO_Cache',
'title' => ts('Cache Modified Date'),
'description' => ts('When was this cache entry last modified'),
'required' => FALSE,
+ 'where' => 'civicrm_acl_cache.modified_date',
'table_name' => 'civicrm_acl_cache',
'entity' => 'Cache',
'bao' => 'CRM_ACL_BAO_Cache',
'title' => ts('Entity Role'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_entity_role.id',
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
'title' => ts('ACL Role ID'),
'description' => ts('Foreign Key to ACL Role (which is an option value pair and hence an implicit FK)'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_entity_role.acl_role_id',
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_acl_entity_role.entity_table',
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
'title' => ts('ACL Entity ID'),
'description' => ts('ID of the group/contact object being joined'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_entity_role.entity_id',
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('ACL Entity Role is Active'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_acl_entity_role.is_active',
'table_name' => 'civicrm_acl_entity_role',
'entity' => 'EntityRole',
'bao' => 'CRM_ACL_BAO_EntityRole',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_activity.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Source Record'),
'description' => ts('Artificial FK to original transaction (e.g. contribution) IF it is not an Activity. Table can be figured out through activity_type_id, and further through component registry.'),
+ 'where' => 'civicrm_activity.source_record_id',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'import' => TRUE,
'where' => 'civicrm_activity.activity_type_id',
'headerPattern' => '/(activity.)?type(.id$)/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_activity',
'import' => TRUE,
'where' => 'civicrm_activity.subject',
'headerPattern' => '/(activity.)?subject/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'import' => TRUE,
'where' => 'civicrm_activity.activity_date_time',
'headerPattern' => '/(activity.)?date(.time$)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'import' => TRUE,
'where' => 'civicrm_activity.duration',
'headerPattern' => '/(activity.)?duration(s)?$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'import' => TRUE,
'where' => 'civicrm_activity.location',
'headerPattern' => '/(activity.)?location$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone (called) ID'),
'description' => ts('Phone ID of the number called (optional - used if an existing phone number is selected).'),
+ 'where' => 'civicrm_activity.phone_id',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'description' => ts('Phone number in case the number does not exist in the civicrm_phone table.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_activity.phone_number',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'import' => TRUE,
'where' => 'civicrm_activity.details',
'headerPattern' => '/(activity.)?detail(s)?$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'import' => TRUE,
'where' => 'civicrm_activity.status_id',
'headerPattern' => '/(activity.)?status(.label$)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Priority'),
'description' => ts('ID of the priority given to this activity. Foreign key to civicrm_option_value.'),
+ 'where' => 'civicrm_activity.priority_id',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Parent Activity Id'),
'description' => ts('Parent meeting ID (if this is a follow-up item). This is not currently implemented'),
+ 'where' => 'civicrm_activity.parent_id',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'import' => TRUE,
'where' => 'civicrm_activity.is_test',
'headerPattern' => '/(is.)?test(.activity)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Activity Medium'),
'description' => ts('Activity Medium, Implicit FK to civicrm_option_value where option_group = encounter_medium.'),
+ 'where' => 'civicrm_activity.medium_id',
'default' => 'NULL',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'name' => 'is_auto',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Auto'),
+ 'where' => 'civicrm_activity.is_auto',
'default' => '0',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship Id'),
'description' => ts('FK to Relationship ID'),
+ 'where' => 'civicrm_activity.relationship_id',
'default' => 'NULL',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'import' => TRUE,
'where' => 'civicrm_activity.is_current_revision',
'headerPattern' => '/(is.)?(current.)?(revision|version(ing)?)/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_activity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Original Activity ID '),
'description' => ts('Activity ID of the first activity record in versioning chain.'),
+ 'where' => 'civicrm_activity.original_id',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'description' => ts('Currently being used to store result id for survey activity, FK to option value.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_activity.result',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'import' => TRUE,
'where' => 'civicrm_activity.is_deleted',
'headerPattern' => '/(activity.)?(trash|deleted)/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_activity',
'description' => ts('The campaign for which this activity has been triggered.'),
'import' => TRUE,
'where' => 'civicrm_activity.campaign_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'description' => ts('Assign a specific level of engagement to this activity. Used for tracking constituents in ladder of engagement.'),
'import' => TRUE,
'where' => 'civicrm_activity.engagement_level',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'name' => 'weight',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
+ 'where' => 'civicrm_activity.weight',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'bao' => 'CRM_Activity_BAO_Activity',
'import' => TRUE,
'where' => 'civicrm_activity.is_star',
'headerPattern' => '/(activity.)?(star|favorite)/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_activity',
'title' => ts('Created Date'),
'description' => ts('When was the activity was created.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_activity.created_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'title' => ts('Modified Date'),
'description' => ts('When was the activity (or closely related entity) was created or modified or deleted.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_activity.modified_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_activity',
'entity' => 'Activity',
'title' => ts('Activity Contact ID'),
'description' => ts('Activity contact id'),
'required' => TRUE,
+ 'where' => 'civicrm_activity_contact.id',
'table_name' => 'civicrm_activity_contact',
'entity' => 'ActivityContact',
'bao' => 'CRM_Activity_BAO_ActivityContact',
'title' => ts('Activity ID'),
'description' => ts('Foreign key to the activity for this record.'),
'required' => TRUE,
+ 'where' => 'civicrm_activity_contact.activity_id',
'table_name' => 'civicrm_activity_contact',
'entity' => 'ActivityContact',
'bao' => 'CRM_Activity_BAO_ActivityContact',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_activity_contact.contact_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_activity_contact',
'entity' => 'ActivityContact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Record Type ID'),
'description' => ts('Nature of this contact\'s role in the activity: 1 assignee, 2 creator, 3 focus or target.'),
+ 'where' => 'civicrm_activity_contact.record_type_id',
'table_name' => 'civicrm_activity_contact',
'entity' => 'ActivityContact',
'bao' => 'CRM_Activity_BAO_ActivityContact',
// we need to set this on the form so that hooks can identify the created entity
$this->set('id', $bao->id);
- $bao->free();
$status = ts("Your new Reminder titled %1 has been saved.",
[1 => "<strong>{$values['title']}</strong>"]
'title' => ts('Batch ID'),
'description' => ts('Unique Address ID'),
'required' => TRUE,
+ 'where' => 'civicrm_batch.id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'description' => ts('Variable name/programmatic handle for this batch.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_batch.name',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'description' => ts('Friendly Name.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_batch.title',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'description' => ts('Description of this batch set.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_batch.description',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Created By'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_batch.created_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Created Date'),
'description' => ts('When was this item created'),
+ 'where' => 'civicrm_batch.created_date',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Modified By'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_batch.modified_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Modified Date'),
'description' => ts('When was this item created'),
+ 'where' => 'civicrm_batch.modified_date',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Smart Group'),
'description' => ts('FK to Saved Search ID'),
+ 'where' => 'civicrm_batch.saved_search_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'title' => ts('Batch Status'),
'description' => ts('fk to Batch Status options in civicrm_option_values'),
'required' => TRUE,
+ 'where' => 'civicrm_batch.status_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Type'),
'description' => ts('fk to Batch Type options in civicrm_option_values'),
+ 'where' => 'civicrm_batch.type_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Mode'),
'description' => ts('fk to Batch mode options in civicrm_option_values'),
+ 'where' => 'civicrm_batch.mode_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
20,
2
],
+ 'where' => 'civicrm_batch.total',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Number of Items'),
'description' => ts('Number of items in a batch.'),
+ 'where' => 'civicrm_batch.item_count',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Batch Payment Method'),
'description' => ts('fk to Payment Instrument options in civicrm_option_values'),
+ 'where' => 'civicrm_batch.payment_instrument_id',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'name' => 'exported_date',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Batch Exported Date'),
+ 'where' => 'civicrm_batch.exported_date',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Batch Data'),
'description' => ts('cache entered data'),
+ 'where' => 'civicrm_batch.data',
'table_name' => 'civicrm_batch',
'entity' => 'Batch',
'bao' => 'CRM_Batch_BAO_Batch',
'title' => ts('EntityBatch ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_batch.id',
'table_name' => 'civicrm_entity_batch',
'entity' => 'EntityBatch',
'bao' => 'CRM_Batch_BAO_EntityBatch',
'description' => ts('physical tablename for entity being joined to file, e.g. civicrm_contact'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_entity_batch.entity_table',
'table_name' => 'civicrm_entity_batch',
'entity' => 'EntityBatch',
'bao' => 'CRM_Batch_BAO_EntityBatch',
'title' => ts('Entity ID'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_batch.entity_id',
'table_name' => 'civicrm_entity_batch',
'entity' => 'EntityBatch',
'bao' => 'CRM_Batch_BAO_EntityBatch',
'title' => ts('Batch ID'),
'description' => ts('FK to civicrm_batch'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_batch.batch_id',
'table_name' => 'civicrm_entity_batch',
'entity' => 'EntityBatch',
'bao' => 'CRM_Batch_BAO_EntityBatch',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_campaign.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_campaign.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_campaign.title',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'description' => ts('Full description of Campaign.'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_campaign.description',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'import' => TRUE,
'where' => 'civicrm_campaign.start_date',
'headerPattern' => '/^start|(s(tart\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'import' => TRUE,
'where' => 'civicrm_campaign.end_date',
'headerPattern' => '/^end|(e(nd\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'description' => ts('Campaign Type ID.Implicit FK to civicrm_option_value where option_group = campaign_type'),
'import' => TRUE,
'where' => 'civicrm_campaign.campaign_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'description' => ts('Campaign status ID.Implicit FK to civicrm_option_value where option_group = campaign_status'),
'import' => TRUE,
'where' => 'civicrm_campaign.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'description' => ts('Optional parent id for this Campaign.'),
'import' => TRUE,
'where' => 'civicrm_campaign.parent_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_campaign',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Campaign Active?'),
'description' => ts('Is this Campaign enabled or disabled/cancelled?'),
+ 'where' => 'civicrm_campaign.is_active',
'default' => '1',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign Created By'),
'description' => ts('FK to civicrm_contact, who created this Campaign.'),
+ 'where' => 'civicrm_campaign.created_id',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Campaign Created Date'),
'description' => ts('Date and time that Campaign was created.'),
+ 'where' => 'civicrm_campaign.created_date',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign Modified By'),
'description' => ts('FK to civicrm_contact, who recently edited this Campaign.'),
+ 'where' => 'civicrm_campaign.last_modified_id',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Campaign Modified Date'),
'description' => ts('Date and time that Campaign was edited last time.'),
+ 'where' => 'civicrm_campaign.last_modified_date',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Campaign Goals'),
'description' => ts('General goals for Campaign.'),
+ 'where' => 'civicrm_campaign.goal_general',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
20,
2
],
+ 'where' => 'civicrm_campaign.goal_revenue',
'table_name' => 'civicrm_campaign',
'entity' => 'Campaign',
'bao' => 'CRM_Campaign_BAO_Campaign',
'title' => ts('Campaign Group ID'),
'description' => ts('Campaign Group id.'),
'required' => TRUE,
+ 'where' => 'civicrm_campaign_group.id',
'table_name' => 'civicrm_campaign_group',
'entity' => 'CampaignGroup',
'bao' => 'CRM_Campaign_DAO_CampaignGroup',
'title' => ts('Campaign'),
'description' => ts('Foreign key to the activity Campaign.'),
'required' => TRUE,
+ 'where' => 'civicrm_campaign_group.campaign_id',
'table_name' => 'civicrm_campaign_group',
'entity' => 'CampaignGroup',
'bao' => 'CRM_Campaign_DAO_CampaignGroup',
'description' => ts('Type of Group.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_campaign_group.group_type',
'default' => 'NULL',
'table_name' => 'civicrm_campaign_group',
'entity' => 'CampaignGroup',
'description' => ts('Name of table where item being referenced is stored.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_campaign_group.entity_table',
'default' => 'NULL',
'table_name' => 'civicrm_campaign_group',
'entity' => 'CampaignGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'description' => ts('Entity id of referenced table.'),
+ 'where' => 'civicrm_campaign_group.entity_id',
'default' => 'NULL',
'table_name' => 'civicrm_campaign_group',
'entity' => 'CampaignGroup',
'title' => ts('Survey ID'),
'description' => ts('Survey id.'),
'required' => TRUE,
+ 'where' => 'civicrm_survey.id',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_survey.title',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Survey Campaign ID'),
'description' => ts('Foreign key to the Campaign.'),
+ 'where' => 'civicrm_survey.campaign_id',
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'description' => ts('Implicit FK to civicrm_option_value where option_group = activity_type'),
'import' => TRUE,
'where' => 'civicrm_survey.activity_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'description' => ts('Recontact intervals for each status.'),
'rows' => 20,
'cols' => 80,
+ 'where' => 'civicrm_survey.recontact_interval',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'description' => ts('Script instructions for volunteers to use for the survey.'),
'rows' => 20,
'cols' => 80,
+ 'where' => 'civicrm_survey.instructions',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Survey Hold Duration'),
'description' => ts('Number of days for recurrence of release.'),
+ 'where' => 'civicrm_survey.release_frequency',
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum number of contacts'),
'description' => ts('Maximum number of contacts to allow for survey.'),
+ 'where' => 'civicrm_survey.max_number_of_contacts',
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Default number of contacts'),
'description' => ts('Default number of contacts to allow for survey.'),
+ 'where' => 'civicrm_survey.default_number_of_contacts',
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Survey Is Active'),
'description' => ts('Is this survey enabled or disabled/cancelled?'),
+ 'where' => 'civicrm_survey.is_active',
'default' => '1',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Default Survey'),
'description' => ts('Is this default survey?'),
+ 'where' => 'civicrm_survey.is_default',
'default' => '0',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Survey Created By'),
'description' => ts('FK to civicrm_contact, who created this Survey.'),
+ 'where' => 'civicrm_survey.created_id',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Campaign Created Date'),
'description' => ts('Date and time that Survey was created.'),
+ 'where' => 'civicrm_survey.created_date',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Survey Modified'),
'description' => ts('FK to civicrm_contact, who recently edited this Survey.'),
+ 'where' => 'civicrm_survey.last_modified_id',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Survey Modified On'),
'description' => ts('Date and time that Survey was edited last time.'),
+ 'where' => 'civicrm_survey.last_modified_date',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Survey Result'),
'description' => ts('Used to store option group id.'),
+ 'where' => 'civicrm_survey.result_id',
'default' => 'NULL',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('No Email Verification'),
'description' => ts('Bypass the email verification.'),
+ 'where' => 'civicrm_survey.bypass_confirm',
'default' => '0',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'description' => ts('Title for Thank-you page (header title tag, and display at the top of the page).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_survey.thankyou_title',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'description' => ts('text and html allowed. displayed above result on success page'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_survey.thankyou_text',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'bao' => 'CRM_Campaign_BAO_Survey',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is shared through social media'),
'description' => ts('Can people share the petition through social media?'),
+ 'where' => 'civicrm_survey.is_share',
'default' => '1',
'table_name' => 'civicrm_survey',
'entity' => 'Survey',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_case.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_case.case_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_case.subject',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'description' => ts('Date on which given case starts.'),
'import' => TRUE,
'where' => 'civicrm_case.start_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'description' => ts('Date on which given case ends.'),
'import' => TRUE,
'where' => 'civicrm_case.end_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'description' => ts('Details about the meeting (agenda, notes, etc).'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_case.details',
'table_name' => 'civicrm_case',
'entity' => 'Case',
'bao' => 'CRM_Case_BAO_Case',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_case.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_case',
'entity' => 'Case',
'title' => ts('Case is in the Trash'),
'import' => TRUE,
'where' => 'civicrm_case.is_deleted',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_case',
'title' => ts('Created Date'),
'description' => ts('When was the case was created.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_case.created_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_case',
'entity' => 'Case',
'title' => ts('Modified Date'),
'description' => ts('When was the case (or closely related entity) was created or modified or deleted.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_case.modified_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_case',
'entity' => 'Case',
'title' => ts('Case Activity ID'),
'description' => ts('Unique case-activity association id'),
'required' => TRUE,
+ 'where' => 'civicrm_case_activity.id',
'table_name' => 'civicrm_case_activity',
'entity' => 'CaseActivity',
'bao' => 'CRM_Case_DAO_CaseActivity',
'title' => ts('Case'),
'description' => ts('Case ID of case-activity association.'),
'required' => TRUE,
+ 'where' => 'civicrm_case_activity.case_id',
'table_name' => 'civicrm_case_activity',
'entity' => 'CaseActivity',
'bao' => 'CRM_Case_DAO_CaseActivity',
'title' => ts('Activity ID'),
'description' => ts('Activity ID of case-activity association.'),
'required' => TRUE,
+ 'where' => 'civicrm_case_activity.activity_id',
'table_name' => 'civicrm_case_activity',
'entity' => 'CaseActivity',
'bao' => 'CRM_Case_DAO_CaseActivity',
'title' => ts('Case Contact ID'),
'description' => ts('Unique case-contact association id'),
'required' => TRUE,
+ 'where' => 'civicrm_case_contact.id',
'table_name' => 'civicrm_case_contact',
'entity' => 'CaseContact',
'bao' => 'CRM_Case_BAO_CaseContact',
'title' => ts('Case'),
'description' => ts('Case ID of case-contact association.'),
'required' => TRUE,
+ 'where' => 'civicrm_case_contact.case_id',
'table_name' => 'civicrm_case_contact',
'entity' => 'CaseContact',
'bao' => 'CRM_Case_BAO_CaseContact',
'title' => ts('Contact ID'),
'description' => ts('Contact ID of contact record given case belongs to.'),
'required' => TRUE,
+ 'where' => 'civicrm_case_contact.contact_id',
'table_name' => 'civicrm_case_contact',
'entity' => 'CaseContact',
'bao' => 'CRM_Case_BAO_CaseContact',
'title' => ts('Case Type ID'),
'description' => ts('Autoincremented type id'),
'required' => TRUE,
+ 'where' => 'civicrm_case_type.id',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_case_type.name',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_case_type.title',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'description' => ts('Description of the Case Type'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_case_type.description',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Case Type Is Active'),
'description' => ts('Is this entry active?'),
+ 'where' => 'civicrm_case_type.is_active',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Case Type Is Reserved'),
'description' => ts('Is this case type a predefined system type?'),
+ 'where' => 'civicrm_case_type.is_reserved',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
'title' => ts('Order'),
'description' => ts('Ordering of the case types'),
'required' => TRUE,
+ 'where' => 'civicrm_case_type.weight',
'default' => '1',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'type' => CRM_Utils_Type::T_BLOB,
'title' => ts('Case Type Definition'),
'description' => ts('xml definition of case type'),
+ 'where' => 'civicrm_case_type.definition',
'table_name' => 'civicrm_case_type',
'entity' => 'CaseType',
'bao' => 'CRM_Case_BAO_CaseType',
return $contact;
}
+ if (!empty($params['contact_id']) && empty($params['contact_type'])) {
+ $params['contact_type'] = self::getContactType($params['contact_id']);
+ }
+
$isEdit = TRUE;
if ($invokeHooks) {
if (!empty($params['contact_id'])) {
while ($blockDAO->fetch()) {
$locBlockIds[$name][] = $blockDAO->id;
}
- $blockDAO->free();
}
return $locBlockIds;
}
}
CRM_Utils_Hook::post('delete', $type, $id, $obj);
- $obj->free();
return TRUE;
}
$ids['relationship'] = $relationship->id;
CRM_Contact_BAO_Relationship::setIsActive($relationship->id, TRUE);
}
- $relationship->free();
}
//need to handle related meberships. CRM-3792
CRM_Core_Action::DELETE
);
}
- $relationship->free();
}
}
}
$contactDetails[$contact->componentId][$property] = $contact->$property;
}
}
- $contact->free();
}
return $contactDetails;
$customDataCount = CRM_Core_DAO::singleValueQuery($sql);
if (!empty($customDataCount)) {
- $dao->free();
return TRUE;
}
}
];
}
}
- $dao->free();
$hierarchy = [];
for ($i = 0; $i < count($roots); $i++) {
CRM_Core_BAO_CustomValueTable::store($params['custom'], 'civicrm_relationship', $relationship->id);
}
- $relationship->free();
-
CRM_Utils_Hook::post($hook, 'Relationship', $relationship->id, $relationship);
return $relationship;
// Check whether the custom field values are identical.
$result = self::checkDuplicateCustomFields($params, $relationship->id);
if ($result) {
- $relationship->free();
return TRUE;
}
}
- $relationship->free();
return FALSE;
}
}
}
- $relationship->free();
return $values;
}
}
$relationshipType->copyValues($params);
if ($relationshipType->find(TRUE)) {
CRM_Core_DAO::storeValues($relationshipType, $defaults);
- $relationshipType->free();
return $relationshipType;
}
return NULL;
'title' => ts('ACL Contact Cache ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_contact_cache.id',
'table_name' => 'civicrm_acl_contact_cache',
'entity' => 'ACLContactCache',
'bao' => 'CRM_Contact_DAO_ACLContactCache',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contact ID'),
'description' => ts('FK to civicrm_contact (could be null for anon user)'),
+ 'where' => 'civicrm_acl_contact_cache.user_id',
'table_name' => 'civicrm_acl_contact_cache',
'entity' => 'ACLContactCache',
'bao' => 'CRM_Contact_DAO_ACLContactCache',
'title' => ts('Contact ID'),
'description' => ts('FK to civicrm_contact'),
'required' => TRUE,
+ 'where' => 'civicrm_acl_contact_cache.contact_id',
'table_name' => 'civicrm_acl_contact_cache',
'entity' => 'ACLContactCache',
'bao' => 'CRM_Contact_DAO_ACLContactCache',
'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_acl_contact_cache.operation',
'table_name' => 'civicrm_acl_contact_cache',
'entity' => 'ACLContactCache',
'bao' => 'CRM_Contact_DAO_ACLContactCache',
'import' => TRUE,
'where' => 'civicrm_contact.id',
'headerPattern' => '/internal|contact?|id$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'description' => ts('Type of Contact.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
- 'export' => TRUE,
'where' => 'civicrm_contact.contact_type',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'import' => TRUE,
'where' => 'civicrm_contact.contact_sub_type',
'headerPattern' => '/C(ontact )?(subtype|sub-type|sub type)/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contact.is_opt_out',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contact',
'description' => ts('Name used for sorting different contact types'),
'maxlength' => 128,
'size' => 30,
- 'export' => TRUE,
'where' => 'civicrm_contact.sort_name',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'description' => ts('Formatted name representing preferred format for display/print/other output.'),
'maxlength' => 128,
'size' => 30,
- 'export' => TRUE,
'where' => 'civicrm_contact.display_name',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'import' => TRUE,
'where' => 'civicrm_contact.legal_name',
'headerPattern' => '/^legal|(l(egal\s)?name)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'description' => ts('optional URL for preferred image (photo, logo, etc.) to display for this contact.'),
'import' => TRUE,
'where' => 'civicrm_contact.image_URL',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'import' => TRUE,
'where' => 'civicrm_contact.preferred_language',
'headerPattern' => '/^lang/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'import' => TRUE,
'where' => 'civicrm_contact.preferred_mail_format',
'headerPattern' => '/^p(ref\w*\s)?m(ail\s)?f(orm\w*)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'Both',
'table_name' => 'civicrm_contact',
'description' => ts('Key for validating requests related to this contact.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
- 'export' => TRUE,
'where' => 'civicrm_contact.hash',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'description' => ts('API Key for validating requests related to this contact.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_contact.api_key',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'import' => TRUE,
'where' => 'civicrm_contact.source',
'headerPattern' => '/(C(ontact\s)?Source)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'import' => TRUE,
'where' => 'civicrm_contact.formal_title',
'headerPattern' => '/^title/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Communication Style'),
'description' => ts('Communication style (e.g. formal vs. familiar) to use with this contact. FK to communication styles in civicrm_option_value.'),
- 'export' => TRUE,
'where' => 'civicrm_contact.communication_style_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Email Greeting ID'),
'description' => ts('FK to civicrm_option_value.id, that has to be valid registered Email Greeting.'),
- 'export' => TRUE,
'where' => 'civicrm_contact.email_greeting_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_contact.email_greeting_custom',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'description' => ts('Cache Email Greeting.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contact.email_greeting_display',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Postal Greeting ID'),
'description' => ts('FK to civicrm_option_value.id, that has to be valid registered Postal Greeting.'),
- 'export' => TRUE,
'where' => 'civicrm_contact.postal_greeting_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_contact.postal_greeting_custom',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'description' => ts('Cache Postal greeting.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contact.postal_greeting_display',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Addressee ID'),
'description' => ts('FK to civicrm_option_value.id, that has to be valid registered Addressee.'),
- 'export' => TRUE,
'where' => 'civicrm_contact.addressee_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_contact.addressee_custom',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'description' => ts('Cache Addressee.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contact.addressee_display',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'import' => TRUE,
'where' => 'civicrm_contact.gender_id',
'headerPattern' => '/^gender$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'import' => TRUE,
'where' => 'civicrm_contact.is_deceased',
'headerPattern' => '/i(s\s)?d(eceased)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contact',
'import' => TRUE,
'where' => 'civicrm_contact.deceased_date',
'headerPattern' => '/^deceased|(d(eceased\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Household Primary Contact ID'),
'description' => ts('Optional FK to Primary Contact for this household.'),
+ 'where' => 'civicrm_contact.primary_contact_id',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'import' => TRUE,
'where' => 'civicrm_contact.sic_code',
'headerPattern' => '/^sic|(s(ic\s)?code)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Current Employer'),
'description' => ts('OPTIONAL FK to civicrm_contact record.'),
- 'export' => TRUE,
'where' => 'civicrm_contact.employer_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'bao' => 'CRM_Contact_BAO_Contact',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Contact is in Trash'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_contact.is_deleted',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'title' => ts('Created Date'),
'description' => ts('When was the contact was created.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_contact.created_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'title' => ts('Modified Date'),
'description' => ts('When was the contact (or closely related entity) was created or modified or deleted.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_contact.modified_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_contact',
'entity' => 'Contact',
'title' => ts('Contact Type ID'),
'description' => ts('Contact Type ID'),
'required' => TRUE,
+ 'where' => 'civicrm_contact_type.id',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'description' => ts('Internal name of Contact Type (or Subtype).'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_contact_type.name',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'description' => ts('localized Name of Contact Type.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_contact_type.label',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'description' => ts('localized Optional verbose description of the type.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_contact_type.description',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'description' => ts('URL of image if any.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contact_type.image_URL',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contact Type Parent'),
'description' => ts('Optional FK to parent contact type.'),
+ 'where' => 'civicrm_contact_type.parent_id',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Contact Type Is Active?'),
'description' => ts('Is this entry active?'),
+ 'where' => 'civicrm_contact_type.is_active',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Contact Type is Reserved?'),
'description' => ts('Is this contact type a predefined system type'),
+ 'where' => 'civicrm_contact_type.is_reserved',
'table_name' => 'civicrm_contact_type',
'entity' => 'ContactType',
'bao' => 'CRM_Contact_BAO_ContactType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Dashboard Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard_contact.id',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'bao' => 'CRM_Contact_BAO_DashboardContact',
'title' => ts('Dashboard'),
'description' => ts('Dashboard ID'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard_contact.dashboard_id',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'bao' => 'CRM_Contact_BAO_DashboardContact',
'title' => ts('Dashboard Contact'),
'description' => ts('Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard_contact.contact_id',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'bao' => 'CRM_Contact_BAO_DashboardContact',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Column No'),
'description' => ts('column no for this widget'),
+ 'where' => 'civicrm_dashboard_contact.column_no',
'default' => '0',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Dashlet is Active?'),
'description' => ts('Is this widget active?'),
+ 'where' => 'civicrm_dashboard_contact.is_active',
'default' => '0',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'description' => ts('Ordering of the widgets.'),
+ 'where' => 'civicrm_dashboard_contact.weight',
'default' => '0',
'table_name' => 'civicrm_dashboard_contact',
'entity' => 'DashboardContact',
'title' => ts('Group ID'),
'description' => ts('Group ID'),
'required' => TRUE,
+ 'where' => 'civicrm_group.id',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('Internal name of Group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_group.name',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('Name of Group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_group.title',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('Optional verbose description of the group.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_group.description',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('Module or process which created this group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_group.source',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Saved Search ID'),
'description' => ts('FK to saved search table.'),
+ 'where' => 'civicrm_group.saved_search_id',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Group Enabled'),
'description' => ts('Is this entry active?'),
+ 'where' => 'civicrm_group.is_active',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('In what context(s) is this field visible.'),
'maxlength' => 24,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_group.visibility',
'default' => 'User and User Admin Only',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Group Where Clause'),
'description' => ts('the sql where clause if a saved search acl'),
+ 'where' => 'civicrm_group.where_clause',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Tables For Select Clause'),
'description' => ts('the tables to be included in a select data'),
+ 'where' => 'civicrm_group.select_tables',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Tables For Where Clause'),
'description' => ts('the tables to be included in the count statement'),
+ 'where' => 'civicrm_group.where_tables',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'description' => ts('FK to group type'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_group.group_type',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'title' => ts('Group Cache Date'),
'description' => ts('Date when we created the cache for a smart group'),
'required' => FALSE,
+ 'where' => 'civicrm_group.cache_date',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'title' => ts('Next Group Refresh Time'),
'description' => ts('Date and time when we need to refresh the cache next.'),
'required' => FALSE,
+ 'where' => 'civicrm_group.refresh_date',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Group Parents'),
'description' => ts('IDs of the parent(s)'),
+ 'where' => 'civicrm_group.parents',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Group Children'),
'description' => ts('IDs of the child(ren)'),
+ 'where' => 'civicrm_group.children',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Group is Hidden'),
'description' => ts('Is this group hidden?'),
+ 'where' => 'civicrm_group.is_hidden',
'default' => '0',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'name' => 'is_reserved',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Group is Reserved'),
+ 'where' => 'civicrm_group.is_reserved',
'default' => '0',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group Created By'),
'description' => ts('FK to contact table.'),
+ 'where' => 'civicrm_group.created_id',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group Modified By'),
'description' => ts('FK to contact table.'),
+ 'where' => 'civicrm_group.modified_id',
'table_name' => 'civicrm_group',
'entity' => 'Group',
'bao' => 'CRM_Contact_BAO_Group',
'title' => ts('Group Contact ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact.id',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'title' => ts('Group ID'),
'description' => ts('FK to civicrm_group'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact.group_id',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'title' => ts('Contact ID'),
'description' => ts('FK to civicrm_contact'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact.contact_id',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'description' => ts('status of contact relative to membership in group'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_group_contact.status',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group Contact Location'),
'description' => ts('Optional location to associate with this membership'),
+ 'where' => 'civicrm_group_contact.location_id',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group Contact Email'),
'description' => ts('Optional email to associate with this membership'),
+ 'where' => 'civicrm_group_contact.email_id',
'table_name' => 'civicrm_group_contact',
'entity' => 'GroupContact',
'bao' => 'CRM_Contact_BAO_GroupContact',
'title' => ts('Group Contact Cache ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact_cache.id',
'table_name' => 'civicrm_group_contact_cache',
'entity' => 'GroupContactCache',
'bao' => 'CRM_Contact_BAO_GroupContactCache',
'title' => ts('Group'),
'description' => ts('FK to civicrm_group'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact_cache.group_id',
'table_name' => 'civicrm_group_contact_cache',
'entity' => 'GroupContactCache',
'bao' => 'CRM_Contact_BAO_GroupContactCache',
'title' => ts('Contact ID'),
'description' => ts('FK to civicrm_contact'),
'required' => TRUE,
+ 'where' => 'civicrm_group_contact_cache.contact_id',
'table_name' => 'civicrm_group_contact_cache',
'entity' => 'GroupContactCache',
'bao' => 'CRM_Contact_BAO_GroupContactCache',
'title' => ts('Group Nesting ID'),
'description' => ts('Relationship ID'),
'required' => TRUE,
+ 'where' => 'civicrm_group_nesting.id',
'table_name' => 'civicrm_group_nesting',
'entity' => 'GroupNesting',
'bao' => 'CRM_Contact_BAO_GroupNesting',
'title' => ts('Child Group'),
'description' => ts('ID of the child group'),
'required' => TRUE,
+ 'where' => 'civicrm_group_nesting.child_group_id',
'table_name' => 'civicrm_group_nesting',
'entity' => 'GroupNesting',
'bao' => 'CRM_Contact_BAO_GroupNesting',
'title' => ts('Parent Group'),
'description' => ts('ID of the parent group'),
'required' => TRUE,
+ 'where' => 'civicrm_group_nesting.parent_group_id',
'table_name' => 'civicrm_group_nesting',
'entity' => 'GroupNesting',
'bao' => 'CRM_Contact_BAO_GroupNesting',
'title' => ts('Group Organization ID'),
'description' => ts('Relationship ID'),
'required' => TRUE,
+ 'where' => 'civicrm_group_organization.id',
'table_name' => 'civicrm_group_organization',
'entity' => 'GroupOrganization',
'bao' => 'CRM_Contact_BAO_GroupOrganization',
'title' => ts('Group'),
'description' => ts('ID of the group'),
'required' => TRUE,
+ 'where' => 'civicrm_group_organization.group_id',
'table_name' => 'civicrm_group_organization',
'entity' => 'GroupOrganization',
'bao' => 'CRM_Contact_BAO_GroupOrganization',
'title' => ts('Organization'),
'description' => ts('ID of the Organization Contact'),
'required' => TRUE,
+ 'where' => 'civicrm_group_organization.organization_id',
'table_name' => 'civicrm_group_organization',
'entity' => 'GroupOrganization',
'bao' => 'CRM_Contact_BAO_GroupOrganization',
'title' => ts('Relationship ID'),
'description' => ts('Relationship ID'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.id',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'title' => ts('Contact A'),
'description' => ts('id of the first contact'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.contact_id_a',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'title' => ts('Contact B'),
'description' => ts('id of the second contact'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.contact_id_b',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'title' => ts('Relationship Type'),
'description' => ts('id of the relationship'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.relationship_type_id',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Relationship Start Date'),
'description' => ts('date when the relationship started'),
+ 'where' => 'civicrm_relationship.start_date',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Relationship End Date'),
'description' => ts('date when the relationship ended'),
+ 'where' => 'civicrm_relationship.end_date',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Relationship Is Active'),
'description' => ts('is the relationship active ?'),
+ 'where' => 'civicrm_relationship.is_active',
'default' => '1',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'description' => ts('Optional verbose description for the relationship.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_relationship.description',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'bao' => 'CRM_Contact_BAO_Relationship',
'title' => ts('Contact A has Permission Over Contact B'),
'description' => ts('Permission that Contact A has to view/update Contact B'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.is_permission_a_b',
'default' => '0',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'title' => ts('Contact B has Permission Over Contact A'),
'description' => ts('Permission that Contact B has to view/update Contact A'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship.is_permission_b_a',
'default' => '0',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship Case'),
'description' => ts('FK to civicrm_case'),
+ 'where' => 'civicrm_relationship.case_id',
'default' => 'NULL',
'table_name' => 'civicrm_relationship',
'entity' => 'Relationship',
'title' => ts('Relationship Type ID'),
'description' => ts('Primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_relationship_type.id',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('name for relationship of contact_a to contact_b.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.name_a_b',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('label for relationship of contact_a to contact_b.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.label_a_b',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('Optional name for relationship of contact_b to contact_a.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.name_b_a',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('Optional label for relationship of contact_b to contact_a.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.label_b_a',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('Optional verbose description of the relationship type.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_relationship_type.description',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('If defined, contact_a in a relationship of this type must be a specific contact_type.'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_relationship_type.contact_type_a',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'description' => ts('If defined, contact_b in a relationship of this type must be a specific contact_type.'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_relationship_type.contact_type_b',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.contact_sub_type_a',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_relationship_type.contact_sub_type_b',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Relationship Type is Reserved'),
'description' => ts('Is this relationship type a predefined system type (can not be changed or de-activated)?'),
+ 'where' => 'civicrm_relationship_type.is_reserved',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'bao' => 'CRM_Contact_BAO_RelationshipType',
'title' => ts('Relationship Type is Active'),
'description' => ts('Is this relationship type currently active (i.e. can be used when creating or editing relationships)?
'),
+ 'where' => 'civicrm_relationship_type.is_active',
'default' => '1',
'table_name' => 'civicrm_relationship_type',
'entity' => 'RelationshipType',
'title' => ts('Saved Search ID'),
'description' => ts('Saved Search ID'),
'required' => TRUE,
+ 'where' => 'civicrm_saved_search.id',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'description' => ts('Submitted form values for this search'),
'import' => TRUE,
'where' => 'civicrm_saved_search.form_values',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mapping ID'),
'description' => ts('Foreign key to civicrm_mapping used for saved search-builder searches.'),
+ 'where' => 'civicrm_saved_search.mapping_id',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Option Value ID'),
'description' => ts('Foreign key to civicrm_option value table used for saved custom searches.'),
+ 'where' => 'civicrm_saved_search.search_custom_id',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Where Clause'),
'description' => ts('the sql where clause if a saved search acl'),
+ 'where' => 'civicrm_saved_search.where_clause',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Select Tables'),
'description' => ts('the tables to be included in a select data'),
+ 'where' => 'civicrm_saved_search.select_tables',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Where Tables'),
'description' => ts('the tables to be included in the count statement'),
+ 'where' => 'civicrm_saved_search.where_tables',
'table_name' => 'civicrm_saved_search',
'entity' => 'SavedSearch',
'bao' => 'CRM_Contact_BAO_SavedSearch',
'title' => ts('Group Membership History ID'),
'description' => ts('Internal Id'),
'required' => TRUE,
+ 'where' => 'civicrm_subscription_history.id',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'title' => ts('Contact ID'),
'description' => ts('Contact Id'),
'required' => TRUE,
+ 'where' => 'civicrm_subscription_history.contact_id',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group'),
'description' => ts('Group Id'),
+ 'where' => 'civicrm_subscription_history.group_id',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'title' => ts('Group Membership Action Date'),
'description' => ts('Date of the (un)subscription'),
'required' => TRUE,
+ 'where' => 'civicrm_subscription_history.date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'description' => ts('How the (un)subscription was triggered'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_subscription_history.method',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'description' => ts('The state of the contact within the group'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_subscription_history.status',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
'description' => ts('IP address or other tracking info'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_subscription_history.tracking',
'table_name' => 'civicrm_subscription_history',
'entity' => 'SubscriptionHistory',
'bao' => 'CRM_Contact_BAO_SubscriptionHistory',
$ruleDao = new CRM_Dedupe_DAO_Rule();
$ruleDao->dedupe_rule_group_id = $rgDao->id;
$ruleDao->delete();
- $ruleDao->free();
-
$substrLenghts = [];
$tables = [];
$ruleDao->rule_length = $length;
$ruleDao->rule_weight = $weight;
$ruleDao->save();
- $ruleDao->free();
if (!array_key_exists($table, $tables)) {
$tables[$table] = [];
$this->_contactIds[] = $householdsDAO->household_id;
}
}
- $householdsDAO->free();
}
// If contact list has changed, households will probably be at the end of
protected $_primaryKeyName;
protected $_statusFieldName;
+ protected $fieldMetadata = [];
/**
* On duplicate
*
// get the formatted location blocks into params - w/ 3.0 format, CRM-4605
if (!empty($values['location_type_id'])) {
- return $this->formatLocationBlock($values, $params, $fields);
+ return $this->formatLocationBlock($values, $params);
}
if (isset($values['note'])) {
*
* @param array $values
* @param array $params
- * @param array $fields
*
* @return bool
*/
- protected function formatLocationBlock(&$values, &$params, $fields) {
+ protected function formatLocationBlock(&$values, &$params) {
if (empty($values['location_type_id'])) {
return FALSE;
}
$params[$blockFieldName] = [];
}
- if (!array_key_exists($block, $fields)) {
- $className = "CRM_Core_DAO_$block";
- $fields[$block] = $className::fields();
- }
+ $fields[$block] = $this->getMetadataForEntity($block);
$blockCnt = count($params[$blockFieldName]);
$params['address'] = [];
}
- if (!array_key_exists('Address', $fields)) {
- $fields['Address'] = CRM_Core_DAO_Address::fields();
- }
-
// Note: we doing multiple value formatting here for address custom fields, plus putting into right format.
// The actual formatting (like date, country ..etc) for address custom fields is taken care of while saving
// the address in CRM_Core_BAO_Address::create method
foreach ($values as $key => $val) {
$customFieldID = CRM_Core_BAO_CustomField::getKeyID($key);
if ($customFieldID && array_key_exists($customFieldID, $customFields)) {
- // mark an entry in fields array since we want the value of custom field to be copied
- $fields['Address'][$key] = NULL;
$htmlType = CRM_Utils_Array::value('html_type', $customFields[$customFieldID]);
switch ($htmlType) {
$values = $newValues;
}
+ $fields['Address'] = $this->getMetadataForEntity('Address');
+ // @todo this is kinda replicated below....
_civicrm_api3_store_values($fields['Address'], $values, $params['address'][$values['location_type_id']]);
$addressFields = [
'supplemental_address_3',
'StateProvince.name',
];
+ foreach (array_keys($customFields) as $customFieldID) {
+ $addressFields[] = 'custom_' . $customFieldID;
+ }
foreach ($addressFields as $field) {
if (array_key_exists($field, $values)) {
return TRUE;
}
+ /**
+ * Get the field metadata for the relevant entity.
+ *
+ * @param string $entity
+ *
+ * @return array
+ */
+ protected function getMetadataForEntity($entity) {
+ if (!isset($this->fieldMetadata[$entity])) {
+ $className = "CRM_Core_DAO_$entity";
+ $this->fieldMetadata[$entity] = $className::fields();
+ }
+ return $this->fieldMetadata[$entity];
+ }
+
}
$formatting['contact_sub_type'] = $relationType->$direction;
}
}
- $relationType->free();
$contactFields = NULL;
$contactFields = CRM_Contact_DAO_Contact::import();
$params[$key]['contact_sub_type'] = $relationshipType->$direction;
}
}
- $relationshipType->free();
}
self::isErrorInCustomData($params[$key], $errorMessage, $csType, $relationships);
usort($dashboardElements, ['CRM_Utils_Sort', 'cmpFunc']);
$this->assign('dashboardElements', $dashboardElements);
- // return true when 'Invoices / Credit Notes' checkbox is checked
- $this->assign('invoices', $dashboardOptions['Invoices / Credit Notes']);
-
if (!empty($dashboardOptions['Groups'])) {
$this->assign('showGroup', TRUE);
//build group selector
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contribution.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type for (total_amount - non_deductible_amount).'),
- 'export' => TRUE,
'where' => 'civicrm_contribution.financial_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'bao' => 'CRM_Contribute_BAO_Contribution',
'description' => ts('The Contribution Page which triggered this contribution'),
'import' => TRUE,
'where' => 'civicrm_contribution.contribution_page_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method ID'),
'description' => ts('FK to Payment Instrument'),
- 'export' => TRUE,
'where' => 'civicrm_contribution.payment_instrument_id',
'headerPattern' => '/^payment|(p(ayment\s)?instrument)$/i',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'bao' => 'CRM_Contribute_BAO_Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.trxn_id',
'headerPattern' => '/tr(ansactio|x)n(.?id)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.invoice_id',
'headerPattern' => '/invoice(.?id)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.invoice_number',
'headerPattern' => '/invoice(.?number)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.cancel_reason',
'headerPattern' => '/(cancel.?)?reason/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.source',
'headerPattern' => '/source/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'title' => ts('Amount Label'),
'import' => TRUE,
'where' => 'civicrm_contribution.amount_level',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Recurring Contribution ID'),
'description' => ts('Conditional foreign key to civicrm_contribution_recur id. Each contribution made in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.'),
- 'export' => TRUE,
'where' => 'civicrm_contribution.contribution_recur_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'bao' => 'CRM_Contribute_BAO_Contribution',
'title' => ts('Test'),
'import' => TRUE,
'where' => 'civicrm_contribution.is_test',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contribution',
'title' => ts('Is Pay Later'),
'import' => TRUE,
'where' => 'civicrm_contribution.is_pay_later',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.contribution_status_id',
'headerPattern' => '/status/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_contribution',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution Address'),
'description' => ts('Conditional foreign key to civicrm_address.id. We insert an address record for each contribution when we have associated billing name and address data.'),
- 'export' => TRUE,
'where' => 'civicrm_contribution.address_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'bao' => 'CRM_Contribute_BAO_Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.check_number',
'headerPattern' => '/check(.?number)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'description' => ts('The campaign for which this contribution has been triggered.'),
'import' => TRUE,
'where' => 'civicrm_contribution.campaign_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'import' => TRUE,
'where' => 'civicrm_contribution.creditnote_id',
'headerPattern' => '/creditnote(.?id)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution',
'entity' => 'Contribution',
'title' => ts('Contribution Page ID'),
'description' => ts('Contribution Id'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_page.id',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Contribution Page title. For top of page display'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.title',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Text and html allowed. Displayed below title.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_contribution_page.intro_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('default financial type assigned to contributions submitted via this page, e.g. Contribution, Campaign Contribution'),
+ 'where' => 'civicrm_contribution_page.financial_type_id',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Payment Processors configured for this contribution Page'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.payment_processor',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Credit Card Only?'),
'description' => ts('if true - processing logic must reject transaction at confirmation stage if pay method != credit card'),
+ 'where' => 'civicrm_contribution_page.is_credit_card_only',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Monetary'),
'description' => ts('if true - allows real-time monetary transactions otherwise non-monetary transactions'),
+ 'where' => 'civicrm_contribution_page.is_monetary',
'default' => '1',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Recurring'),
'description' => ts('if true - allows recurring contributions, valid only for PayPal_Standard'),
+ 'where' => 'civicrm_contribution_page.is_recur',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Confirmation Page?'),
'description' => ts('if false, the confirm page in contribution pages gets skipped'),
+ 'where' => 'civicrm_contribution_page.is_confirm_enabled',
'default' => '1',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'description' => ts('Supported recurring frequency units.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.recur_frequency_unit',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Support Recurring Intervals'),
'description' => ts('if true - supports recurring intervals'),
+ 'where' => 'civicrm_contribution_page.is_recur_interval',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Recurring Installments?'),
'description' => ts('if true - asks user for recurring installments'),
+ 'where' => 'civicrm_contribution_page.is_recur_installments',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Adjust Recurring Start Date'),
'description' => ts('if true - user is able to adjust payment start date'),
+ 'where' => 'civicrm_contribution_page.adjust_recur_start_date',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Pay Later'),
'description' => ts('if true - allows the user to send payment directly to the org later'),
+ 'where' => 'civicrm_contribution_page.is_pay_later',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Pay Later Text'),
'description' => ts('The text displayed to the user in the main form'),
+ 'where' => 'civicrm_contribution_page.pay_later_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Pay Later Receipt'),
'description' => ts('The receipt sent to the user instead of the normal receipt text'),
+ 'where' => 'civicrm_contribution_page.pay_later_receipt',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Allow Partial Payment'),
'description' => ts('is partial payment enabled for this online contribution page'),
+ 'where' => 'civicrm_contribution_page.is_partial_payment',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'description' => ts('Initial amount label for partial payment'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.initial_amount_label',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Initial Amount Help Text'),
'description' => ts('Initial amount help text for partial payment'),
+ 'where' => 'civicrm_contribution_page.initial_amount_help_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
20,
2
],
+ 'where' => 'civicrm_contribution_page.min_initial_amount',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Allow Other Amounts'),
'description' => ts('if true, page will include an input text field where user can enter their own amount'),
+ 'where' => 'civicrm_contribution_page.is_allow_other_amount',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Default Amount'),
'description' => ts('FK to civicrm_option_value.'),
+ 'where' => 'civicrm_contribution_page.default_amount_id',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
20,
2
],
+ 'where' => 'civicrm_contribution_page.min_amount',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
20,
2
],
+ 'where' => 'civicrm_contribution_page.max_amount',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
20,
2
],
+ 'where' => 'civicrm_contribution_page.goal_amount',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Title for Thank-you page (header title tag, and display at the top of the page).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.thankyou_title',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('text and html allowed. displayed above result on success page'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_contribution_page.thankyou_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Text and html allowed. displayed at the bottom of the success page. Common usage is to include link(s) to other pages such as tell-a-friend, etc.'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_contribution_page.thankyou_footer',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Send email Receipt'),
'description' => ts('if true, receipt is automatically emailed to contact on success'),
+ 'where' => 'civicrm_contribution_page.is_email_receipt',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'description' => ts('FROM email name used for receipts generated by contributions to this contribution page.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.receipt_from_name',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('FROM email address used for receipts generated by contributions to this contribution page.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.receipt_from_email',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('comma-separated list of email addresses to cc each time a receipt is sent'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.cc_receipt',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('comma-separated list of email addresses to bcc each time a receipt is sent'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_page.bcc_receipt',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_contribution_page.receipt_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Page Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_contribution_page.is_active',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_contribution_page.footer_text',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Amount Block Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_contribution_page.amount_block_is_active',
'default' => '1',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Contribution Page Start Date'),
'description' => ts('Date and time that this page starts.'),
+ 'where' => 'civicrm_contribution_page.start_date',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Contribution Page End Date'),
'description' => ts('Date and time that this page ends. May be NULL if no defined end date/time'),
+ 'where' => 'civicrm_contribution_page.end_date',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution Page Created By'),
'description' => ts('FK to civicrm_contact, who created this contribution page'),
+ 'where' => 'civicrm_contribution_page.created_id',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Contribution Page Created Date'),
'description' => ts('Date and time that contribution page was created.'),
+ 'where' => 'civicrm_contribution_page.created_date',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_contribution_page.currency',
+ 'headerPattern' => '/cur(rency)?/i',
+ 'dataPattern' => '/^[A-Z]{3}$/i',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution Page Campaign ID'),
'description' => ts('The campaign for which we are collecting contributions with this page.'),
+ 'where' => 'civicrm_contribution_page.campaign_id',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'bao' => 'CRM_Contribute_BAO_ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Contribution Page Shared?'),
'description' => ts('Can people share the contribution page through social media?'),
+ 'where' => 'civicrm_contribution_page.is_share',
'default' => '1',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is billing block required'),
'description' => ts('if true - billing block is required for online contribution page'),
+ 'where' => 'civicrm_contribution_page.is_billing_required',
'default' => '0',
'table_name' => 'civicrm_contribution_page',
'entity' => 'ContributionPage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution Product ID'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_product.id',
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Product ID'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_product.product_id',
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution ID'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_product.contribution_id',
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'description' => ts('Option value selected if applicable - e.g. color, size etc.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
- 'export' => TRUE,
'where' => 'civicrm_contribution_product.product_option',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'name' => 'quantity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Quantity'),
- 'export' => TRUE,
'where' => 'civicrm_contribution_product.quantity',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Fulfilled Date'),
'description' => ts('Optional. Can be used to record the date this product was fulfilled or shipped.'),
- 'export' => TRUE,
'where' => 'civicrm_contribution_product.fulfilled_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Start date for premium'),
'description' => ts('Actual start date for a time-delimited premium (subscription, service or membership)'),
- 'export' => TRUE,
'where' => 'civicrm_contribution_product.start_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('End date for premium'),
'description' => ts('Actual end date for a time-delimited premium (subscription, service or membership)'),
- 'export' => TRUE,
'where' => 'civicrm_contribution_product.end_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'name' => 'comment',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Premium comment'),
+ 'where' => 'civicrm_contribution_product.comment',
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'bao' => 'CRM_Contribute_DAO_ContributionProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type(for membership price sets only).'),
+ 'where' => 'civicrm_contribution_product.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_product',
'entity' => 'ContributionProduct',
'title' => ts('Recurring Contribution ID'),
'description' => ts('Contribution Recur ID'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'title' => ts('Contact'),
'description' => ts('Foreign key to civicrm_contact.id.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.contact_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
20,
2
],
+ 'where' => 'civicrm_contribution_recur.amount',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_contribution_recur.currency',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'description' => ts('Time units for recurrence of payment.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_contribution_recur.frequency_unit',
'default' => 'month',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'title' => ts('Interval (number of units)'),
'description' => ts('Number of time units for recurrence of payment.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.frequency_interval',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Number of Installments'),
'description' => ts('Total number of payments to be made. Set this to 0 if this is an open-ended commitment i.e. no set end date.'),
+ 'where' => 'civicrm_contribution_recur.installments',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'title' => ts('Start Date'),
'description' => ts('The date the first scheduled recurring contribution occurs.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.start_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'title' => ts('Created Date'),
'description' => ts('When this recurring contribution record was created.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.create_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Modified Date'),
'description' => ts('Last updated date for this record. mostly the last time a payment was received'),
+ 'where' => 'civicrm_contribution_recur.modified_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Cancel Date'),
'description' => ts('Date this recurring contribution was cancelled by contributor- if we can get access to it'),
+ 'where' => 'civicrm_contribution_recur.cancel_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Cancellation Reason'),
'description' => ts('Free text field for a reason for cancelling'),
+ 'where' => 'civicrm_contribution_recur.cancel_reason',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Recurring Contribution End Date'),
'description' => ts('Date this recurring contribution finished successfully'),
+ 'where' => 'civicrm_contribution_recur.end_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'description' => ts('Possibly needed to store a unique identifier for this recurring payment order - if this is available from the processor??'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_recur.processor_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Token ID'),
'description' => ts('Optionally used to store a link to a payment token used for this recurring contribution.'),
+ 'where' => 'civicrm_contribution_recur.payment_token_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'description' => ts('unique transaction id. may be processor id, bank id + trans id, or account number + check number... depending on payment_method'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_recur.trxn_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'description' => ts('unique invoice id, system generated or passed in'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_recur.invoice_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'title' => ts('Status'),
'import' => TRUE,
'where' => 'civicrm_contribution_recur.contribution_status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_contribution_recur',
'title' => ts('Test'),
'import' => TRUE,
'where' => 'civicrm_contribution_recur.is_test',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_contribution_recur',
'title' => ts('Cycle Day'),
'description' => ts('Day in the period when the payment should be charged e.g. 1st of month, 15th etc.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.cycle_day',
'default' => '1',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Next Scheduled Contribution Date'),
'description' => ts('Next scheduled date'),
+ 'where' => 'civicrm_contribution_recur.next_sched_contribution_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Number of Failures'),
'description' => ts('Number of failed charge attempts since last success. Business rule could be set to deactivate on more than x failures.'),
+ 'where' => 'civicrm_contribution_recur.failure_count',
'default' => '0',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Retry Failed Attempt Date'),
'description' => ts('Date to retry failed attempt'),
+ 'where' => 'civicrm_contribution_recur.failure_retry_date',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'title' => ts('Auto Renew'),
'description' => ts('Some systems allow contributor to set a number of installments - but then auto-renew the subscription or commitment if they do not cancel.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_recur.auto_renew',
'default' => '0',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Processor'),
'description' => ts('Foreign key to civicrm_payment_processor.id'),
+ 'where' => 'civicrm_contribution_recur.payment_processor_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type'),
- 'export' => FALSE,
'where' => 'civicrm_contribution_recur.financial_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => FALSE,
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method'),
'description' => ts('FK to Payment Instrument'),
+ 'where' => 'civicrm_contribution_recur.payment_instrument_id',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'bao' => 'CRM_Contribute_BAO_ContributionRecur',
'description' => ts('The campaign for which this contribution has been triggered.'),
'import' => TRUE,
'where' => 'civicrm_contribution_recur.campaign_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Send email Receipt?'),
'description' => ts('if true, receipt is automatically emailed to contact on each successful payment'),
+ 'where' => 'civicrm_contribution_recur.is_email_receipt',
'default' => '1',
'table_name' => 'civicrm_contribution_recur',
'entity' => 'ContributionRecur',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_contribution_soft.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'title' => ts('Soft Contribution - Contribution'),
'description' => ts('FK to contribution table.'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_soft.contribution_id',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'bao' => 'CRM_Contribute_BAO_ContributionSoft',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_contribution_soft.currency',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Soft Contribution PCP'),
'description' => ts('FK to civicrm_pcp.id'),
+ 'where' => 'civicrm_contribution_soft.pcp_id',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'name' => 'pcp_display_in_roll',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Soft Contribution Display on PCP'),
+ 'where' => 'civicrm_contribution_soft.pcp_display_in_roll',
'default' => '0',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'title' => ts('Soft Contribution PCP Nickname'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_soft.pcp_roll_nickname',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'title' => ts('Soft Contribution PCP Note'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_soft.pcp_personal_note',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Soft Credit Type'),
'description' => ts('Soft Credit Type ID.Implicit FK to civicrm_option_value where option_group = soft_credit_type.'),
+ 'where' => 'civicrm_contribution_soft.soft_credit_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_contribution_soft',
'entity' => 'ContributionSoft',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Premium ID'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums.id',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_premiums.entity_table',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Premium entity ID'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums.entity_id',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'title' => ts('Is Premium Active?'),
'description' => ts('Is the Premiums feature enabled for this page?'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums.premiums_active',
'default' => '0',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'description' => ts('Title for Premiums section.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_premiums.premiums_intro_title',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Premium Introductory Text'),
'description' => ts('Displayed in <div> at top of Premiums section of page. Text and HTML allowed.'),
+ 'where' => 'civicrm_premiums.premiums_intro_text',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'description' => ts('This email address is included in receipts if it is populated and a premium has been selected.'),
'maxlength' => 100,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_premiums.premiums_contact_email',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'description' => ts('This phone number is included in receipts if it is populated and a premium has been selected.'),
'maxlength' => 50,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_premiums.premiums_contact_phone',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'title' => ts('Display Minimum Contribution?'),
'description' => ts('Boolean. Should we automatically display minimum contribution amount text after the premium descriptions.'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums.premiums_display_min_contribution',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'description' => ts('Label displayed for No Thank-you option in premiums block (e.g. No thank you)'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_premiums.premiums_nothankyou_label',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'bao' => 'CRM_Contribute_BAO_Premium',
'name' => 'premiums_nothankyou_position',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('No Thank-you Position'),
+ 'where' => 'civicrm_premiums.premiums_nothankyou_position',
'default' => '1',
'table_name' => 'civicrm_premiums',
'entity' => 'Premium',
'title' => ts('Premium Product ID'),
'description' => ts('Contribution ID'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums_product.id',
'table_name' => 'civicrm_premiums_product',
'entity' => 'PremiumsProduct',
'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
'title' => ts('Premium'),
'description' => ts('Foreign key to premiums settings record.'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums_product.premiums_id',
'table_name' => 'civicrm_premiums_product',
'entity' => 'PremiumsProduct',
'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
'title' => ts('Product'),
'description' => ts('Foreign key to each product object.'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums_product.product_id',
'table_name' => 'civicrm_premiums_product',
'entity' => 'PremiumsProduct',
'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'required' => TRUE,
+ 'where' => 'civicrm_premiums_product.weight',
'table_name' => 'civicrm_premiums_product',
'entity' => 'PremiumsProduct',
'bao' => 'CRM_Contribute_DAO_PremiumsProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type.'),
+ 'where' => 'civicrm_premiums_product.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_premiums_product',
'entity' => 'PremiumsProduct',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Product ID'),
'required' => TRUE,
+ 'where' => 'civicrm_product.id',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
- 'export' => TRUE,
'where' => 'civicrm_product.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Description'),
'description' => ts('Optional description of the product/premium.'),
+ 'where' => 'civicrm_product.description',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'description' => ts('Optional product sku or code.'),
'maxlength' => 50,
'size' => CRM_Utils_Type::BIG,
- 'export' => TRUE,
'where' => 'civicrm_product.sku',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Options'),
'description' => ts('Store comma-delimited list of color, size, etc. options for the product.'),
+ 'where' => 'civicrm_product.options',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'description' => ts('Full or relative URL to uploaded image - fullsize.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_product.image',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'description' => ts('Full or relative URL to image thumbnail.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_product.thumbnail',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
20,
2
],
+ 'where' => 'civicrm_product.price',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_product.currency',
'default' => 'NULL',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type.'),
+ 'where' => 'civicrm_product.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_product',
'entity' => 'Product',
20,
2
],
+ 'where' => 'civicrm_product.min_contribution',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
20,
2
],
+ 'where' => 'civicrm_product.cost',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'title' => ts('Is Active'),
'description' => ts('Disabling premium removes it from the premiums_premium join table below.'),
'required' => TRUE,
+ 'where' => 'civicrm_product.is_active',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
(e.g. 1 year + fixed -> we would set start/end for 1/1/06 thru 12/31/06 for any premium chosen in 2006) '),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_product.period_type',
'default' => 'rolling',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Fixed Period Start Day'),
'description' => ts('Month and day (MMDD) that fixed period type subscription or membership starts.'),
+ 'where' => 'civicrm_product.fixed_period_start_day',
'default' => '0101',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'title' => ts('Duration Unit'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_product.duration_unit',
'default' => 'year',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Duration Interval'),
'description' => ts('Number of units for total duration of subscription, service, membership (e.g. 12 Months).'),
+ 'where' => 'civicrm_product.duration_interval',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'description' => ts('Frequency unit and interval allow option to store actual delivery frequency for a subscription or service.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_product.frequency_unit',
'default' => 'month',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Frequency Interval'),
'description' => ts('Number of units for delivery frequency of subscription, service, membership (e.g. every 3 Months).'),
+ 'where' => 'civicrm_product.frequency_interval',
'table_name' => 'civicrm_product',
'entity' => 'Product',
'bao' => 'CRM_Contribute_BAO_Product',
'title' => ts('Widget ID'),
'description' => ts('Contribution Id'),
'required' => TRUE,
+ 'where' => 'civicrm_contribution_widget.id',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution Page'),
'description' => ts('The Contribution Page which triggered this contribution'),
+ 'where' => 'civicrm_contribution_widget.contribution_page_id',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_contribution_widget.is_active',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'description' => ts('Widget title.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_widget.title',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'description' => ts('URL to Widget logo'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_widget.url_logo',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'description' => ts('Button title.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_widget.button_title',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Description'),
'description' => ts('About description.'),
+ 'where' => 'civicrm_contribution_widget.about',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'description' => ts('URL to Homepage.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_contribution_widget.url_homepage',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Title Color'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_title',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Button Colour'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_button',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Bar Color'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_bar',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Main Text Color'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_main_text',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Main Colour'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_main',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Backgroup Color'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_main_bg',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Other Backgroun Colour'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_bg',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('About Link Colour'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_about_link',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
'title' => ts('Homepage Link Colour'),
'maxlength' => 10,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_contribution_widget.color_homepage_link',
'table_name' => 'civicrm_contribution_widget',
'entity' => 'Widget',
'bao' => 'CRM_Contribute_BAO_Widget',
$this->_premiumID = $dao->id;
$this->_productDAO = $dao;
}
- $dao->free();
}
/**
$contributionContactIds["{$result->contact_id}-{$result->contribution_id}"] = $result->contribution_id;
}
}
- $result->free();
$form->assign('totalSelectedContributions', $form->get('rowCount'));
}
// We want oldest first, just among the most recent contributions
$rows = array_reverse($rows);
- foreach ($rows as $index => $row) {
+ foreach ($rows as $index => &$row) {
// This is required for tpl logic. We should move away from hard-code this to adding an array of actions to the row
// which the tpl can iterate through - this should allow us to cope with competing attempts to add new buttons
// and allow extensions to assign new ones through the pageRun hook
- $row[0]['contribution_status_name'] = CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_Contribution', 'contribution_status_id', $row['contribution_status_id']);;
+ if ('Pending' === CRM_Core_PseudoConstant::getName('CRM_Contribute_BAO_Contribution', 'contribution_status_id', $row['contribution_status_id'])) {
+ $row['buttons']['pay'] = [
+ 'class' => 'button',
+ 'label' => ts('Pay Now'),
+ 'url' => CRM_Utils_System::url('civicrm/contribute/transact', [
+ 'reset' => 1,
+ 'id' => CRM_Invoicing_Utils::getDefaultPaymentPage(),
+ 'ccid' => $row['contribution_id'],
+ 'cs' => $this->getUserChecksum(),
+ 'cid' => $row['contact_id'],
+ ])
+ ];
+ }
}
$this->assign('contribute_rows', $rows);
}
}
+ /**
+ * Should invoice links be displayed on the template.
+ *
+ * @todo This should be moved to a hook-like structure on the invoicing class
+ * (currently CRM_Utils_Invoicing) with a view to possible removal from core.
+ */
+ public function isIncludeInvoiceLinks() {
+ if (!CRM_Invoicing_Utils::isInvoicingEnabled()) {
+ return FALSE;
+ }
+ $dashboardOptions = CRM_Core_BAO_Setting::valueOptions(CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME,
+ 'user_dashboard_options'
+ );
+ return $dashboardOptions['Invoices / Credit Notes'];
+ }
+
/**
* the main function that is called when the page
* loads, it decides the which action has to be taken for the page.
*/
public function run() {
- $this->assign('invoicing', CRM_Invoicing_Utils::isInvoicingEnabled());
- $this->assign('defaultInvoicePage', CRM_Invoicing_Utils::getDefaultPaymentPage());
+ $this->assign('isIncludeInvoiceLinks', $this->isIncludeInvoiceLinks());
parent::preProcess();
$this->listContribution();
}
}
break;
- case 'Autocomplete-Select':
- if ($customField->data_type == 'ContactReference') {
- if (is_numeric($value)) {
- $defaults[$elementName . '_id'] = $value;
- $defaults[$elementName] = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $value, 'sort_name');
- }
- }
- else {
- $defaults[$elementName] = $value;
- }
- break;
-
default:
$defaults[$elementName] = $value;
}
* @return array
*/
public static function setValues(&$params) {
+ // For legacy reasons, accept this param in either format
+ if (empty($params['entityID']) && !empty($params['entity_id'])) {
+ $params['entityID'] = $params['entity_id'];
+ }
- if (!isset($params['entityID']) ||
- CRM_Utils_Type::escape($params['entityID'], 'Integer', FALSE) === NULL
- ) {
- return CRM_Core_Error::createAPIError(ts('entityID needs to be set and of type Integer'));
+ if (!isset($params['entityID']) || !CRM_Utils_Type::validate($params['entityID'], 'Integer', FALSE)) {
+ return CRM_Core_Error::createAPIError(ts('entity_id needs to be set and of type Integer'));
}
// first collect all the id/value pairs. The format is:
// custom_X => value or custom_X_VALUEID => value (for multiple values), VALUEID == -1, -2 etc for new insertions
- $values = [];
$fieldValues = [];
foreach ($params as $n => $v) {
if ($customFieldInfo = CRM_Core_BAO_CustomField::getKeyID($n, TRUE)) {
"\n }\n}\n" => "\n }\n\n}\n",
'=> true,' => '=> TRUE,',
'=> false,' => '=> FALSE,',
+ 'static ::' => 'static::'
];
$contents = str_replace(array_keys($replacements), array_values($replacements), $contents);
$contents = preg_replace('#(\s*)\\/\\*\\*#', "\n\$1/**", $contents);
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Action Schedule ID'),
'required' => TRUE,
+ 'where' => 'civicrm_action_log.id',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Action Schedule Contact ID'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_action_log.contact_id',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'title' => ts('Entity ID'),
'description' => ts('FK to id of the entity that the action was performed on. Pseudo - FK.'),
'required' => TRUE,
+ 'where' => 'civicrm_action_log.entity_id',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'description' => ts('name of the entity table for the above id, e.g. civicrm_activity, civicrm_participant'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_log.entity_table',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'title' => ts('Schedule'),
'description' => ts('FK to the action schedule that this action originated from.'),
'required' => TRUE,
+ 'where' => 'civicrm_action_log.action_schedule_id',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Action Date And Time'),
'description' => ts('date time that the action was performed on.'),
+ 'where' => 'civicrm_action_log.action_date_time',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Error?'),
'description' => ts('Was there any error sending the reminder?'),
+ 'where' => 'civicrm_action_log.is_error',
'default' => '0',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Message'),
'description' => ts('Description / text in case there was an error encountered.'),
+ 'where' => 'civicrm_action_log.message',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Repetition Number'),
'description' => ts('Keeps track of the sequence number of this repetition.'),
+ 'where' => 'civicrm_action_log.repetition_number',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'bao' => 'CRM_Core_BAO_ActionLog',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Reference Date'),
'description' => ts('Stores the date from the entity which triggered this reminder action (e.g. membership.end_date for most membership renewal reminders)'),
+ 'where' => 'civicrm_action_log.reference_date',
'default' => 'NULL',
'table_name' => 'civicrm_action_log',
'entity' => 'ActionLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Action Mapping ID'),
'required' => TRUE,
+ 'where' => 'civicrm_action_mapping.id',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity for which the reminder is created'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity value'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_value',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity value label'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_value_label',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity status'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_status',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity status label'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_status_label',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity date'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_date_start',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity date'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_date_end',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'description' => ts('Entity recipient'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_mapping.entity_recipient',
'table_name' => 'civicrm_action_mapping',
'entity' => 'ActionMapping',
'bao' => 'CRM_Core_DAO_ActionMapping',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Action Schedule ID'),
'required' => TRUE,
+ 'where' => 'civicrm_action_schedule.id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Name of the action(reminder)'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.name',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Title of the action(reminder)'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.title',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Recipient'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.recipient',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Limit To'),
'description' => ts('Is this the recipient criteria limited to OR in addition to?'),
+ 'where' => 'civicrm_action_schedule.limit_to',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Entity value'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.entity_value',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Entity status'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.entity_status',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Start Action Offset'),
'description' => ts('Reminder Interval.'),
+ 'where' => 'civicrm_action_schedule.start_action_offset',
'default' => '0',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Time units for reminder.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_action_schedule.start_action_unit',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Reminder Action'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.start_action_condition',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Entity date'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.start_action_date',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'name' => 'is_repeat',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Repeat?'),
+ 'where' => 'civicrm_action_schedule.is_repeat',
'default' => '0',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Time units for repetition of reminder.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_action_schedule.repetition_frequency_unit',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Repetition Frequency Interval'),
'description' => ts('Time interval for repeating the reminder.'),
+ 'where' => 'civicrm_action_schedule.repetition_frequency_interval',
'default' => '0',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Time units till repetition of reminder.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_action_schedule.end_frequency_unit',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('End Frequency Interval'),
'description' => ts('Time interval till repeating the reminder.'),
+ 'where' => 'civicrm_action_schedule.end_frequency_interval',
'default' => '0',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Reminder Action till repeating the reminder.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_action_schedule.end_action',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Entity end date'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.end_date',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Schedule is Active?'),
'description' => ts('Is this option active?'),
+ 'where' => 'civicrm_action_schedule.is_active',
'default' => '1',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Contact IDs to which reminder should be sent.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.recipient_manual',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('listing based on recipient field.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.recipient_listing',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Reminder Text'),
'description' => ts('Body of the mailing in text format.'),
+ 'where' => 'civicrm_action_schedule.body_text',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Reminder HTML'),
'description' => ts('Body of the mailing in html format.'),
+ 'where' => 'civicrm_action_schedule.body_html',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('SMS Reminder Text'),
'description' => ts('Content of the SMS text.'),
+ 'where' => 'civicrm_action_schedule.sms_body_text',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Subject of mailing'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.subject',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Record Activity for Reminder?'),
'description' => ts('Record Activity for this reminder?'),
+ 'where' => 'civicrm_action_schedule.record_activity',
'default' => 'NULL',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'description' => ts('Name/ID of the mapping to use on this table'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.mapping_id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Reminder Group'),
'description' => ts('FK to Group'),
+ 'where' => 'civicrm_action_schedule.group_id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Reminder Template'),
'description' => ts('FK to the message template.'),
+ 'where' => 'civicrm_action_schedule.msg_template_id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('SMS Reminder Template'),
'description' => ts('FK to the message template.'),
+ 'where' => 'civicrm_action_schedule.sms_template_id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Fixed Date for Reminder'),
'description' => ts('Date on which the reminder be sent.'),
+ 'where' => 'civicrm_action_schedule.absolute_date',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Name in "from" field'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.from_name',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Email address in "from" field'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.from_email',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Send the message as email or sms or both.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.mode',
'default' => 'Email',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'name' => 'sms_provider_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('SMS Provider'),
+ 'where' => 'civicrm_action_schedule.sms_provider_id',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Used for repeating entity'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_action_schedule.used_for',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Used for multilingual installation'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_action_schedule.filter_contact_language',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'description' => ts('Used for multilingual installation'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_action_schedule.communication_language',
'table_name' => 'civicrm_action_schedule',
'entity' => 'ActionSchedule',
'bao' => 'CRM_Core_BAO_ActionSchedule',
'title' => ts('Address ID'),
'description' => ts('Unique Address ID'),
'required' => TRUE,
+ 'where' => 'civicrm_address.id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contact ID'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_address.contact_id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Address Location Type'),
'description' => ts('Which Location does this address belong to.'),
+ 'where' => 'civicrm_address.location_type_id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Address Primary?'),
'description' => ts('Is this the primary address.'),
+ 'where' => 'civicrm_address.is_primary',
'default' => '0',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Billing Address'),
'description' => ts('Is this the billing address.'),
+ 'where' => 'civicrm_address.is_billing',
'default' => '0',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Street Number'),
'description' => ts('Numeric portion of address number on the street, e.g. For 112A Main St, the street_number = 112.'),
- 'export' => TRUE,
'where' => 'civicrm_address.street_number',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
- 'export' => TRUE,
'where' => 'civicrm_address.street_number_suffix',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('Directional prefix, e.g. SE Main St, SE is the prefix.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_address.street_number_predirectional',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('Actual street name, excluding St, Dr, Rd, Ave, e.g. For 112 Main St, the street_name = Main.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
- 'export' => TRUE,
'where' => 'civicrm_address.street_name',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('St, Rd, Dr, etc.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_address.street_type',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('Directional prefix, e.g. Main St S, S is the suffix.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_address.street_number_postdirectional',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('Secondary unit designator, e.g. Apt 3 or Unit # 14, or Bldg 1200'),
'maxlength' => 16,
'size' => CRM_Utils_Type::TWELVE,
- 'export' => TRUE,
'where' => 'civicrm_address.street_unit',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('County'),
'description' => ts('Which County does this address belong to.'),
+ 'where' => 'civicrm_address.county_id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('State/Province'),
'description' => ts('Which State_Province does this address belong to.'),
+ 'where' => 'civicrm_address.state_province_id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('USPS Bulk mailing code.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_address.usps_adc',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Country'),
'description' => ts('Which Country does this address belong to.'),
+ 'where' => 'civicrm_address.country_id',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'import' => TRUE,
'where' => 'civicrm_address.geo_code_1',
'headerPattern' => '/geo/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'import' => TRUE,
'where' => 'civicrm_address.geo_code_2',
'headerPattern' => '/geo/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is manually geocoded'),
'description' => ts('Is this a manually entered geo code'),
+ 'where' => 'civicrm_address.manual_geo_code',
'default' => '0',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'description' => ts('Timezone expressed as a UTC offset - e.g. United States CST would be written as "UTC-6".'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_address.timezone',
'table_name' => 'civicrm_address',
'entity' => 'Address',
'bao' => 'CRM_Core_BAO_Address',
'description' => ts('FK to Address ID'),
'import' => TRUE,
'where' => 'civicrm_address.master_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_address',
'entity' => 'Address',
'title' => ts('Address Format ID'),
'description' => ts('Address Format Id'),
'required' => TRUE,
+ 'where' => 'civicrm_address_format.id',
'table_name' => 'civicrm_address_format',
'entity' => 'AddressFormat',
'bao' => 'CRM_Core_DAO_AddressFormat',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Address Format'),
'description' => ts('The format of an address'),
+ 'where' => 'civicrm_address_format.format',
'table_name' => 'civicrm_address_format',
'entity' => 'AddressFormat',
'bao' => 'CRM_Core_DAO_AddressFormat',
'name' => 'id',
'type' => CRM_Utils_Type::T_INT,
'required' => TRUE,
+ 'where' => 'civicrm_cache.id',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'required' => TRUE,
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_cache.group_name',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'description' => ts('Unique path name for cache element'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_cache.path',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Data'),
'description' => ts('data associated with this path'),
+ 'where' => 'civicrm_cache.data',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'name' => 'component_id',
'type' => CRM_Utils_Type::T_INT,
'description' => ts('Component that this menu item belongs to'),
+ 'where' => 'civicrm_cache.component_id',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'bao' => 'CRM_Core_BAO_Cache',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Created Date'),
'description' => ts('When was the cache item created'),
+ 'where' => 'civicrm_cache.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'title' => ts('Expired Date'),
'description' => ts('When should the cache item expire'),
'required' => FALSE,
+ 'where' => 'civicrm_cache.expired_date',
'default' => 'NULL',
'table_name' => 'civicrm_cache',
'entity' => 'Cache',
'title' => ts('Component ID'),
'description' => ts('Component ID'),
'required' => TRUE,
+ 'where' => 'civicrm_component.id',
'table_name' => 'civicrm_component',
'entity' => 'Component',
'bao' => 'CRM_Core_DAO_Component',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_component.name',
'table_name' => 'civicrm_component',
'entity' => 'Component',
'bao' => 'CRM_Core_DAO_Component',
'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_component.namespace',
'table_name' => 'civicrm_component',
'entity' => 'Component',
'bao' => 'CRM_Core_DAO_Component',
'title' => ts('Country ID'),
'description' => ts('Country Id'),
'required' => TRUE,
+ 'where' => 'civicrm_country.id',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'description' => ts('ISO Code'),
'maxlength' => 2,
'size' => CRM_Utils_Type::TWO,
+ 'where' => 'civicrm_country.iso_code',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'description' => ts('National prefix to be used when dialing TO this country.'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_country.country_code',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Address Format'),
'description' => ts('Foreign key to civicrm_address_format.id.'),
+ 'where' => 'civicrm_country.address_format_id',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'description' => ts('International direct dialing prefix from within the country TO another country'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_country.idd_prefix',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'description' => ts('Access prefix to call within a country to a different area'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_country.ndd_prefix',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'title' => ts('World Region ID'),
'description' => ts('Foreign key to civicrm_worldregion.id.'),
'required' => TRUE,
+ 'where' => 'civicrm_country.region_id',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'bao' => 'CRM_Core_BAO_Country',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Abbreviate Province?'),
'description' => ts('Should state/province be displayed as abbreviation for contacts from this country?'),
+ 'where' => 'civicrm_country.is_province_abbreviated',
'default' => '0',
'table_name' => 'civicrm_country',
'entity' => 'Country',
'title' => ts('County ID'),
'description' => ts('County ID'),
'required' => TRUE,
+ 'where' => 'civicrm_county.id',
'table_name' => 'civicrm_county',
'entity' => 'County',
'bao' => 'CRM_Core_DAO_County',
'description' => ts('2-4 Character Abbreviation of County'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_county.abbreviation',
'table_name' => 'civicrm_county',
'entity' => 'County',
'bao' => 'CRM_Core_DAO_County',
'title' => ts('State'),
'description' => ts('ID of State/Province that County belongs'),
'required' => TRUE,
+ 'where' => 'civicrm_county.state_province_id',
'table_name' => 'civicrm_county',
'entity' => 'County',
'bao' => 'CRM_Core_DAO_County',
'title' => ts('Custom Field ID'),
'description' => ts('Unique Custom Field ID'),
'required' => TRUE,
+ 'where' => 'civicrm_custom_field.id',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'title' => ts('Custom Group'),
'description' => ts('FK to civicrm_custom_group.'),
'required' => TRUE,
+ 'where' => 'civicrm_custom_field.custom_group_id',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Variable name/programmatic handle for this group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_custom_field.name',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.label',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'required' => TRUE,
'maxlength' => 16,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_custom_field.data_type',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'required' => TRUE,
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_custom_field.html_type',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Use form_options.is_default for field_types which use options.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.default_value',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Custom Field Is Required?'),
'description' => ts('Is a value required for this property.'),
+ 'where' => 'civicrm_custom_field.is_required',
'default' => '0',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Allow Searching on Field?'),
'description' => ts('Is this property searchable.'),
+ 'where' => 'civicrm_custom_field.is_searchable',
'default' => '0',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Search as a Range'),
'description' => ts('Is this property range searchable.'),
+ 'where' => 'civicrm_custom_field.is_search_range',
'default' => '0',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'title' => ts('Order'),
'description' => ts('Controls field display order within an extended property group.'),
'required' => TRUE,
+ 'where' => 'civicrm_custom_field.weight',
'default' => '1',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Custom Field Pre Text'),
'description' => ts('Description and/or help text to display before this field.'),
+ 'where' => 'civicrm_custom_field.help_pre',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Custom Field Post Text'),
'description' => ts('Description and/or help text to display after this field.'),
+ 'where' => 'civicrm_custom_field.help_post',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Optional format instructions for specific field types, like date types.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_custom_field.mask',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Store collection of type-appropriate attributes, e.g. textarea needs rows/cols attributes'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.attributes',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Optional scripting attributes for field.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.javascript',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Custom Field Is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_custom_field.is_active',
'default' => '1',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Field is Viewable'),
'description' => ts('Is this property set by PHP Code? A code field is viewable but not editable'),
+ 'where' => 'civicrm_custom_field.is_view',
'default' => '0',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Options Per Line'),
'description' => ts('number of options per line for checkbox and radio'),
+ 'where' => 'civicrm_custom_field.options_per_line',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Length'),
'description' => ts('field length if alphanumeric'),
+ 'where' => 'civicrm_custom_field.text_length',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Start Date'),
'description' => ts('Date may be up to start_date_years years prior to the current date.'),
+ 'where' => 'civicrm_custom_field.start_date_years',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field End Date'),
'description' => ts('Date may be up to end_date_years years after the current date.'),
+ 'where' => 'civicrm_custom_field.end_date_years',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('date format for custom date'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_custom_field.date_format',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Time Format'),
'description' => ts('time format for custom date'),
+ 'where' => 'civicrm_custom_field.time_format',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Note Columns'),
'description' => ts(' Number of columns in Note Field '),
+ 'where' => 'civicrm_custom_field.note_columns',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Note Rows'),
'description' => ts(' Number of rows in Note Field '),
+ 'where' => 'civicrm_custom_field.note_rows',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Name of the column that holds the values for this field.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.column_name',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Field Option Group'),
'description' => ts('For elements with options, the option group id that is used'),
+ 'where' => 'civicrm_custom_field.option_group_id',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'description' => ts('Stores Contact Get API params contact reference custom fields. May be used for other filters in the future.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_field.filter',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'bao' => 'CRM_Core_BAO_CustomField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Field Display'),
'description' => ts('Should the multi-record custom field values be displayed in tab table listing'),
+ 'where' => 'civicrm_custom_field.in_selector',
'default' => '0',
'table_name' => 'civicrm_custom_field',
'entity' => 'CustomField',
'title' => ts('Custom Group ID'),
'description' => ts('Unique Custom Group ID'),
'required' => TRUE,
+ 'where' => 'civicrm_custom_group.id',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'description' => ts('Variable name/programmatic handle for this group.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_custom_group.name',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_custom_group.title',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'description' => ts('Type of object this group extends (can add other options later e.g. contact_address, etc.).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_group.extends',
'default' => 'Contact',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Custom Group Subtype List'),
'description' => ts('FK to civicrm_option_value.id (for option group custom_data_type.)'),
+ 'where' => 'civicrm_custom_group.extends_entity_column_id',
'default' => 'NULL',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'description' => ts('linking custom group for dynamic object'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_group.extends_entity_column_value',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'description' => ts('Visual relationship between this form and its parent.'),
'maxlength' => 15,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_custom_group.style',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Collapse Custom Group?'),
'description' => ts('Will this group be in collapsed or expanded mode on initial display ?'),
+ 'where' => 'civicrm_custom_group.collapse_display',
'default' => '0',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'description' => ts('Description and/or help text to display before fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_custom_group.help_pre',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'description' => ts('Description and/or help text to display after fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_custom_group.help_post',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'title' => ts('Order'),
'description' => ts('Controls display order when multiple extended property groups are setup for the same class.'),
'required' => TRUE,
+ 'where' => 'civicrm_custom_group.weight',
'default' => '1',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Custom Group Is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_custom_group.is_active',
'default' => '1',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'description' => ts('Name of the table that holds the values for this group.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_custom_group.table_name',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Supports Multiple Records'),
'description' => ts('Does this group hold multiple values?'),
+ 'where' => 'civicrm_custom_group.is_multiple',
'default' => '0',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Minimum Multiple Records'),
'description' => ts('minimum number of multiple records (typically 0?)'),
+ 'where' => 'civicrm_custom_group.min_multiple',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum Multiple Records'),
'description' => ts('maximum number of multiple records, if 0 - no max'),
+ 'where' => 'civicrm_custom_group.max_multiple',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Collapse Group Display'),
'description' => ts('Will this group be in collapsed or expanded mode on advanced search display ?'),
+ 'where' => 'civicrm_custom_group.collapse_adv_display',
'default' => '0',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Custom Group Created By'),
'description' => ts('FK to civicrm_contact, who created this custom group'),
+ 'where' => 'civicrm_custom_group.created_id',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Custom Group Created Date'),
'description' => ts('Date and time this custom group was created.'),
+ 'where' => 'civicrm_custom_group.created_date',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'bao' => 'CRM_Core_BAO_CustomGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Reserved Group?'),
'description' => ts('Is this a reserved Custom Group?'),
+ 'where' => 'civicrm_custom_group.is_reserved',
'default' => '0',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Custom Group Is Public?'),
'description' => ts('Is this property public?'),
+ 'where' => 'civicrm_custom_group.is_public',
'default' => '1',
'table_name' => 'civicrm_custom_group',
'entity' => 'CustomGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('DashletID'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard.id',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'title' => ts('Dashlet Domain'),
'description' => ts('Domain for dashboard'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard.domain_id',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('Internal name of dashlet.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_dashboard.name',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('dashlet title'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_dashboard.label',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('url in case of external dashlet'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_dashboard.url',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('Permission for the dashlet'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_dashboard.permission',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('Permission Operator'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_dashboard.permission_operator',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'description' => ts('fullscreen url for dashlet'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_dashboard.fullscreen_url',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'bao' => 'CRM_Core_BAO_Dashboard',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Dashlet Active?'),
'description' => ts('Is this dashlet active?'),
+ 'where' => 'civicrm_dashboard.is_active',
'default' => '0',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Dashlet Reserved?'),
'description' => ts('Is this dashlet reserved?'),
+ 'where' => 'civicrm_dashboard.is_reserved',
'default' => '0',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'title' => ts('Cache Minutes'),
'description' => ts('Number of minutes to cache dashlet content in browser localStorage.'),
'required' => TRUE,
+ 'where' => 'civicrm_dashboard.cache_minutes',
'default' => '60',
'table_name' => 'civicrm_dashboard',
'entity' => 'Dashboard',
'title' => ts('Discount ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_discount.id',
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'description' => ts('physical tablename for entity being joined to discount, e.g. civicrm_event'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_discount.entity_table',
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'title' => ts('Entity ID'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_discount.entity_id',
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'title' => ts('Discount Name'),
'description' => ts('FK to civicrm_price_set'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_discount.price_set_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Discount Start Date'),
'description' => ts('Date when discount starts.'),
+ 'where' => 'civicrm_discount.start_date',
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Discount End Date'),
'description' => ts('Date when discount ends.'),
+ 'where' => 'civicrm_discount.end_date',
'table_name' => 'civicrm_discount',
'entity' => 'Discount',
'bao' => 'CRM_Core_BAO_Discount',
'title' => ts('Domain ID'),
'description' => ts('Domain ID'),
'required' => TRUE,
+ 'where' => 'civicrm_domain.id',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'description' => ts('Name of Domain / Organization'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_domain.name',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'description' => ts('Description of Domain.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_domain.description',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Domain Configuration'),
'description' => ts('Backend configuration.'),
+ 'where' => 'civicrm_domain.config_backend',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'description' => ts('The civicrm version this instance is running'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_domain.version',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Domain Contact'),
'description' => ts('FK to Contact ID. This is specifically not an FK to avoid circular constraints'),
+ 'where' => 'civicrm_domain.contact_id',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Supported Languages'),
'description' => ts('list of locales supported by the current db state (NULL for single-lang install)'),
+ 'where' => 'civicrm_domain.locales',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Language Customizations'),
'description' => ts('Locale specific string overrides'),
+ 'where' => 'civicrm_domain.locale_custom_strings',
'table_name' => 'civicrm_domain',
'entity' => 'Domain',
'bao' => 'CRM_Core_BAO_Domain',
'title' => ts('Email ID'),
'description' => ts('Unique Email ID'),
'required' => TRUE,
+ 'where' => 'civicrm_email.id',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'bao' => 'CRM_Core_BAO_Email',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Email Contact'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_email.contact_id',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'bao' => 'CRM_Core_BAO_Email',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Email Location Type'),
'description' => ts('Which Location does this email belong to.'),
+ 'where' => 'civicrm_email.location_type_id',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'bao' => 'CRM_Core_BAO_Email',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Primary email'),
'description' => ts('Is this the primary?'),
+ 'where' => 'civicrm_email.is_primary',
'default' => '0',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Billing Email?'),
'description' => ts('Is this the billing?'),
+ 'where' => 'civicrm_email.is_billing',
'default' => '0',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'title' => ts('On Hold'),
'description' => ts('Implicit FK to civicrm_option_value where option_group = email_on_hold.'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_email.on_hold',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'title' => ts('Use for Bulk Mail'),
'description' => ts('Is this address for bulk mail ?'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_email.is_bulkmail',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Hold Date'),
'description' => ts('When the address went on bounce hold'),
+ 'where' => 'civicrm_email.hold_date',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'bao' => 'CRM_Core_BAO_Email',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Reset Date'),
'description' => ts('When the address bounce status was last reset'),
+ 'where' => 'civicrm_email.reset_date',
'table_name' => 'civicrm_email',
'entity' => 'Email',
'bao' => 'CRM_Core_BAO_Email',
'description' => ts('Text formatted signature for the email.'),
'import' => TRUE,
'where' => 'civicrm_email.signature_text',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_email',
'description' => ts('HTML formatted signature for the email.'),
'import' => TRUE,
'where' => 'civicrm_email.signature_html',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_email',
'title' => ts('Entity File ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'description' => ts('physical tablename for entity being joined to file, e.g. civicrm_contact'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_entity_file.entity_table',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'title' => ts('Entity ID'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.entity_id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'title' => ts('File'),
'description' => ts('FK to civicrm_file'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_file.file_id',
'table_name' => 'civicrm_entity_file',
'entity' => 'EntityFile',
'bao' => 'CRM_Core_DAO_EntityFile',
'title' => ts('Entity Tag ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_tag.id',
'table_name' => 'civicrm_entity_tag',
'entity' => 'EntityTag',
'bao' => 'CRM_Core_BAO_EntityTag',
'description' => ts('physical tablename for entity being joined to file, e.g. civicrm_contact'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_entity_tag.entity_table',
'table_name' => 'civicrm_entity_tag',
'entity' => 'EntityTag',
'bao' => 'CRM_Core_BAO_EntityTag',
'title' => ts('Entity ID'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_tag.entity_id',
'table_name' => 'civicrm_entity_tag',
'entity' => 'EntityTag',
'bao' => 'CRM_Core_BAO_EntityTag',
'title' => ts('Tag'),
'description' => ts('FK to civicrm_tag'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_tag.tag_id',
'table_name' => 'civicrm_entity_tag',
'entity' => 'EntityTag',
'bao' => 'CRM_Core_BAO_EntityTag',
'title' => ts('Extension ID'),
'description' => ts('Local Extension ID'),
'required' => TRUE,
+ 'where' => 'civicrm_extension.id',
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'bao' => 'CRM_Core_BAO_Extension',
'required' => TRUE,
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_extension.type',
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'bao' => 'CRM_Core_BAO_Extension',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_extension.full_name',
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'bao' => 'CRM_Core_BAO_Extension',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_extension.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_extension.label',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_extension.file',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'where' => 'civicrm_extension.schema_version',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Extension is Active?'),
'description' => ts('Is this extension active?'),
+ 'where' => 'civicrm_extension.is_active',
'default' => '1',
'table_name' => 'civicrm_extension',
'entity' => 'Extension',
'title' => ts('File ID'),
'description' => ts('Unique ID'),
'required' => TRUE,
+ 'where' => 'civicrm_file.id',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('File Type'),
'description' => ts('Type of file (e.g. Transcript, Income Tax Return, etc). FK to civicrm_option_value.'),
+ 'where' => 'civicrm_file.file_type_id',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'description' => ts('mime type of the document'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_file.mime_type',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'description' => ts('uri of the file on disk'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_file.uri',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'type' => CRM_Utils_Type::T_MEDIUMBLOB,
'title' => ts('File Contents'),
'description' => ts('contents of the document'),
+ 'where' => 'civicrm_file.document',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'description' => ts('Additional descriptive text regarding this attachment (optional).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_file.description',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('File Upload Date'),
'description' => ts('Date and time that this attachment was uploaded or written to server.'),
+ 'where' => 'civicrm_file.upload_date',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Created By Contact ID'),
'description' => ts('FK to civicrm_contact, who uploaded this file'),
+ 'where' => 'civicrm_file.created_id',
'table_name' => 'civicrm_file',
'entity' => 'File',
'bao' => 'CRM_Core_BAO_File',
'title' => ts('Instant Messenger ID'),
'description' => ts('Unique IM ID'),
'required' => TRUE,
+ 'where' => 'civicrm_im.id',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'bao' => 'CRM_Core_BAO_IM',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('IM Contact'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_im.contact_id',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'bao' => 'CRM_Core_BAO_IM',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('IM Location Type'),
'description' => ts('Which Location does this email belong to.'),
+ 'where' => 'civicrm_im.location_type_id',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'bao' => 'CRM_Core_BAO_IM',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('IM Provider'),
'description' => ts('Which IM Provider does this screen name belong to.'),
+ 'where' => 'civicrm_im.provider_id',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'bao' => 'CRM_Core_BAO_IM',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is IM Primary?'),
'description' => ts('Is this the primary IM for this contact and location.'),
+ 'where' => 'civicrm_im.is_primary',
'default' => '0',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is IM Billing?'),
'description' => ts('Is this the billing?'),
+ 'where' => 'civicrm_im.is_billing',
'default' => '0',
'table_name' => 'civicrm_im',
'entity' => 'IM',
'title' => ts('Job ID'),
'description' => ts('Job Id'),
'required' => TRUE,
+ 'where' => 'civicrm_job.id',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'title' => ts('Job Domain'),
'description' => ts('Which Domain is this scheduled job for'),
'required' => TRUE,
+ 'where' => 'civicrm_job.domain_id',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'description' => ts('Scheduled job run frequency.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_job.run_frequency',
'default' => 'Daily',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'title' => ts('Last Run'),
'description' => ts('When was this cron entry last run'),
'required' => FALSE,
+ 'where' => 'civicrm_job.last_run',
'default' => 'NULL',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'title' => ts('Scheduled Run Date'),
'description' => ts('When is this cron entry scheduled to run'),
'required' => FALSE,
+ 'where' => 'civicrm_job.scheduled_run_date',
'default' => 'NULL',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'description' => ts('Title of the job'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job.name',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'description' => ts('Description of the job'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job.description',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'description' => ts('Entity of the job api call'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job.api_entity',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'description' => ts('Action of the job api call'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job.api_action',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'description' => ts('List of parameters to the command.'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_job.parameters',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Job Is Active?'),
'description' => ts('Is this job active?'),
+ 'where' => 'civicrm_job.is_active',
'table_name' => 'civicrm_job',
'entity' => 'Job',
'bao' => 'CRM_Core_BAO_Job',
'title' => ts('Job Log ID'),
'description' => ts('Job log entry Id'),
'required' => TRUE,
+ 'where' => 'civicrm_job_log.id',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'title' => ts('Domain ID'),
'description' => ts('Which Domain is this scheduled job for'),
'required' => TRUE,
+ 'where' => 'civicrm_job_log.domain_id',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Timestamp'),
'description' => ts('Log entry date'),
+ 'where' => 'civicrm_job_log.run_time',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Job ID'),
'description' => ts('Pointer to job id - not a FK though, just for logging purposes'),
+ 'where' => 'civicrm_job_log.job_id',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'description' => ts('Title of the job'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job_log.name',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'description' => ts('Full path to file containing job script'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job_log.command',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'description' => ts('Title line of log entry'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_job_log.description',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Extended Data'),
'description' => ts('Potential extended data for specific job run (e.g. tracebacks).'),
+ 'where' => 'civicrm_job_log.data',
'table_name' => 'civicrm_job_log',
'entity' => 'JobLog',
'bao' => 'CRM_Core_DAO_JobLog',
'title' => ts('Location Block ID'),
'description' => ts('Unique ID'),
'required' => TRUE,
+ 'where' => 'civicrm_loc_block.id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'address_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block Address'),
+ 'where' => 'civicrm_loc_block.address_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'email_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block Email'),
+ 'where' => 'civicrm_loc_block.email_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'phone_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block Phone'),
+ 'where' => 'civicrm_loc_block.phone_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'im_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block IM'),
+ 'where' => 'civicrm_loc_block.im_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'address_2_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block IM 2'),
+ 'where' => 'civicrm_loc_block.address_2_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'email_2_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Email 2'),
+ 'where' => 'civicrm_loc_block.email_2_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'phone_2_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone 2'),
+ 'where' => 'civicrm_loc_block.phone_2_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'name' => 'im_2_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Instant Messenger 2'),
+ 'where' => 'civicrm_loc_block.im_2_id',
'table_name' => 'civicrm_loc_block',
'entity' => 'LocBlock',
'bao' => 'CRM_Core_DAO_LocBlock',
'title' => ts('Location Type ID'),
'description' => ts('Location Type ID'),
'required' => TRUE,
+ 'where' => 'civicrm_location_type.id',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'description' => ts('Location Type Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_location_type.name',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'description' => ts('Location Type Display Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_location_type.display_name',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'description' => ts('vCard Location Type Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_location_type.vcard_name',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'description' => ts('Location Type Description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_location_type.description',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Location Type is Reserved?'),
'description' => ts('Is this location type a predefined system location?'),
+ 'where' => 'civicrm_location_type.is_reserved',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Location Type is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_location_type.is_active',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Default Location Type?'),
'description' => ts('Is this location type the default?'),
+ 'where' => 'civicrm_location_type.is_default',
'table_name' => 'civicrm_location_type',
'entity' => 'LocationType',
'bao' => 'CRM_Core_BAO_LocationType',
'title' => ts('Log ID'),
'description' => ts('Log ID'),
'required' => TRUE,
+ 'where' => 'civicrm_log.id',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_log.entity_table',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'title' => ts('Entity ID '),
'description' => ts('Foreign key to the referenced item.'),
'required' => TRUE,
+ 'where' => 'civicrm_log.entity_id',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Data'),
'description' => ts('Updates does to this object if any.'),
+ 'where' => 'civicrm_log.data',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Modified By'),
'description' => ts('FK to Contact ID of person under whose credentials this data modification was made.'),
+ 'where' => 'civicrm_log.modified_id',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Modified Date'),
'description' => ts('When was the referenced entity created or modified or deleted.'),
+ 'where' => 'civicrm_log.modified_date',
'table_name' => 'civicrm_log',
'entity' => 'Log',
'bao' => 'CRM_Core_BAO_Log',
'title' => ts('Mail Settings ID'),
'description' => ts('primary key'),
'required' => TRUE,
+ 'where' => 'civicrm_mail_settings.id',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'title' => ts('Mail Settings Domain'),
'description' => ts('Which Domain is this match entry for'),
'required' => TRUE,
+ 'where' => 'civicrm_mail_settings.domain_id',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('name of this group of settings'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.name',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Default Mail Settings?'),
'description' => ts('whether this is the default set of settings for this domain'),
+ 'where' => 'civicrm_mail_settings.is_default',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('email address domain (the part after @)'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.domain',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('optional local part (like civimail+ for addresses like civimail+s.1.2@example.com)'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.localpart',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('contents of the Return-Path header'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.return_path',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('name of the protocol to use for polling (like IMAP, POP3 or Maildir)'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.protocol',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('server to use when polling'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.server',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mail Port'),
'description' => ts('port to use when polling'),
+ 'where' => 'civicrm_mail_settings.port',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('username to use when polling'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.username',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('password to use when polling'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.password',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Mail Account Uses SSL'),
'description' => ts('whether to use SSL or not'),
+ 'where' => 'civicrm_mail_settings.is_ssl',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('folder to poll from when using IMAP, path to poll from when using Maildir, etc.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.source',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'description' => ts('Name of status to use when creating email to activity.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mail_settings.activity_status',
'table_name' => 'civicrm_mail_settings',
'entity' => 'MailSettings',
'bao' => 'CRM_Core_BAO_MailSettings',
'title' => ts('Managed ID'),
'description' => ts('Surrogate Key'),
'required' => TRUE,
+ 'where' => 'civicrm_managed.id',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'required' => TRUE,
'maxlength' => 127,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_managed.module',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'description' => ts('Symbolic name used by the module to identify the object'),
'maxlength' => 127,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_managed.name',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_managed.entity_type',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'title' => ts('Entity ID'),
'description' => ts('Foreign key to the referenced item.'),
'required' => TRUE,
+ 'where' => 'civicrm_managed.entity_id',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'description' => ts('Policy on when to cleanup entity (always, never, unused)'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_managed.cleanup',
'table_name' => 'civicrm_managed',
'entity' => 'Managed',
'bao' => 'CRM_Core_DAO_Managed',
'title' => ts('Mapping ID'),
'description' => ts('Mapping ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mapping.id',
'table_name' => 'civicrm_mapping',
'entity' => 'Mapping',
'bao' => 'CRM_Core_BAO_Mapping',
'description' => ts('Name of Mapping'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mapping.name',
'table_name' => 'civicrm_mapping',
'entity' => 'Mapping',
'bao' => 'CRM_Core_BAO_Mapping',
'description' => ts('Description of Mapping.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mapping.description',
'table_name' => 'civicrm_mapping',
'entity' => 'Mapping',
'bao' => 'CRM_Core_BAO_Mapping',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mapping Type'),
'description' => ts('Mapping Type'),
+ 'where' => 'civicrm_mapping.mapping_type_id',
'table_name' => 'civicrm_mapping',
'entity' => 'Mapping',
'bao' => 'CRM_Core_BAO_Mapping',
'title' => ts('Mapping Field ID'),
'description' => ts('Mapping Field ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mapping_field.id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'title' => ts('Mapping ID'),
'description' => ts('Mapping to which this field belongs'),
'required' => TRUE,
+ 'where' => 'civicrm_mapping_field.mapping_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'description' => ts('Mapping field key'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mapping_field.name',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'description' => ts('Contact Type in mapping'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mapping_field.contact_type',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'title' => ts('Column Number'),
'description' => ts('Column number for mapping set'),
'required' => TRUE,
+ 'where' => 'civicrm_mapping_field.column_number',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location type ID'),
'description' => ts('Location type of this mapping, if required'),
+ 'where' => 'civicrm_mapping_field.location_type_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone type ID'),
'description' => ts('Which type of phone does this number belongs.'),
+ 'where' => 'civicrm_mapping_field.phone_type_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('IM provider ID'),
'description' => ts('Which type of IM Provider does this name belong.'),
+ 'where' => 'civicrm_mapping_field.im_provider_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Website type ID'),
'description' => ts('Which type of website does this site belong'),
+ 'where' => 'civicrm_mapping_field.website_type_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Relationship type ID'),
'description' => ts('Relationship type, if required'),
+ 'where' => 'civicrm_mapping_field.relationship_type_id',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'title' => ts('Relationship Direction'),
'maxlength' => 6,
'size' => CRM_Utils_Type::SIX,
+ 'where' => 'civicrm_mapping_field.relationship_direction',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'description' => ts('Used to group mapping_field records into related sets (e.g. for criteria sets in search builder
mappings).
'),
+ 'where' => 'civicrm_mapping_field.grouping',
'default' => '1',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'description' => ts('SQL WHERE operator for search-builder mapping fields (search criteria).'),
'maxlength' => 16,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_mapping_field.operator',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'description' => ts('SQL WHERE value for search-builder mapping fields.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mapping_field.value',
'table_name' => 'civicrm_mapping_field',
'entity' => 'MappingField',
'bao' => 'CRM_Core_DAO_MappingField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Menu ID'),
'required' => TRUE,
+ 'where' => 'civicrm_menu.id',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'title' => ts('Domain'),
'description' => ts('Which Domain is this menu item for'),
'required' => TRUE,
+ 'where' => 'civicrm_menu.domain_id',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'description' => ts('Path Name'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.path',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Arguments'),
'description' => ts('Arguments to pass to the url'),
+ 'where' => 'civicrm_menu.path_arguments',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'title' => ts('Menu Title'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.title',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'description' => ts('Function to call to check access permissions'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.access_callback',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Access Arguments'),
'description' => ts('Arguments to pass to access callback'),
+ 'where' => 'civicrm_menu.access_arguments',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'description' => ts('function to call for this url'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.page_callback',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Page Arguments'),
'description' => ts('Arguments to pass to page callback'),
+ 'where' => 'civicrm_menu.page_arguments',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Breadcrumb'),
'description' => ts('Breadcrumb for the path.'),
+ 'where' => 'civicrm_menu.breadcrumb',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'description' => ts('Url where a page should redirected to, if next url not known.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.return_url',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'description' => ts('Arguments to pass to return_url'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_menu.return_url_args',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Component'),
'description' => ts('Component that this menu item belongs to'),
+ 'where' => 'civicrm_menu.component_id',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is this menu item active?'),
+ 'where' => 'civicrm_menu.is_active',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Public?'),
'description' => ts('Is this menu accessible to the public?'),
+ 'where' => 'civicrm_menu.is_public',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Exposed?'),
'description' => ts('Is this menu exposed to the navigation system?'),
+ 'where' => 'civicrm_menu.is_exposed',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Use SSL?'),
'description' => ts('Should this menu be exposed via SSL if enabled?'),
+ 'where' => 'civicrm_menu.is_ssl',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'title' => ts('Order'),
'description' => ts('Ordering of the menu items in various blocks.'),
'required' => TRUE,
+ 'where' => 'civicrm_menu.weight',
'default' => '1',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'title' => ts('Type'),
'description' => ts('Drupal menu type.'),
'required' => TRUE,
+ 'where' => 'civicrm_menu.type',
'default' => '1',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'title' => ts('Page Type'),
'description' => ts('CiviCRM menu type.'),
'required' => TRUE,
+ 'where' => 'civicrm_menu.page_type',
'default' => '1',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Hide Breadcrumb?'),
'description' => ts('skip this url being exposed to breadcrumb'),
+ 'where' => 'civicrm_menu.skipBreadcrumb',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Other menu data'),
'description' => ts('All other menu metadata not stored in other fields'),
+ 'where' => 'civicrm_menu.module_data',
'table_name' => 'civicrm_menu',
'entity' => 'Menu',
'bao' => 'CRM_Core_DAO_Menu',
'title' => ts('Message Template ID'),
'description' => ts('Message Template ID'),
'required' => TRUE,
+ 'where' => 'civicrm_msg_template.id',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'description' => ts('Descriptive title of message'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_msg_template.msg_title',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Message Template Subject'),
'description' => ts('Subject for email message.'),
+ 'where' => 'civicrm_msg_template.msg_subject',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Message Template Text'),
'description' => ts('Text formatted message'),
+ 'where' => 'civicrm_msg_template.msg_text',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Message Template HTML'),
'description' => ts('HTML formatted message'),
+ 'where' => 'civicrm_msg_template.msg_html',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
+ 'where' => 'civicrm_msg_template.is_active',
'default' => '1',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Message Template Workflow'),
'description' => ts('a pseudo-FK to civicrm_option_value'),
+ 'where' => 'civicrm_msg_template.workflow_id',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Message Template Is Default?'),
'description' => ts('is this the default message template for the workflow referenced by workflow_id?'),
+ 'where' => 'civicrm_msg_template.is_default',
'default' => '1',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Message Template Is Reserved?'),
'description' => ts('is this the reserved message template which we ship for the workflow referenced by workflow_id?'),
+ 'where' => 'civicrm_msg_template.is_reserved',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Message Template is used for SMS?'),
'description' => ts('Is this message template used for sms?'),
+ 'where' => 'civicrm_msg_template.is_sms',
'default' => '0',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Message Template Format'),
'description' => ts('a pseudo-FK to civicrm_option_value containing PDF Page Format.'),
+ 'where' => 'civicrm_msg_template.pdf_format_id',
'table_name' => 'civicrm_msg_template',
'entity' => 'MessageTemplate',
'bao' => 'CRM_Core_BAO_MessageTemplate',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Navigation ID'),
'required' => TRUE,
+ 'where' => 'civicrm_navigation.id',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'title' => ts('Navigation Domain'),
'description' => ts('Which Domain is this navigation item for'),
'required' => TRUE,
+ 'where' => 'civicrm_navigation.domain_id',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'description' => ts('Navigation Title'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.label',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'description' => ts('Internal Name'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.name',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'description' => ts('url in case of custom navigation link'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.url',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'required' => FALSE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.icon',
'default' => 'NULL',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'description' => ts('Permission for menu item'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_navigation.permission',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'description' => ts('Permission Operator'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_navigation.permission_operator',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Navigation parent ID'),
'description' => ts('Parent navigation item, used for grouping'),
+ 'where' => 'civicrm_navigation.parent_id',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this navigation item active?'),
+ 'where' => 'civicrm_navigation.is_active',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Use separator'),
'description' => ts('If separator needs to be added after this menu item'),
+ 'where' => 'civicrm_navigation.has_separator',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'description' => ts('Ordering of the navigation items in various blocks.'),
+ 'where' => 'civicrm_navigation.weight',
'table_name' => 'civicrm_navigation',
'entity' => 'Navigation',
'bao' => 'CRM_Core_BAO_Navigation',
'title' => ts('Note ID'),
'description' => ts('Note ID'),
'required' => TRUE,
+ 'where' => 'civicrm_note.id',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_note.entity_table',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'title' => ts('Note Entity ID'),
'description' => ts('Foreign key to the referenced item.'),
'required' => TRUE,
+ 'where' => 'civicrm_note.entity_id',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Note Created By'),
'description' => ts('FK to Contact ID creator'),
+ 'where' => 'civicrm_note.contact_id',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Note Modified By'),
'description' => ts('When was this note last modified/edited'),
+ 'where' => 'civicrm_note.modified_date',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'description' => ts('subject of note description'),
'maxlength' => 255,
'size' => 60,
+ 'where' => 'civicrm_note.subject',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'description' => ts('Foreign Key to Note Privacy Level (which is an option value pair and hence an implicit FK)'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_note.privacy',
'table_name' => 'civicrm_note',
'entity' => 'Note',
'bao' => 'CRM_Core_BAO_Note',
'title' => ts('Open ID identifier'),
'description' => ts('Unique OpenID ID'),
'required' => TRUE,
+ 'where' => 'civicrm_openid.id',
'table_name' => 'civicrm_openid',
'entity' => 'OpenID',
'bao' => 'CRM_Core_BAO_OpenID',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('OpenID Contact'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_openid.contact_id',
'table_name' => 'civicrm_openid',
'entity' => 'OpenID',
'bao' => 'CRM_Core_BAO_OpenID',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('OpenID Location Type'),
'description' => ts('Which Location does this email belong to.'),
+ 'where' => 'civicrm_openid.location_type_id',
'table_name' => 'civicrm_openid',
'entity' => 'OpenID',
'bao' => 'CRM_Core_BAO_OpenID',
'title' => ts('Allowed to login?'),
'description' => ts('Whether or not this user is allowed to login'),
'required' => TRUE,
+ 'where' => 'civicrm_openid.allowed_to_login',
'default' => '0',
'table_name' => 'civicrm_openid',
'entity' => 'OpenID',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is OpenID Primary?'),
'description' => ts('Is this the primary email for this contact and location.'),
+ 'where' => 'civicrm_openid.is_primary',
'default' => '0',
'table_name' => 'civicrm_openid',
'entity' => 'OpenID',
'title' => ts('Option Group ID'),
'description' => ts('Option Group ID'),
'required' => TRUE,
+ 'where' => 'civicrm_option_group.id',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'bao' => 'CRM_Core_BAO_OptionGroup',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_option_group.name',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'bao' => 'CRM_Core_BAO_OptionGroup',
'description' => ts('Option Group title.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_group.title',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'bao' => 'CRM_Core_BAO_OptionGroup',
'description' => ts('Option group description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_group.description',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'bao' => 'CRM_Core_BAO_OptionGroup',
'description' => ts('Option group description.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_group.data_type',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'bao' => 'CRM_Core_BAO_OptionGroup',
'title' => ts('Option Group Is Reserved?'),
'description' => ts('Is this a predefined system option group (i.e. it can not be deleted)?'),
'required' => TRUE,
+ 'where' => 'civicrm_option_group.is_reserved',
'default' => '1',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'title' => ts('Option Group Is Active?'),
'description' => ts('Is this option group active?'),
'required' => TRUE,
+ 'where' => 'civicrm_option_group.is_active',
'default' => '1',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'title' => ts('Option Group Is Locked'),
'description' => ts('A lock to remove the ability to add new options via the UI.'),
'required' => TRUE,
+ 'where' => 'civicrm_option_group.is_locked',
'default' => '0',
'table_name' => 'civicrm_option_group',
'entity' => 'OptionGroup',
'title' => ts('Option Value ID'),
'description' => ts('Option ID'),
'required' => TRUE,
+ 'where' => 'civicrm_option_value.id',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'title' => ts('Option Group ID'),
'description' => ts('Group which this option belongs to.'),
'required' => TRUE,
+ 'where' => 'civicrm_option_value.option_group_id',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'required' => TRUE,
'maxlength' => 512,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_value.label',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'required' => TRUE,
'maxlength' => 512,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_value.value',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_option_value.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'description' => ts('Use to sort and/or set display properties for sub-set(s) of options within an option group. EXAMPLE: Use for college_interest field, to differentiate partners from non-partners.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_value.grouping',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Filter'),
'description' => ts('Bitwise logic can be used to create subsets of options within an option_group for different uses.'),
+ 'where' => 'civicrm_option_value.filter',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Option is Default?'),
'description' => ts('Is this the default option for the group?'),
+ 'where' => 'civicrm_option_value.is_default',
'default' => '0',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'title' => ts('Order'),
'description' => ts('Controls display sort order.'),
'required' => TRUE,
+ 'where' => 'civicrm_option_value.weight',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'description' => ts('Optional description.'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_option_value.description',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Option is Header?'),
'description' => ts('Is this row simply a display header? Expected usage is to render these as OPTGROUP tags within a SELECT field list of options?'),
+ 'where' => 'civicrm_option_value.is_optgroup',
'default' => '0',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Option Is Reserved?'),
'description' => ts('Is this a predefined system object?'),
+ 'where' => 'civicrm_option_value.is_reserved',
'default' => '0',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Option Is Active'),
'description' => ts('Is this option active?'),
+ 'where' => 'civicrm_option_value.is_active',
'default' => '1',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Option Component'),
'description' => ts('Component that this option value belongs/caters to.'),
+ 'where' => 'civicrm_option_value.component_id',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Option Domain'),
'description' => ts('Which Domain is this option value for'),
+ 'where' => 'civicrm_option_value.domain_id',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'bao' => 'CRM_Core_BAO_OptionValue',
'name' => 'visibility_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Option Visibility'),
+ 'where' => 'civicrm_option_value.visibility_id',
'default' => 'NULL',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'description' => ts('crm-i icon class'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_value.icon',
'default' => 'NULL',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'description' => ts('Hex color value e.g. #ffffff'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_option_value.color',
'default' => 'NULL',
'table_name' => 'civicrm_option_value',
'entity' => 'OptionValue',
'title' => ts('Persistent ID'),
'description' => ts('Persistent Record Id'),
'required' => TRUE,
+ 'where' => 'civicrm_persistent.id',
'table_name' => 'civicrm_persistent',
'entity' => 'Persistent',
'bao' => 'CRM_Core_BAO_Persistent',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_persistent.context',
'table_name' => 'civicrm_persistent',
'entity' => 'Persistent',
'bao' => 'CRM_Core_BAO_Persistent',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_persistent.name',
'table_name' => 'civicrm_persistent',
'entity' => 'Persistent',
'bao' => 'CRM_Core_BAO_Persistent',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Data'),
'description' => ts('data associated with name'),
+ 'where' => 'civicrm_persistent.data',
'table_name' => 'civicrm_persistent',
'entity' => 'Persistent',
'bao' => 'CRM_Core_BAO_Persistent',
'title' => ts('Is Configuration?'),
'description' => ts('Config Settings'),
'required' => TRUE,
+ 'where' => 'civicrm_persistent.is_config',
'default' => '0',
'table_name' => 'civicrm_persistent',
'entity' => 'Persistent',
'title' => ts('Phone ID'),
'description' => ts('Unique Phone ID'),
'required' => TRUE,
+ 'where' => 'civicrm_phone.id',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Contact'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_phone.contact_id',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Location Type'),
'description' => ts('Which Location does this phone belong to.'),
+ 'where' => 'civicrm_phone.location_type_id',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Phone Primary?'),
'description' => ts('Is this the primary phone for this contact and location.'),
+ 'where' => 'civicrm_phone.is_primary',
'default' => '0',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Billing Phone'),
'description' => ts('Is this the billing?'),
+ 'where' => 'civicrm_phone.is_billing',
'default' => '0',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mobile Provider'),
'description' => ts('Which Mobile Provider does this phone belong to.'),
+ 'where' => 'civicrm_phone.mobile_provider_id',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'description' => ts('Phone number stripped of all whitespace, letters, and punctuation.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_phone.phone_numeric',
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone Type'),
'description' => ts('Which type of phone does this number belongs.'),
- 'export' => TRUE,
'where' => 'civicrm_phone.phone_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_phone',
'entity' => 'Phone',
'bao' => 'CRM_Core_BAO_Phone',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Date Preference ID'),
'required' => TRUE,
+ 'where' => 'civicrm_preferences_date.id',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_preferences_date.name',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'description' => ts('Description of this date type.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_preferences_date.description',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'title' => ts('Start'),
'description' => ts('The start offset relative to current year'),
'required' => TRUE,
+ 'where' => 'civicrm_preferences_date.start',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'title' => ts('End Offset'),
'description' => ts('The end offset relative to current year, can be negative'),
'required' => TRUE,
+ 'where' => 'civicrm_preferences_date.end',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'description' => ts('The date type'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_preferences_date.date_format',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'description' => ts('time format'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_preferences_date.time_format',
'table_name' => 'civicrm_preferences_date',
'entity' => 'PreferencesDate',
'bao' => 'CRM_Core_BAO_PreferencesDate',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Prev Next Cache ID'),
'required' => TRUE,
+ 'where' => 'civicrm_prevnext_cache.id',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'description' => ts('physical tablename for entity being joined to discount, e.g. civicrm_event'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_prevnext_cache.entity_table',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'title' => ts('Prev Next Entity ID 1'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_prevnext_cache.entity_id1',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'title' => ts('Prev Next Entity ID 2'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => FALSE,
+ 'where' => 'civicrm_prevnext_cache.entity_id2',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'description' => ts('Unique path name for cache element of the searched item'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_prevnext_cache.cacheKey',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Prev Next Data'),
'description' => ts('cached snapshot of the serialized data'),
+ 'where' => 'civicrm_prevnext_cache.data',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'bao' => 'CRM_Core_BAO_PrevNextCache',
'name' => 'is_selected',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Selected'),
+ 'where' => 'civicrm_prevnext_cache.is_selected',
'default' => '0',
'table_name' => 'civicrm_prevnext_cache',
'entity' => 'PrevNextCache',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Print Label ID'),
'required' => TRUE,
+ 'where' => 'civicrm_print_label.id',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'description' => ts('User title for for this label layout'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_print_label.title',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'description' => ts('variable name/programmatic handle for this field.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_print_label.name',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Description'),
'description' => ts('Description of this label layout'),
+ 'where' => 'civicrm_print_label.description',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'description' => ts('This refers to name column of civicrm_option_value row in name_badge option group'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_print_label.label_format_name',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Label Type'),
'description' => ts('Implicit FK to civicrm_option_value row in NEW label_type option group'),
+ 'where' => 'civicrm_print_label.label_type_id',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Data'),
'description' => ts('contains json encode configurations options'),
+ 'where' => 'civicrm_print_label.data',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Label is Default?'),
'description' => ts('Is this default?'),
+ 'where' => 'civicrm_print_label.is_default',
'default' => '1',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Label Is Active?'),
'description' => ts('Is this option active?'),
+ 'where' => 'civicrm_print_label.is_active',
'default' => '1',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Label Reserved?'),
'description' => ts('Is this reserved label?'),
+ 'where' => 'civicrm_print_label.is_reserved',
'default' => '1',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Label Created By'),
'description' => ts('FK to civicrm_contact, who created this label layout'),
+ 'where' => 'civicrm_print_label.created_id',
'table_name' => 'civicrm_print_label',
'entity' => 'PrintLabel',
'bao' => 'CRM_Core_DAO_PrintLabel',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('ID'),
'required' => TRUE,
+ 'where' => 'civicrm_recurring_entity.id',
'table_name' => 'civicrm_recurring_entity',
'entity' => 'RecurringEntity',
'bao' => 'CRM_Core_BAO_RecurringEntity',
'title' => ts('Parent ID'),
'description' => ts('Recurring Entity Parent ID'),
'required' => TRUE,
+ 'where' => 'civicrm_recurring_entity.parent_id',
'table_name' => 'civicrm_recurring_entity',
'entity' => 'RecurringEntity',
'bao' => 'CRM_Core_BAO_RecurringEntity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'description' => ts('Recurring Entity Child ID'),
+ 'where' => 'civicrm_recurring_entity.entity_id',
'table_name' => 'civicrm_recurring_entity',
'entity' => 'RecurringEntity',
'bao' => 'CRM_Core_BAO_RecurringEntity',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_recurring_entity.entity_table',
'table_name' => 'civicrm_recurring_entity',
'entity' => 'RecurringEntity',
'bao' => 'CRM_Core_BAO_RecurringEntity',
'title' => ts('Cascade Type'),
'description' => ts('1-this entity, 2-this and the following entities, 3-all the entities'),
'required' => TRUE,
+ 'where' => 'civicrm_recurring_entity.mode',
'default' => '1',
'table_name' => 'civicrm_recurring_entity',
'entity' => 'RecurringEntity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Setting ID'),
'required' => TRUE,
+ 'where' => 'civicrm_setting.id',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'description' => ts('Unique name for setting'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_setting.name',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Value'),
'description' => ts('data associated with this group / name combo'),
+ 'where' => 'civicrm_setting.value',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'title' => ts('Setting Domain'),
'description' => ts('Which Domain is this menu item for'),
'required' => TRUE,
+ 'where' => 'civicrm_setting.domain_id',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Setting Contact'),
'description' => ts('FK to Contact ID if the setting is localized to a contact'),
+ 'where' => 'civicrm_setting.contact_id',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Domain Setting?'),
'description' => ts('Is this setting a contact specific or site wide setting?'),
+ 'where' => 'civicrm_setting.is_domain',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Setting Component'),
'description' => ts('Component that this menu item belongs to'),
+ 'where' => 'civicrm_setting.component_id',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Setting Created Date'),
'description' => ts('When was the setting created'),
+ 'where' => 'civicrm_setting.created_date',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Setting Created By'),
'description' => ts('FK to civicrm_contact, who created this setting'),
+ 'where' => 'civicrm_setting.created_id',
'table_name' => 'civicrm_setting',
'entity' => 'Setting',
'bao' => 'CRM_Core_BAO_Setting',
'title' => ts('State ID'),
'description' => ts('State/Province ID'),
'required' => TRUE,
+ 'where' => 'civicrm_state_province.id',
'table_name' => 'civicrm_state_province',
'entity' => 'StateProvince',
'bao' => 'CRM_Core_DAO_StateProvince',
'description' => ts('2-4 Character Abbreviation of State/Province'),
'maxlength' => 4,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_state_province.abbreviation',
'table_name' => 'civicrm_state_province',
'entity' => 'StateProvince',
'bao' => 'CRM_Core_DAO_StateProvince',
'title' => ts('Country'),
'description' => ts('ID of Country that State/Province belong'),
'required' => TRUE,
+ 'where' => 'civicrm_state_province.country_id',
'table_name' => 'civicrm_state_province',
'entity' => 'StateProvince',
'bao' => 'CRM_Core_DAO_StateProvince',
'title' => ts('Status Preference ID'),
'description' => ts('Unique Status Preference ID'),
'required' => TRUE,
+ 'where' => 'civicrm_status_pref.id',
'table_name' => 'civicrm_status_pref',
'entity' => 'StatusPreference',
'bao' => 'CRM_Core_BAO_StatusPreference',
'title' => ts('Setting Domain'),
'description' => ts('Which Domain is this Status Preference for'),
'required' => TRUE,
+ 'where' => 'civicrm_status_pref.domain_id',
'table_name' => 'civicrm_status_pref',
'entity' => 'StatusPreference',
'bao' => 'CRM_Core_BAO_StatusPreference',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_status_pref.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_status_pref',
'entity' => 'StatusPreference',
'description' => ts('expires ignore_severity. NULL never hushes.'),
'import' => TRUE,
'where' => 'civicrm_status_pref.hush_until',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_status_pref',
'description' => ts('Hush messages up to and including this severity.'),
'import' => TRUE,
'where' => 'civicrm_status_pref.ignore_severity',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_status_pref',
'description' => ts('These settings are per-check, and can\'t be compared across checks.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_status_pref.prefs',
'table_name' => 'civicrm_status_pref',
'entity' => 'StatusPreference',
'bao' => 'CRM_Core_BAO_StatusPreference',
'description' => ts('These values are per-check, and can\'t be compared across checks.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_status_pref.check_info',
'table_name' => 'civicrm_status_pref',
'entity' => 'StatusPreference',
'bao' => 'CRM_Core_BAO_StatusPreference',
'title' => ts('System Log ID'),
'description' => ts('Primary key ID'),
'required' => TRUE,
+ 'where' => 'civicrm_system_log.id',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'bao' => 'CRM_Core_DAO_SystemLog',
'required' => TRUE,
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_system_log.message',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'bao' => 'CRM_Core_DAO_SystemLog',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Detailed Log Data'),
'description' => ts('JSON encoded data'),
+ 'where' => 'civicrm_system_log.context',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'bao' => 'CRM_Core_DAO_SystemLog',
'description' => ts('error level per PSR3'),
'maxlength' => 9,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_system_log.level',
'default' => 'info',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Log Timestamp'),
'description' => ts('Timestamp of when event occurred.'),
+ 'where' => 'civicrm_system_log.timestamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Log Contact ID'),
'description' => ts('Optional Contact ID that created the log. Not an FK as we keep this regardless'),
+ 'where' => 'civicrm_system_log.contact_id',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'bao' => 'CRM_Core_DAO_SystemLog',
'description' => ts('Optional Name of logging host'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_system_log.hostname',
'table_name' => 'civicrm_system_log',
'entity' => 'SystemLog',
'bao' => 'CRM_Core_DAO_SystemLog',
'title' => ts('Tag ID'),
'description' => ts('Tag ID'),
'required' => TRUE,
+ 'where' => 'civicrm_tag.id',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'bao' => 'CRM_Core_BAO_Tag',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_tag.name',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'bao' => 'CRM_Core_BAO_Tag',
'description' => ts('Optional verbose description of the tag.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_tag.description',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'bao' => 'CRM_Core_BAO_Tag',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Parent Tag'),
'description' => ts('Optional parent id for this tag.'),
+ 'where' => 'civicrm_tag.parent_id',
'default' => 'NULL',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Display Tag?'),
'description' => ts('Is this tag selectable / displayed'),
+ 'where' => 'civicrm_tag.is_selectable',
'default' => '1',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'name' => 'is_reserved',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Reserved'),
+ 'where' => 'civicrm_tag.is_reserved',
'default' => '0',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'name' => 'is_tagset',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Tagset'),
+ 'where' => 'civicrm_tag.is_tagset',
'default' => '0',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'title' => ts('Used For'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_tag.used_for',
'default' => 'NULL',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Tag Created By'),
'description' => ts('FK to civicrm_contact, who created this tag'),
+ 'where' => 'civicrm_tag.created_id',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'bao' => 'CRM_Core_BAO_Tag',
'description' => ts('Hex color value e.g. #ffffff'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_tag.color',
'default' => 'NULL',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Tag Created Date'),
'description' => ts('Date and time that tag was created.'),
+ 'where' => 'civicrm_tag.created_date',
'table_name' => 'civicrm_tag',
'entity' => 'Tag',
'bao' => 'CRM_Core_BAO_Tag',
'title' => ts('Timezone ID'),
'description' => ts('Timezone Id'),
'required' => TRUE,
+ 'where' => 'civicrm_timezone.id',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
'description' => ts('Timezone full name'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_timezone.name',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
'description' => ts('ISO Code for timezone abbreviation'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_timezone.abbreviation',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
'description' => ts('GMT name of the timezone'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_timezone.gmt',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
'name' => 'offset',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('GMT Offset'),
+ 'where' => 'civicrm_timezone.offset',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
'title' => ts('Country'),
'description' => ts('Country Id'),
'required' => TRUE,
+ 'where' => 'civicrm_timezone.country_id',
'table_name' => 'civicrm_timezone',
'entity' => 'Timezone',
'bao' => 'CRM_Core_DAO_Timezone',
*
* Generated from xml/schema/CRM/Core/UFField.xml
* DO NOT EDIT. Generated by CRM_Core_CodeGen
- * (GenCodeChecksum:c73a4661d33e4dde2240d6d8ac7fd2c4)
+ * (GenCodeChecksum:3acfd1d2bd5f1e54f8aee7f96328cb58)
*/
/**
'title' => ts('Profile Field ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'title' => ts('Profile ID'),
'description' => ts('Which form does this field belong to.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.uf_group_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_field.field_name',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Active'),
'description' => ts('Is this field currently shareable? If false, hide the field for all sharing contexts.'),
+ 'where' => 'civicrm_uf_field.is_active',
'default' => '1',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Is View Only'),
'description' => ts('the field is view only and not editable in user forms.'),
+ 'where' => 'civicrm_uf_field.is_view',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Required'),
'description' => ts('Is this field required when included in a user or registration form?'),
+ 'where' => 'civicrm_uf_field.is_required',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'title' => ts('Order'),
'description' => ts('Controls field display order when user framework fields are displayed in registration and account editing forms.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_field.weight',
'default' => '1',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Profile Field Post Help'),
'description' => ts('Description and/or help text to display after this field.'),
+ 'where' => 'civicrm_uf_field.help_post',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Profile Field Pre Help'),
'description' => ts('Description and/or help text to display before this field.'),
+ 'where' => 'civicrm_uf_field.help_pre',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'description' => ts('In what context(s) is this field visible.'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_uf_field.visibility',
'default' => 'User and User Admin Only',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is a Filter'),
'description' => ts('Is this field included as a column in the selector table?'),
+ 'where' => 'civicrm_uf_field.in_selector',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Searchable'),
'description' => ts('Is this field included search form of profile?'),
+ 'where' => 'civicrm_uf_field.is_searchable',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Location Type'),
'description' => ts('Location type of this mapping, if required'),
+ 'where' => 'civicrm_uf_field.location_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Phone Type'),
'description' => ts('Phone Type Id, if required'),
+ 'where' => 'civicrm_uf_field.phone_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Field Website Type'),
'description' => ts('Website Type Id, if required'),
+ 'where' => 'civicrm_uf_field.website_type_id',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_field.label',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'description' => ts('This field saves field type (ie individual,household.. field etc).'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_field.field_type',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Is Reserved'),
'description' => ts('Is this field reserved for use by some other CiviCRM functionality?'),
+ 'where' => 'civicrm_uf_field.is_reserved',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'bao' => 'CRM_Core_BAO_UFField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Field Supports Multiple'),
'description' => ts('Include in multi-record listing?'),
+ 'where' => 'civicrm_uf_field.is_multi_summary',
'default' => '0',
'table_name' => 'civicrm_uf_field',
'entity' => 'UFField',
'title' => ts('Profile ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_group.id',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Is Active'),
'description' => ts('Is this form currently active? If false, hide all related fields for all sharing contexts.'),
+ 'where' => 'civicrm_uf_group.is_active',
'default' => '1',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_uf_group.group_type',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_group.title',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Profile Form Public title'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_group.frontend_title',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Optional verbose description of the profile.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_uf_group.description',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Description and/or help text to display before fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_uf_group.help_pre',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Description and/or help text to display after fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_uf_group.help_post',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Search Limit Group'),
'description' => ts('Group id, foreign key from civicrm_group'),
+ 'where' => 'civicrm_uf_group.limit_listings_group_id',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Redirect to URL.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_group.post_URL',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Add Contact To Group'),
'description' => ts('foreign key to civicrm_group_id'),
+ 'where' => 'civicrm_uf_group.add_to_group_id',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Show Captcha On Profile'),
'description' => ts('Should a CAPTCHA widget be included this Profile form.'),
+ 'where' => 'civicrm_uf_group.add_captcha',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Map Profile'),
'description' => ts('Do we want to map results from this profile.'),
+ 'where' => 'civicrm_uf_group.is_map',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Show Edit Link?'),
'description' => ts('Should edit link display in profile selector'),
+ 'where' => 'civicrm_uf_group.is_edit_link',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Show Link to CMS User'),
'description' => ts('Should we display a link to the website profile in profile selector'),
+ 'where' => 'civicrm_uf_group.is_uf_link',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Update on Duplicate'),
'description' => ts('Should we update the contact record if we find a duplicate'),
+ 'where' => 'civicrm_uf_group.is_update_dupe',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'description' => ts('Redirect to URL when Cancle button clik .'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_group.cancel_URL',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Create CMS User?'),
'description' => ts('Should we create a cms user for this profile '),
+ 'where' => 'civicrm_uf_group.is_cms_user',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'name' => 'notify',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Notify on Profile Submit'),
+ 'where' => 'civicrm_uf_group.notify',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Is Reserved'),
'description' => ts('Is this group reserved for use by some other CiviCRM functionality?'),
+ 'where' => 'civicrm_uf_group.is_reserved',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'description' => ts('Name of the UF group for directly addressing it in the codebase'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_group.name',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Created By'),
'description' => ts('FK to civicrm_contact, who created this UF group'),
+ 'where' => 'civicrm_uf_group.created_id',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('UF Group Created Date'),
'description' => ts('Date and time this UF group was created.'),
+ 'where' => 'civicrm_uf_group.created_date',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'bao' => 'CRM_Core_BAO_UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Include Proximity Search?'),
'description' => ts('Should we include proximity search feature in this profile search form?'),
+ 'where' => 'civicrm_uf_group.is_proximity_search',
'default' => '0',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'description' => ts('Custom Text to display on the Cancel button when used in create or edit mode'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_group.cancel_button_text',
'default' => 'NULL',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'description' => ts('Custom Text to display on the submit button on profile edit/create screens'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_group.submit_button_text',
'default' => 'NULL',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Include Cancel Button'),
'description' => ts('Should a Cancel button be included in this Profile form.'),
+ 'where' => 'civicrm_uf_group.add_cancel_button',
'default' => '1',
'table_name' => 'civicrm_uf_group',
'entity' => 'UFGroup',
'title' => ts('UF Join ID'),
'description' => ts('Unique table ID'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_join.id',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Profile Use is active'),
'description' => ts('Is this join currently active?'),
+ 'where' => 'civicrm_uf_join.is_active',
'default' => '1',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_join.module',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'description' => ts('Name of table where item being referenced is stored. Modules which only need a single collection of uf_join instances may choose not to populate entity_table and entity_id.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_uf_join.entity_table',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Profile Entity ID'),
'description' => ts('Foreign key to the referenced item.'),
+ 'where' => 'civicrm_uf_join.entity_id',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'title' => ts('Order'),
'description' => ts('Controls display order when multiple user framework groups are setup for concurrent display.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_join.weight',
'default' => '1',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'title' => ts('Profile ID'),
'description' => ts('Which form does this field belong to.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_join.uf_group_id',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Profile Use Data'),
'description' => ts('Json serialized array of data used by the ufjoin.module'),
+ 'where' => 'civicrm_uf_join.module_data',
'table_name' => 'civicrm_uf_join',
'entity' => 'UFJoin',
'bao' => 'CRM_Core_BAO_UFJoin',
'title' => ts('UF Match ID'),
'description' => ts('System generated ID.'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_match.id',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'title' => ts('UF Match Domain ID'),
'description' => ts('Which Domain is this match entry for'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_match.domain_id',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'title' => ts('CMS ID'),
'description' => ts('UF ID'),
'required' => TRUE,
+ 'where' => 'civicrm_uf_match.uf_id',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'description' => ts('UF Name'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_uf_match.uf_name',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('CiviCRM Contact ID'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_uf_match.contact_id',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'description' => ts('UI language preferred by the given user/contact'),
'maxlength' => 5,
'size' => CRM_Utils_Type::SIX,
+ 'where' => 'civicrm_uf_match.language',
'table_name' => 'civicrm_uf_match',
'entity' => 'UFMatch',
'bao' => 'CRM_Core_BAO_UFMatch',
'title' => ts('Website ID'),
'description' => ts('Unique Website ID'),
'required' => TRUE,
+ 'where' => 'civicrm_website.id',
'table_name' => 'civicrm_website',
'entity' => 'Website',
'bao' => 'CRM_Core_BAO_Website',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contact'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_website.contact_id',
'table_name' => 'civicrm_website',
'entity' => 'Website',
'bao' => 'CRM_Core_BAO_Website',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Website Type'),
'description' => ts('Which Website type does this website belong to.'),
+ 'where' => 'civicrm_website.website_type_id',
'table_name' => 'civicrm_website',
'entity' => 'Website',
'bao' => 'CRM_Core_BAO_Website',
'title' => ts('Word Replacement ID'),
'description' => ts('Word replacement ID'),
'required' => TRUE,
+ 'where' => 'civicrm_word_replacement.id',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'bao' => 'CRM_Core_BAO_WordReplacement',
'description' => ts('Word which need to be replaced'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_word_replacement.find_word',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'bao' => 'CRM_Core_BAO_WordReplacement',
'description' => ts('Word which will replace the word in find'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_word_replacement.replace_word',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'bao' => 'CRM_Core_BAO_WordReplacement',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Word Replacement is Active'),
'description' => ts('Is this entry active?'),
+ 'where' => 'civicrm_word_replacement.is_active',
'default' => '1',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'title' => ts('Word Replacement Match Type'),
'maxlength' => 16,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_word_replacement.match_type',
'default' => 'wildcardMatch',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Word Replacement Domain ID'),
'description' => ts('FK to Domain ID. This is for Domain specific word replacement'),
+ 'where' => 'civicrm_word_replacement.domain_id',
'table_name' => 'civicrm_word_replacement',
'entity' => 'WordReplacement',
'bao' => 'CRM_Core_BAO_WordReplacement',
'title' => ts('World Region ID'),
'description' => ts('Country Id'),
'required' => TRUE,
+ 'where' => 'civicrm_worldregion.id',
'table_name' => 'civicrm_worldregion',
'entity' => 'Worldregion',
'bao' => 'CRM_Core_DAO_Worldregion',
'description' => ts('Region name to be associated with countries'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
- 'export' => TRUE,
'where' => 'civicrm_worldregion.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_worldregion',
'entity' => 'Worldregion',
'bao' => 'CRM_Core_DAO_Worldregion',
'title' => ts('Connection ID'),
'description' => ts('Connection ID'),
'required' => TRUE,
+ 'where' => 'civicrm_cxn.id',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'description' => ts('Application GUID'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_cxn.app_guid',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Application Metadata (JSON)'),
'description' => ts('Application Metadata (JSON)'),
+ 'where' => 'civicrm_cxn.app_meta',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'description' => ts('Connection GUID'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_cxn.cxn_guid',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Secret'),
'description' => ts('Shared secret'),
+ 'where' => 'civicrm_cxn.secret',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Perm'),
'description' => ts('Permissions approved for the service (JSON)'),
+ 'where' => 'civicrm_cxn.perm',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Options'),
'description' => ts('Options for the service (JSON)'),
+ 'where' => 'civicrm_cxn.options',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'bao' => 'CRM_Cxn_BAO_Cxn',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is connection currently enabled?'),
+ 'where' => 'civicrm_cxn.is_active',
'default' => '1',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'title' => ts('Created Date'),
'description' => ts('When was the connection was created.'),
'required' => FALSE,
+ 'where' => 'civicrm_cxn.created_date',
'default' => 'NULL',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'title' => ts('Modified Date'),
'description' => ts('When the connection was created or modified.'),
'required' => FALSE,
+ 'where' => 'civicrm_cxn.modified_date',
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
'title' => ts('Fetched Date'),
'description' => ts('The last time the application metadata was fetched.'),
'required' => FALSE,
+ 'where' => 'civicrm_cxn.fetched_date',
'default' => 'NULL',
'table_name' => 'civicrm_cxn',
'entity' => 'Cxn',
// get prepared to search within already found dupes if $searchWithinDupes flag is set
$dao->query("DROP TEMPORARY TABLE IF EXISTS dedupe_copy");
$dao->query("CREATE TEMPORARY TABLE dedupe_copy SELECT * FROM {$this->temporaryTables['dedupe']} WHERE weight >= {$weightSum}");
- $dao->free();
preg_match($patternColumn, $query, $matches);
$query = str_replace(' WHERE ', str_replace('column', $matches[1], $dupeCopyJoin), $query);
// Make a second temp table:
$dao->query("DROP TEMPORARY TABLE IF EXISTS dedupe_copy_2");
$dao->query("CREATE TEMPORARY TABLE dedupe_copy_2 SELECT * FROM {$this->temporaryTables['dedupe']} WHERE weight >= {$weightSum}");
- $dao->free();
// After the union, use that new temp table:
$part1 = substr($query, 0, $matches[1][1]);
$query = $part1 . str_replace('dedupe_copy', 'dedupe_copy_2', substr($query, $matches[1][1]));
// FIXME: we need to be more acurate with affected rows, especially for insert vs duplicate insert.
// And that will help optimize further.
$affectedRows = $dao->affectedRows();
- $dao->free();
// In an inclusive situation, failure of any query means no further processing -
if ($affectedRows == 0) {
'title' => ts('Dedupe Exception ID'),
'description' => ts('Unique dedupe exception id'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_exception.id',
'table_name' => 'civicrm_dedupe_exception',
'entity' => 'Exception',
'bao' => 'CRM_Dedupe_DAO_Exception',
'title' => ts('First Dupe Contact ID'),
'description' => ts('FK to Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_exception.contact_id1',
'table_name' => 'civicrm_dedupe_exception',
'entity' => 'Exception',
'bao' => 'CRM_Dedupe_DAO_Exception',
'title' => ts('Second Dupe Contact ID'),
'description' => ts('FK to Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_exception.contact_id2',
'table_name' => 'civicrm_dedupe_exception',
'entity' => 'Exception',
'bao' => 'CRM_Dedupe_DAO_Exception',
'title' => ts('Dedupe Rule ID'),
'description' => ts('Unique dedupe rule id'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_rule.id',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'title' => ts('Dedupe Rule Group'),
'description' => ts('The id of the rule group this rule belongs to'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_rule.dedupe_rule_group_id',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_dedupe_rule.rule_table',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_dedupe_rule.rule_field',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Rule Length'),
'description' => ts('The length of the matching substring'),
+ 'where' => 'civicrm_dedupe_rule.rule_length',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'title' => ts('Order'),
'description' => ts('The weight of the rule'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_rule.rule_weight',
'table_name' => 'civicrm_dedupe_rule',
'entity' => 'Rule',
'bao' => 'CRM_Dedupe_BAO_Rule',
'title' => ts('Rule Group ID'),
'description' => ts('Unique dedupe rule group id'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_rule_group.id',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'description' => ts('The type of contacts this group applies to'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_dedupe_rule_group.contact_type',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'title' => ts('Threshold'),
'description' => ts('The weight threshold the sum of the rule weights has to cross to consider two contacts the same'),
'required' => TRUE,
+ 'where' => 'civicrm_dedupe_rule_group.threshold',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'required' => TRUE,
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_dedupe_rule_group.used',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'description' => ts('Name of the rule group'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_dedupe_rule_group.name',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'description' => ts('Label of the rule group'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_dedupe_rule_group.title',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Reserved?'),
'description' => ts('Is this a reserved rule - a rule group that has been optimized and cannot be changed by the admin'),
+ 'where' => 'civicrm_dedupe_rule_group.is_reserved',
'table_name' => 'civicrm_dedupe_rule_group',
'entity' => 'RuleGroup',
'bao' => 'CRM_Dedupe_BAO_RuleGroup',
CRM_Core_BAO_File::deleteFileReferences($fileIds[$mainId], $mainId, $customId);
}
}
- $dao->free();
// move the other contact's file to main contact
//NYSS need to INSERT or UPDATE depending on whether main contact has an existing record
*/
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(), 'user_id', 'civicrm_contact', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'title' => ts('Cart ID'),
'description' => ts('Cart Id'),
'required' => TRUE,
+ 'where' => 'civicrm_event_carts.id',
'table_name' => 'civicrm_event_carts',
'entity' => 'Cart',
'bao' => 'CRM_Event_Cart_BAO_Cart',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Created By'),
'description' => ts('FK to civicrm_contact who created this cart'),
+ 'where' => 'civicrm_event_carts.user_id',
'table_name' => 'civicrm_event_carts',
'entity' => 'Cart',
'bao' => 'CRM_Event_Cart_BAO_Cart',
'name' => 'completed',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Complete?'),
+ 'where' => 'civicrm_event_carts.completed',
'default' => '0',
'table_name' => 'civicrm_event_carts',
'entity' => 'Cart',
*/
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(), 'event_id', 'civicrm_event', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'event_cart_id', 'civicrm_event_carts', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'title' => ts('Event In Cart'),
'description' => ts('Event In Cart Id'),
'required' => TRUE,
+ 'where' => 'civicrm_events_in_carts.id',
'table_name' => 'civicrm_events_in_carts',
'entity' => 'EventInCart',
'bao' => 'CRM_Event_Cart_BAO_EventInCart',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Event'),
'description' => ts('FK to Event ID'),
+ 'where' => 'civicrm_events_in_carts.event_id',
'table_name' => 'civicrm_events_in_carts',
'entity' => 'EventInCart',
'bao' => 'CRM_Event_Cart_BAO_EventInCart',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Event In Cart'),
'description' => ts('FK to Event Cart ID'),
+ 'where' => 'civicrm_events_in_carts.event_cart_id',
'table_name' => 'civicrm_events_in_carts',
'entity' => 'EventInCart',
'bao' => 'CRM_Event_Cart_BAO_EventInCart',
'title' => ts('Event ID'),
'description' => ts('Event'),
'required' => TRUE,
+ 'where' => 'civicrm_event.id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'import' => TRUE,
'where' => 'civicrm_event.title',
'headerPattern' => '/(event.)?title$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Brief summary of event. Text and html allowed. Displayed on Event Registration form and can be used on other CMS pages which need an event summary.'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_event.summary',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Full description of event. Text and html allowed. Displayed on built-in Event Information screens.'),
'rows' => 8,
'cols' => 60,
+ 'where' => 'civicrm_event.description',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Event Type'),
'description' => ts('Event Type ID.Implicit FK to civicrm_option_value where option_group = event_type.'),
+ 'where' => 'civicrm_event.event_type_id',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Participant Listing'),
'description' => ts('Should we expose the participant list? Implicit FK to civicrm_option_value where option_group = participant_listing.'),
+ 'where' => 'civicrm_event.participant_listing_id',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Event Public'),
'description' => ts('Public events will be included in the iCal feeds. Access to private event information may be limited using ACLs.'),
+ 'where' => 'civicrm_event.is_public',
'default' => '1',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'import' => TRUE,
'where' => 'civicrm_event.start_date',
'headerPattern' => '/^start|(s(tart\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_event',
'entity' => 'Event',
'import' => TRUE,
'where' => 'civicrm_event.end_date',
'headerPattern' => '/^end|(e(nd\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Online Registration'),
'description' => ts('If true, include registration link on Event Info page.'),
+ 'where' => 'civicrm_event.is_online_registration',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.registration_link_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Registration Start Date'),
'description' => ts('Date and time that online registration starts.'),
+ 'where' => 'civicrm_event.registration_start_date',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Registration End Date'),
'description' => ts('Date and time that online registration ends.'),
+ 'where' => 'civicrm_event.registration_end_date',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Max Participants'),
'description' => ts('Maximum number of registered participants to allow. After max is reached, a custom Event Full message is displayed. If NULL, allow unlimited number of participants.'),
+ 'where' => 'civicrm_event.max_participants',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Message to display on Event Information page and INSTEAD OF Event Registration form if maximum participants are signed up. Can include email address/info about getting on a waiting list, etc. Text and html allowed.'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_event.event_full_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is this a PAID event?'),
'description' => ts('If true, one or more fee amounts must be set and a Payment Processor must be configured for Online Event Registration.'),
+ 'where' => 'civicrm_event.is_monetary',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('Financial type assigned to paid event registrations for this event. Required if is_monetary is true.'),
+ 'where' => 'civicrm_event.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Payment Processors configured for this Event (if is_monetary is true)'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.payment_processor',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Map Enabled'),
'description' => ts('Include a map block on the Event Information page when geocode info is available and a mapping provider has been specified?'),
+ 'where' => 'civicrm_event.is_map',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this Event enabled or disabled/cancelled?'),
+ 'where' => 'civicrm_event.is_active',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'import' => TRUE,
'where' => 'civicrm_event.fee_label',
'headerPattern' => '/^fee|(f(ee\s)?label)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('show location'),
'description' => ts('If true, show event location.'),
+ 'where' => 'civicrm_event.is_show_location',
'default' => '1',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Block ID'),
'description' => ts('FK to Location Block ID'),
+ 'where' => 'civicrm_event.loc_block_id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Participant role ID. Implicit FK to civicrm_option_value where option_group = participant_role.'),
'import' => TRUE,
'where' => 'civicrm_event.default_role_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_event',
'description' => ts('Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.intro_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.footer_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Title for Confirmation page.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.confirm_title',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.confirm_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.confirm_footer_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is confirm email'),
'description' => ts('If true, confirmation is automatically emailed to contact on successful registration.'),
+ 'where' => 'civicrm_event.is_email_confirm',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now'),
'rows' => 4,
'cols' => 50,
+ 'where' => 'civicrm_event.confirm_email_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('FROM email name used for confirmation emails.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.confirm_from_name',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('FROM email address used for confirmation emails.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.confirm_from_email',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('comma-separated list of email addresses to cc each time a confirmation is sent'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.cc_confirm',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('comma-separated list of email addresses to bcc each time a confirmation is sent'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.bcc_confirm',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Default Fee ID'),
'description' => ts('FK to civicrm_option_value.'),
+ 'where' => 'civicrm_event.default_fee_id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Default Discount Fee ID'),
'description' => ts('FK to civicrm_option_value.'),
+ 'where' => 'civicrm_event.default_discount_fee_id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Title for ThankYou page.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.thankyou_title',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('ThankYou Text.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.thankyou_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Footer message.'),
'rows' => 6,
'cols' => 50,
+ 'where' => 'civicrm_event.thankyou_footer_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Pay Later Allowed'),
'description' => ts('if true - allows the user to send payment directly to the org later'),
+ 'where' => 'civicrm_event.is_pay_later',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Pay Later Text'),
'description' => ts('The text displayed to the user in the main form'),
+ 'where' => 'civicrm_event.pay_later_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Pay Later Receipt Text'),
'description' => ts('The receipt sent to the user instead of the normal receipt text'),
+ 'where' => 'civicrm_event.pay_later_receipt',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Partial Payments Enabled'),
'description' => ts('is partial payment enabled for this event'),
+ 'where' => 'civicrm_event.is_partial_payment',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Initial amount label for partial payment'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_event.initial_amount_label',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Initial Amount Help Text'),
'description' => ts('Initial amount help text for partial payment'),
+ 'where' => 'civicrm_event.initial_amount_help_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
20,
2
],
+ 'where' => 'civicrm_event.min_initial_amount',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Allow Multiple Registrations'),
'description' => ts('if true - allows the user to register multiple participants for event'),
+ 'where' => 'civicrm_event.is_multiple_registrations',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum number of additional participants per registration'),
'description' => ts('Maximum number of additional participants that can be registered on a single booking'),
+ 'where' => 'civicrm_event.max_additional_participants',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Does Event allow multiple registrations from same email address?'),
'description' => ts('if true - allows the user to register multiple registrations from same email address.'),
+ 'where' => 'civicrm_event.allow_same_participant_emails',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Waitlist Enabled'),
'description' => ts('Whether the event has waitlist support.'),
+ 'where' => 'civicrm_event.has_waitlist',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Requires Approval'),
'description' => ts('Whether participants require approval before they can finish registering.'),
+ 'where' => 'civicrm_event.requires_approval',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Expiration Time'),
'description' => ts('Expire pending but unconfirmed registrations after this many hours.'),
+ 'where' => 'civicrm_event.expiration_time',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Allow Self-service Cancellation or Transfer'),
'description' => ts('Allow self service cancellation or transfer for event?'),
+ 'where' => 'civicrm_event.allow_selfcancelxfer',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Self-service Cancellation or Transfer Time'),
'description' => ts('Number of hours prior to event start date to allow self-service cancellation or transfer.'),
+ 'where' => 'civicrm_event.selfcancelxfer_time',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'description' => ts('Text to display when the event is full, but participants can signup for a waitlist.'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_event.waitlist_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'description' => ts('Text to display when the approval is required to complete registration for an event.'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_event.approval_req_text',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'title' => ts('Is an Event Template'),
'description' => ts('whether the event has template'),
'required' => TRUE,
+ 'where' => 'civicrm_event.is_template',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'import' => TRUE,
'where' => 'civicrm_event.template_title',
'headerPattern' => '/(template.)?title$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Created By Contact ID'),
'description' => ts('FK to civicrm_contact, who created this event'),
+ 'where' => 'civicrm_event.created_id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Event Created Date'),
'description' => ts('Date and time that event was created.'),
+ 'where' => 'civicrm_event.created_date',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Campaign'),
'description' => ts('The campaign for which this event has been created.'),
+ 'where' => 'civicrm_event.campaign_id',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'bao' => 'CRM_Event_BAO_Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is shared through social media'),
'description' => ts('Can people share the event through social media?'),
+ 'where' => 'civicrm_event.is_share',
'default' => '1',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is the booking confirmation screen enabled?'),
'description' => ts('If false, the event booking confirmation screen gets skipped'),
+ 'where' => 'civicrm_event.is_confirm_enabled',
'default' => '1',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Parent Event ID'),
'description' => ts('Implicit FK to civicrm_event: parent event'),
+ 'where' => 'civicrm_event.parent_event_id',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Subevent Slot Label ID'),
'description' => ts('Subevent slot label. Implicit FK to civicrm_option_value where option_group = conference_slot.'),
+ 'where' => 'civicrm_event.slot_label_id',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Dedupe Rule'),
'description' => ts('Rule to use when matching registrations for this event'),
+ 'where' => 'civicrm_event.dedupe_rule_group_id',
'default' => 'NULL',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is billing block required'),
'description' => ts('if true than billing block is required this event'),
+ 'where' => 'civicrm_event.is_billing_required',
'default' => '0',
'table_name' => 'civicrm_event',
'entity' => 'Event',
'import' => TRUE,
'where' => 'civicrm_participant.id',
'headerPattern' => '/(^(participant(.)?)?id$)/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'import' => TRUE,
'where' => 'civicrm_participant.contact_id',
'headerPattern' => '/contact(.?id)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'import' => TRUE,
'where' => 'civicrm_participant.event_id',
'headerPattern' => '/event id$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'import' => TRUE,
'where' => 'civicrm_participant.status_id',
'headerPattern' => '/(participant.)?(status)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_participant',
'import' => TRUE,
'where' => 'civicrm_participant.role_id',
'headerPattern' => '/(participant.)?(role)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_participant',
'import' => TRUE,
'where' => 'civicrm_participant.register_date',
'headerPattern' => '/^(r(egister\s)?date)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'import' => TRUE,
'where' => 'civicrm_participant.source',
'headerPattern' => '/(participant.)?(source)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'import' => TRUE,
'where' => 'civicrm_participant.fee_level',
'headerPattern' => '/^(f(ee\s)?level)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant',
'entity' => 'Participant',
'title' => ts('Test'),
'import' => TRUE,
'where' => 'civicrm_participant.is_test',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_participant',
'import' => TRUE,
'where' => 'civicrm_participant.is_pay_later',
'headerPattern' => '/(is.)?(pay(.)?later)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_participant',
'description' => ts('FK to Participant ID'),
'import' => TRUE,
'where' => 'civicrm_participant.registered_by_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_participant',
'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',
'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',
'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',
'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',
'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',
'import' => TRUE,
'where' => 'civicrm_participant.transferred_to_contact_id',
'headerPattern' => '/transfer(.?id)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_participant',
'title' => ts('Payment ID'),
'description' => ts('Participant Payment Id'),
'required' => TRUE,
+ 'where' => 'civicrm_participant_payment.id',
'table_name' => 'civicrm_participant_payment',
'entity' => 'ParticipantPayment',
'bao' => 'CRM_Event_BAO_ParticipantPayment',
'title' => ts('Participant ID'),
'description' => ts('Participant Id (FK)'),
'required' => TRUE,
+ 'where' => 'civicrm_participant_payment.participant_id',
'table_name' => 'civicrm_participant_payment',
'entity' => 'ParticipantPayment',
'bao' => 'CRM_Event_BAO_ParticipantPayment',
'title' => ts('Contribution'),
'description' => ts('FK to contribution table.'),
'required' => TRUE,
+ 'where' => 'civicrm_participant_payment.contribution_id',
'table_name' => 'civicrm_participant_payment',
'entity' => 'ParticipantPayment',
'bao' => 'CRM_Event_BAO_ParticipantPayment',
'title' => ts('Participant Status Type ID'),
'description' => ts('unique participant status type id'),
'required' => TRUE,
+ 'where' => 'civicrm_participant_status_type.id',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'where' => 'civicrm_participant_status_type.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'description' => ts('localized label for display of this status type'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_participant_status_type.label',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'description' => ts('the general group of status type this one belongs to'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_participant_status_type.class',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Participant Status Is Reserved?>'),
'description' => ts('whether this is a status type required by the system'),
+ 'where' => 'civicrm_participant_status_type.is_reserved',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Participant Status is Active'),
'description' => ts('whether this status type is active'),
+ 'where' => 'civicrm_participant_status_type.is_active',
'default' => '1',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Participant Status Counts?'),
'description' => ts('whether this status type is counted against event size limit'),
+ 'where' => 'civicrm_participant_status_type.is_counted',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'title' => ts('Order'),
'description' => ts('controls sort order'),
'required' => TRUE,
+ 'where' => 'civicrm_participant_status_type.weight',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Participant Status Visibility'),
'description' => ts('whether the status type is visible to the public, an implicit foreign key to option_value.value related to the `visibility` option_group'),
+ 'where' => 'civicrm_participant_status_type.visibility_id',
'table_name' => 'civicrm_participant_status_type',
'entity' => 'ParticipantStatusType',
'bao' => 'CRM_Event_BAO_ParticipantStatusType',
'title' => ts('Currency ID'),
'description' => ts('Currency Id'),
'required' => TRUE,
+ 'where' => 'civicrm_currency.id',
'table_name' => 'civicrm_currency',
'entity' => 'Currency',
'bao' => 'CRM_Financial_DAO_Currency',
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'where' => 'civicrm_currency.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_currency',
'entity' => 'Currency',
'description' => ts('Currency Symbol'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_currency.symbol',
'table_name' => 'civicrm_currency',
'entity' => 'Currency',
'bao' => 'CRM_Financial_DAO_Currency',
'size' => CRM_Utils_Type::FOUR,
'import' => TRUE,
'where' => 'civicrm_currency.numeric_code',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_currency',
'entity' => 'Currency',
'description' => ts('Full currency name'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_currency.full_name',
'table_name' => 'civicrm_currency',
'entity' => 'Currency',
'bao' => 'CRM_Financial_DAO_Currency',
'title' => ts('Entity Financial Account ID'),
'description' => ts('ID'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_account.id',
'table_name' => 'civicrm_entity_financial_account',
'entity' => 'EntityFinancialAccount',
'bao' => 'CRM_Financial_DAO_EntityFinancialAccount',
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'where' => 'civicrm_entity_financial_account.entity_table',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_entity_financial_account',
'entity' => 'EntityFinancialAccount',
'title' => ts('Entity ID'),
'description' => ts('Links to an id in the entity_table, such as vid in civicrm_financial_type'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_account.entity_id',
'table_name' => 'civicrm_entity_financial_account',
'entity' => 'EntityFinancialAccount',
'bao' => 'CRM_Financial_DAO_EntityFinancialAccount',
'title' => ts('Account Relationship'),
'description' => ts('FK to a new civicrm_option_value (account_relationship)'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_account.account_relationship',
'table_name' => 'civicrm_entity_financial_account',
'entity' => 'EntityFinancialAccount',
'bao' => 'CRM_Financial_DAO_EntityFinancialAccount',
'title' => ts('Financial Account'),
'description' => ts('FK to the financial_account_id'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_account.financial_account_id',
'table_name' => 'civicrm_entity_financial_account',
'entity' => 'EntityFinancialAccount',
'bao' => 'CRM_Financial_DAO_EntityFinancialAccount',
'title' => ts('Entity Financial Transaction ID'),
'description' => ts('ID'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_trxn.id',
'table_name' => 'civicrm_entity_financial_trxn',
'entity' => 'EntityFinancialTrxn',
'bao' => 'CRM_Financial_DAO_EntityFinancialTrxn',
'size' => CRM_Utils_Type::BIG,
'import' => TRUE,
'where' => 'civicrm_entity_financial_trxn.entity_table',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_entity_financial_trxn',
'entity' => 'EntityFinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'required' => TRUE,
+ 'where' => 'civicrm_entity_financial_trxn.entity_id',
'table_name' => 'civicrm_entity_financial_trxn',
'entity' => 'EntityFinancialTrxn',
'bao' => 'CRM_Financial_DAO_EntityFinancialTrxn',
'name' => 'financial_trxn_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction Id'),
+ 'where' => 'civicrm_entity_financial_trxn.financial_trxn_id',
'table_name' => 'civicrm_entity_financial_trxn',
'entity' => 'EntityFinancialTrxn',
'bao' => 'CRM_Financial_DAO_EntityFinancialTrxn',
'title' => ts('Financial Account ID'),
'description' => ts('ID'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_account.id',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_financial_account.name',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contact ID'),
'description' => ts('FK to Contact ID that is responsible for the funds in this account'),
+ 'where' => 'civicrm_financial_account.contact_id',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'title' => ts('Financial Account Type'),
'description' => ts('pseudo FK into civicrm_option_value.'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_account.financial_account_type_id',
'default' => '3',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'description' => ts('Optional value for mapping monies owed and received to accounting system codes.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
- 'export' => TRUE,
'where' => 'civicrm_financial_account.accounting_code',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'description' => ts('Optional value for mapping account types to accounting system account categories (QuickBooks Account Type Codes for example).'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
- 'export' => TRUE,
'where' => 'civicrm_financial_account.account_type_code',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'description' => ts('Financial Type Description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_financial_account.description',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Account Parent'),
'description' => ts('Parent ID in account hierarchy'),
+ 'where' => 'civicrm_financial_account.parent_id',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Header Financial Account?'),
'description' => ts('Is this a header account which does not allow transactions to be posted against it directly, but only to its sub-accounts?'),
+ 'where' => 'civicrm_financial_account.is_header_account',
'default' => '0',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Deductible Financial Account?'),
'description' => ts('Is this account tax-deductible?'),
+ 'where' => 'civicrm_financial_account.is_deductible',
'default' => '1',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Tax Financial Account?'),
'description' => ts('Is this account for taxes?'),
+ 'where' => 'civicrm_financial_account.is_tax',
'default' => '0',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
10,
8
],
+ 'where' => 'civicrm_financial_account.tax_rate',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Reserved Financial Account?'),
'description' => ts('Is this a predefined system object?'),
+ 'where' => 'civicrm_financial_account.is_reserved',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Financial Account is Active'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_financial_account.is_active',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Default Financial Account'),
'description' => ts('Is this account the default one (or default tax one) for its financial_account_type?'),
+ 'where' => 'civicrm_financial_account.is_default',
'table_name' => 'civicrm_financial_account',
'entity' => 'FinancialAccount',
'bao' => 'CRM_Financial_BAO_FinancialAccount',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Item ID'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_item.id',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'title' => ts('Financial Item Created Date'),
'description' => ts('Date and time the item was created'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_item.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'title' => ts('Financial Item Transaction Date'),
'description' => ts('Date and time of the source transaction'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_item.transaction_date',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'title' => ts('Financial Item Contact ID'),
'description' => ts('FK to Contact ID of contact the item is from'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_financial_item.contact_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'description' => ts('Human readable description of this item, to ease display without lookup of source item.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_financial_item.description',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
20,
2
],
+ 'where' => 'civicrm_financial_item.amount',
+ 'headerPattern' => '/unit?.?amoun/i',
+ 'dataPattern' => '/^\d+(\.\d{2})?$/',
'default' => '0',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'description' => ts('Currency for the amount'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
- 'export' => TRUE,
'where' => 'civicrm_financial_item.currency',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Account ID'),
'description' => ts('FK to civicrm_financial_account'),
+ 'where' => 'civicrm_financial_item.financial_account_id',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Item Status ID'),
'description' => ts('Payment status: test, paid, part_paid, unpaid (if empty assume unpaid)'),
- 'export' => TRUE,
'where' => 'civicrm_financial_item.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'description' => ts('The table providing the source of this item such as civicrm_line_item'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_financial_item.entity_table',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Entity ID'),
'description' => ts('The specific source item that is responsible for the creation of this financial_item'),
+ 'where' => 'civicrm_financial_item.entity_id',
'table_name' => 'civicrm_financial_item',
'entity' => 'FinancialItem',
'bao' => 'CRM_Financial_BAO_FinancialItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction ID'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_trxn.id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction From Account'),
'description' => ts('FK to financial_account table.'),
+ 'where' => 'civicrm_financial_trxn.from_financial_account_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Transaction To Account'),
'description' => ts('FK to financial_financial_account table.'),
+ 'where' => 'civicrm_financial_trxn.to_financial_account_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Financial Transaction Date'),
'description' => ts('date transaction occurred'),
+ 'where' => 'civicrm_financial_trxn.trxn_date',
'default' => 'NULL',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
20,
2
],
+ 'where' => 'civicrm_financial_trxn.total_amount',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
20,
2
],
+ 'where' => 'civicrm_financial_trxn.fee_amount',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
20,
2
],
+ 'where' => 'civicrm_financial_trxn.net_amount',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'description' => ts('Is this entry either a payment or a reversal of a payment?'),
'import' => TRUE,
'where' => 'civicrm_financial_trxn.is_payment',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_financial_trxn',
'description' => ts('Transaction id supplied by external processor. This may not be unique.'),
'maxlength' => 255,
'size' => 10,
+ 'where' => 'civicrm_financial_trxn.trxn_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'description' => ts('processor result code'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_financial_trxn.trxn_result_code',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'import' => TRUE,
'where' => 'civicrm_financial_trxn.status_id',
'headerPattern' => '/status/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Processor'),
'description' => ts('Payment Processor for this financial transaction'),
+ 'where' => 'civicrm_financial_trxn.payment_processor_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method'),
'description' => ts('FK to payment_instrument option group values'),
+ 'where' => 'civicrm_financial_trxn.payment_instrument_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Card Type ID'),
'description' => ts('FK to accept_creditcard option group values'),
+ 'where' => 'civicrm_financial_trxn.card_type_id',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'description' => ts('Check number'),
'maxlength' => 255,
'size' => 6,
+ 'where' => 'civicrm_financial_trxn.check_number',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'description' => ts('Last 4 digits of credit card'),
'maxlength' => 4,
'size' => 4,
+ 'where' => 'civicrm_financial_trxn.pan_truncation',
'table_name' => 'civicrm_financial_trxn',
'entity' => 'FinancialTrxn',
'bao' => 'CRM_Financial_DAO_FinancialTrxn',
'title' => ts('Financial Type ID'),
'description' => ts('ID of original financial_type so you can search this table by the financial_type.id and then select the relevant version based on the timestamp'),
'required' => TRUE,
+ 'where' => 'civicrm_financial_type.id',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'description' => ts('Financial Type Description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_financial_type.description',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Tax Deductible?'),
'description' => ts('Is this financial type tax-deductible? If true, contributions of this type may be fully OR partially deductible - non-deductible amount is stored in the Contribution record.'),
+ 'where' => 'civicrm_financial_type.is_deductible',
'default' => '1',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Financial Type is Reserved?'),
'description' => ts('Is this a predefined system object?'),
+ 'where' => 'civicrm_financial_type.is_reserved',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Financial Type Is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_financial_type.is_active',
'table_name' => 'civicrm_financial_type',
'entity' => 'FinancialType',
'bao' => 'CRM_Financial_BAO_FinancialType',
'title' => ts('Payment Processor ID'),
'description' => ts('Payment Processor ID'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_processor.id',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Payment Processor Domain'),
'description' => ts('Which Domain is this match entry for'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_processor.domain_id',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'description' => ts('Payment Processor Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_payment_processor.name',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'description' => ts('Payment Processor Descriptive Name.'),
'maxlength' => 127,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.title',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'description' => ts('Payment Processor Description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.description',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'name' => 'payment_processor_type_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Processor Type ID'),
+ 'where' => 'civicrm_payment_processor.payment_processor_type_id',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor is Active?'),
'description' => ts('Is this processor active?'),
+ 'where' => 'civicrm_payment_processor.is_active',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor Is Default?'),
'description' => ts('Is this processor the default?'),
+ 'where' => 'civicrm_payment_processor.is_default',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Test Processor?'),
'description' => ts('Is this processor for a test site?'),
+ 'where' => 'civicrm_payment_processor.is_test',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('User Name'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.user_name',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Password'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.password',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Signature'),
'rows' => 4,
'cols' => 40,
+ 'where' => 'civicrm_payment_processor.signature',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Site URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.url_site',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('API URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.url_api',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Recurring Payments URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.url_recur',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Button URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.url_button',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Subject'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.subject',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Suffix for PHP class name implementation'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor.class_name',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'title' => ts('Processor Billing Mode'),
'description' => ts('Billing Mode (deprecated)'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_processor.billing_mode',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor Supports Recurring?'),
'description' => ts('Can process recurring contributions'),
+ 'where' => 'civicrm_payment_processor.is_recur',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'bao' => 'CRM_Financial_BAO_PaymentProcessor',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Type'),
'description' => ts('Payment Type: Credit or Debit (deprecated)'),
+ 'where' => 'civicrm_payment_processor.payment_type',
'default' => '1',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method'),
'description' => ts('Payment Instrument ID'),
+ 'where' => 'civicrm_payment_processor.payment_instrument_id',
'default' => '1',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Accepted Credit Cards'),
'description' => ts('array of accepted credit card types'),
+ 'where' => 'civicrm_payment_processor.accepted_credit_cards',
'default' => 'NULL',
'table_name' => 'civicrm_payment_processor',
'entity' => 'PaymentProcessor',
'title' => ts('Payment Processor Type ID'),
'description' => ts('Payment Processor Type ID'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_processor_type.id',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'description' => ts('Payment Processor Name.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_payment_processor_type.name',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'description' => ts('Payment Processor Name.'),
'maxlength' => 127,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.title',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'description' => ts('Payment Processor Description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.description',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor Type Is Active?'),
'description' => ts('Is this processor active?'),
+ 'where' => 'civicrm_payment_processor_type.is_active',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor Type is Default?'),
'description' => ts('Is this processor the default?'),
+ 'where' => 'civicrm_payment_processor_type.is_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Label for User Name if used'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.user_name_label',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Label for password'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.password_label',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Label for Signature'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.signature_label',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Label for Subject'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.subject_label',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Suffix for PHP class name implementation'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.class_name',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Live Site URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_site_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default API Site URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_api_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Live Recurring Payments URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_recur_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Live Button URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_button_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Test Site URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_site_test_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Test API URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_api_test_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Test Recurring Payment URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_recur_test_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Default Test Button URL'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_processor_type.url_button_test_default',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'title' => ts('Billing Mode'),
'description' => ts('Billing Mode (deprecated)'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_processor_type.billing_mode',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Processor Type Supports Recurring?'),
'description' => ts('Can process recurring contributions'),
+ 'where' => 'civicrm_payment_processor_type.is_recur',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'bao' => 'CRM_Financial_BAO_PaymentProcessorType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Processor Type Payment Type'),
'description' => ts('Payment Type: Credit or Debit (deprecated)'),
+ 'where' => 'civicrm_payment_processor_type.payment_type',
'default' => '1',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Method'),
'description' => ts('Payment Instrument ID'),
+ 'where' => 'civicrm_payment_processor_type.payment_instrument_id',
'default' => '1',
'table_name' => 'civicrm_payment_processor_type',
'entity' => 'PaymentProcessorType',
'title' => ts('Payment Token ID'),
'description' => ts('Payment Token ID'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_token.id',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'title' => ts('Contact ID'),
'description' => ts('FK to Contact ID for the owner of the token'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_token.contact_id',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Payment Processor ID'),
'required' => TRUE,
+ 'where' => 'civicrm_payment_token.payment_processor_id',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.token',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'type' => CRM_Utils_Type::T_TIMESTAMP,
'title' => ts('Created Date'),
'description' => ts('Date created'),
+ 'where' => 'civicrm_payment_token.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Created ID'),
'description' => ts('Contact ID of token creator'),
+ 'where' => 'civicrm_payment_token.created_id',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Expiry Date'),
'description' => ts('Date this token expires'),
+ 'where' => 'civicrm_payment_token.expiry_date',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('Email at the time of token creation. Useful for fraud forensics'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.email',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('Billing first name at the time of token creation. Useful for fraud forensics'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.billing_first_name',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('Billing middle name at the time of token creation. Useful for fraud forensics'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.billing_middle_name',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('Billing last name at the time of token creation. Useful for fraud forensics'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.billing_last_name',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('Holds the part of the card number or account details that may be retained or displayed'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.masked_account_number',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'description' => ts('IP used when creating the token. Useful for fraud forensics'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_payment_token.ip_address',
'table_name' => 'civicrm_payment_token',
'entity' => 'PaymentToken',
'bao' => 'CRM_Financial_DAO_PaymentToken',
'title' => ts('Friend ID'),
'description' => ts('Friend ID'),
'required' => TRUE,
+ 'where' => 'civicrm_tell_friend.id',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_tell_friend.entity_table',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'title' => ts('Entity ID'),
'description' => ts('Foreign key to the referenced item.'),
'required' => TRUE,
+ 'where' => 'civicrm_tell_friend.entity_id',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'title' => ts('Title'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_tell_friend.title',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Intro'),
'description' => ts('Introductory message to contributor or participant displayed on the Tell a Friend form.'),
+ 'where' => 'civicrm_tell_friend.intro',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Suggested Message'),
'description' => ts('Suggested message to friends, provided as default on the Tell A Friend form.'),
+ 'where' => 'civicrm_tell_friend.suggested_message',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_tell_friend.general_link',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'description' => ts('Text for Tell a Friend thank you page header and HTML title.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_tell_friend.thankyou_title',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Thank You Text'),
'description' => ts('Thank you message displayed on success page.'),
+ 'where' => 'civicrm_tell_friend.thankyou_text',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
+ 'where' => 'civicrm_tell_friend.is_active',
'table_name' => 'civicrm_tell_friend',
'entity' => 'Friend',
'bao' => 'CRM_Friend_BAO_Friend',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_grant.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'title' => ts('Contact ID'),
'description' => ts('Contact ID of contact record given grant belongs to.'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_grant.contact_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'bao' => 'CRM_Grant_BAO_Grant',
'description' => ts('Date on which grant application was received by donor.'),
'import' => TRUE,
'where' => 'civicrm_grant.application_received_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'description' => ts('Date on which grant decision was made.'),
'import' => TRUE,
'where' => 'civicrm_grant.decision_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'description' => ts('Date on which grant money transfer was made.'),
'import' => TRUE,
'where' => 'civicrm_grant.money_transfer_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'description' => ts('Date on which grant report is due.'),
'import' => TRUE,
'where' => 'civicrm_grant.grant_due_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'description' => ts('Yes/No field stating whether grant report was received by donor.'),
'import' => TRUE,
'where' => 'civicrm_grant.grant_report_received',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'title' => ts('Grant Type'),
'description' => ts('Type of grant. Implicit FK to civicrm_option_value in grant_type option_group.'),
'required' => TRUE,
- 'export' => TRUE,
'where' => 'civicrm_grant.grant_type_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'bao' => 'CRM_Grant_BAO_Grant',
],
'import' => TRUE,
'where' => 'civicrm_grant.amount_total',
- 'headerPattern' => '',
'dataPattern' => '/^\d+(\.\d{2})?$/',
'export' => TRUE,
'table_name' => 'civicrm_grant',
20,
2
],
+ 'where' => 'civicrm_grant.amount_requested',
+ 'dataPattern' => '/^\d+(\.\d{2})?$/',
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'bao' => 'CRM_Grant_BAO_Grant',
],
'import' => TRUE,
'where' => 'civicrm_grant.amount_granted',
- 'headerPattern' => '',
'dataPattern' => '/^\d+(\.\d{2})?$/',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'required' => TRUE,
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_grant.currency',
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'bao' => 'CRM_Grant_BAO_Grant',
'cols' => 60,
'import' => TRUE,
'where' => 'civicrm_grant.rationale',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_grant.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type.'),
+ 'where' => 'civicrm_grant.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_grant',
'entity' => 'Grant',
}
}
elseif ($type == 'url') {
- if ($this->url_tracking) {
+ if ($this->url_tracking && !empty($this->id)) {
// ensure that Google CSS and any .css files are not tracked.
if (!(strpos($token, 'css?family') || strpos($token, '.css'))) {
$data = CRM_Mailing_BAO_TrackableURL::getTrackerURL($token, $this->id, $event_queue_id);
$tracker->save();
}
$id = $tracker->id;
- $tracker->free();
$redirect = $config->userFrameworkResourceURL . "extern/url.php?u=$id";
$urlCache[$mailing_id . $url] = $redirect;
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Bounce Pattern ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_bounce_pattern.id',
'table_name' => 'civicrm_mailing_bounce_pattern',
'entity' => 'BouncePattern',
'bao' => 'CRM_Mailing_BAO_BouncePattern',
'title' => ts('Bounce Type'),
'description' => ts('Type of bounce'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_bounce_pattern.bounce_type_id',
'table_name' => 'civicrm_mailing_bounce_pattern',
'entity' => 'BouncePattern',
'bao' => 'CRM_Mailing_BAO_BouncePattern',
'description' => ts('A regexp to match a message to a bounce type'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_bounce_pattern.pattern',
'table_name' => 'civicrm_mailing_bounce_pattern',
'entity' => 'BouncePattern',
'bao' => 'CRM_Mailing_BAO_BouncePattern',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Bounce Type ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_bounce_type.id',
'table_name' => 'civicrm_mailing_bounce_type',
'entity' => 'BounceType',
'bao' => 'CRM_Mailing_DAO_BounceType',
'required' => TRUE,
'maxlength' => 24,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing_bounce_type.name',
'table_name' => 'civicrm_mailing_bounce_type',
'entity' => 'BounceType',
'bao' => 'CRM_Mailing_DAO_BounceType',
'description' => ts('A description of this bounce type'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_bounce_type.description',
'table_name' => 'civicrm_mailing_bounce_type',
'entity' => 'BounceType',
'bao' => 'CRM_Mailing_DAO_BounceType',
'title' => ts('Hold Threshold'),
'description' => ts('Number of bounces of this type required before the email address is put on bounce hold'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_bounce_type.hold_threshold',
'table_name' => 'civicrm_mailing_bounce_type',
'entity' => 'BounceType',
'bao' => 'CRM_Mailing_DAO_BounceType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing.id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Domain'),
'description' => ts('Which site is this mailing for'),
+ 'where' => 'civicrm_mailing.domain_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Header'),
'description' => ts('FK to the header component.'),
+ 'where' => 'civicrm_mailing.header_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Footer'),
'description' => ts('FK to the footer component.'),
+ 'where' => 'civicrm_mailing.footer_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Reply'),
'description' => ts('FK to the auto-responder component.'),
+ 'where' => 'civicrm_mailing.reply_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Unsubscribe'),
'description' => ts('FK to the unsubscribe component.'),
+ 'where' => 'civicrm_mailing.unsubscribe_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'name' => 'resubscribe_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Resubscribe'),
+ 'where' => 'civicrm_mailing.resubscribe_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Opt Out'),
'description' => ts('FK to the opt-out component.'),
+ 'where' => 'civicrm_mailing.optout_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('Mailing Name.'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing.name',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('differentiate between standalone mailings, A/B tests, and A/B final-winner'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing.mailing_type',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('From Header of mailing'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing.from_name',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('From Email of mailing'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing.from_email',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('Reply-To Email of mailing'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing.replyto_email',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mailing.template_type',
'default' => 'traditional',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Template Options (JSON)'),
'description' => ts('Advanced options used by the email templating system. (JSON encoded)'),
+ 'where' => 'civicrm_mailing.template_options',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('Subject of mailing'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing.subject',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Body Text'),
'description' => ts('Body of the mailing in text format.'),
+ 'where' => 'civicrm_mailing.body_text',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Body Html'),
'description' => ts('Body of the mailing in html format.'),
+ 'where' => 'civicrm_mailing.body_html',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Url Tracking'),
'description' => ts('Should we track URL click-throughs for this mailing?'),
+ 'where' => 'civicrm_mailing.url_tracking',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Forward Replies'),
'description' => ts('Should we forward replies back to the author?'),
+ 'where' => 'civicrm_mailing.forward_replies',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Auto Responder'),
'description' => ts('Should we enable the auto-responder?'),
+ 'where' => 'civicrm_mailing.auto_responder',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Track Mailing?'),
'description' => ts('Should we track when recipients open/read this mailing?'),
+ 'where' => 'civicrm_mailing.open_tracking',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Mailing Completed'),
'description' => ts('Has at least one job associated with this mailing finished?'),
+ 'where' => 'civicrm_mailing.is_completed',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Message Template'),
'description' => ts('FK to the message template.'),
+ 'where' => 'civicrm_mailing.msg_template_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Override Verp'),
'description' => ts('Should we overrite VERP address in Reply-To'),
+ 'where' => 'civicrm_mailing.override_verp',
'default' => '0',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Creator'),
'description' => ts('FK to Contact ID who first created this mailing'),
+ 'where' => 'civicrm_mailing.created_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'title' => ts('Mailing Created Date'),
'description' => ts('Date and time this mailing was created.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing.created_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'title' => ts('Modified Date'),
'description' => ts('When the mailing (or closely related entity) was created or modified or deleted.'),
'required' => FALSE,
- 'export' => TRUE,
'where' => 'civicrm_mailing.modified_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => 'CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Scheduled By'),
'description' => ts('FK to Contact ID who scheduled this mailing'),
+ 'where' => 'civicrm_mailing.scheduled_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'title' => ts('Mailing Scheduled Date'),
'description' => ts('Date and time this mailing was scheduled.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing.scheduled_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Approved By'),
'description' => ts('FK to Contact ID who approved this mailing'),
+ 'where' => 'civicrm_mailing.approver_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'title' => ts('Mailing Approved Date'),
'description' => ts('Date and time this mailing was approved.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing.approval_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Approval Status'),
'description' => ts('The status of this mailing. Values: none, approved, rejected'),
+ 'where' => 'civicrm_mailing.approval_status_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_LONGTEXT,
'title' => ts('Approval Note'),
'description' => ts('Note behind the decision.'),
+ 'where' => 'civicrm_mailing.approval_note',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Mailing Archived?'),
'description' => ts('Is this mailing archived?'),
+ 'where' => 'civicrm_mailing.is_archived',
'default' => '0',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'description' => ts('In what context(s) is the mailing contents visible (online viewing)'),
'maxlength' => 40,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mailing.visibility',
'default' => 'Public Pages',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Campaign'),
'description' => ts('The campaign for which this mailing has been initiated.'),
+ 'where' => 'civicrm_mailing.campaign_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('No Duplicate emails?'),
'description' => ts('Remove duplicate emails?'),
+ 'where' => 'civicrm_mailing.dedupe_email',
'default' => '0',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'name' => 'sms_provider_id',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing SMS Provider'),
+ 'where' => 'civicrm_mailing.sms_provider_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('Key for validating requests related to this mailing.'),
'maxlength' => 16,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_mailing.hash',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Location Type'),
'description' => ts('With email_selection_method, determines which email address to use'),
+ 'where' => 'civicrm_mailing.location_type_id',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'description' => ts('With location_type_id, determine how to choose the email address to use.'),
'maxlength' => 20,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing.email_selection_method',
'default' => 'automatic',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'description' => ts('Language of the content of the mailing. Useful for tokens.'),
'maxlength' => 5,
'size' => CRM_Utils_Type::SIX,
+ 'where' => 'civicrm_mailing.language',
'table_name' => 'civicrm_mailing',
'entity' => 'Mailing',
'bao' => 'CRM_Mailing_BAO_Mailing',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('MailingAB ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_abtest.id',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'description' => ts('Name of the A/B test'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_abtest.name',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'description' => ts('Status'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing_abtest.status',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing ID (A)'),
'description' => ts('The first experimental mailing ("A" condition)'),
+ 'where' => 'civicrm_mailing_abtest.mailing_id_a',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing ID (B)'),
'description' => ts('The second experimental mailing ("B" condition)'),
+ 'where' => 'civicrm_mailing_abtest.mailing_id_b',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing ID (C)'),
'description' => ts('The final, general mailing (derived from A or B)'),
+ 'where' => 'civicrm_mailing_abtest.mailing_id_c',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Domain ID'),
'description' => ts('Which site is this mailing for'),
+ 'where' => 'civicrm_mailing_abtest.domain_id',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'title' => ts('Testing Criteria'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing_abtest.testing_criteria',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'title' => ts('Winner Criteria'),
'maxlength' => 32,
'size' => CRM_Utils_Type::MEDIUM,
+ 'where' => 'civicrm_mailing_abtest.winner_criteria',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'description' => ts('What specific url to track'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_abtest.specific_url',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Declaration Time'),
'description' => ts('In how much time to declare winner'),
+ 'where' => 'civicrm_mailing_abtest.declare_winning_time',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'name' => 'group_percentage',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Group Percentage'),
+ 'where' => 'civicrm_mailing_abtest.group_percentage',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('AB Test Created By'),
'description' => ts('FK to Contact ID'),
+ 'where' => 'civicrm_mailing_abtest.created_id',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'bao' => 'CRM_Mailing_BAO_MailingAB',
'title' => ts('AB Test Created Date'),
'description' => ts('When was this item created'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_abtest.created_date',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_abtest',
'entity' => 'MailingAB',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Component ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_component.id',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'description' => ts('The name of this component'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mailing_component.name',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'description' => ts('Type of Component.'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_mailing_component.component_type',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'title' => ts('Subject'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_component.subject',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'description' => ts('Body of the component in html format.'),
'rows' => 8,
'cols' => 80,
+ 'where' => 'civicrm_mailing_component.body_html',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'description' => ts('Body of the component in text format.'),
'rows' => 8,
'cols' => 80,
+ 'where' => 'civicrm_mailing_component.body_text',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Mailing Component is Default?'),
'description' => ts('Is this the default component for this component_type?'),
+ 'where' => 'civicrm_mailing_component.is_default',
'default' => '0',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Mailing Component Is Active?'),
'description' => ts('Is this property active?'),
+ 'where' => 'civicrm_mailing_component.is_active',
'table_name' => 'civicrm_mailing_component',
'entity' => 'MailingComponent',
'bao' => 'CRM_Mailing_BAO_MailingComponent',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Group ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_group.id',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'title' => ts('Mailing'),
'description' => ts('The ID of a previous mailing to include/exclude recipients.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_group.mailing_id',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'description' => ts('Are the members of the group included or excluded?.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_mailing_group.group_type',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_mailing_group.entity_table',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'title' => ts('Mailing Group Entity'),
'description' => ts('Foreign key to the referenced item.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_group.entity_id',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Group Search'),
'description' => ts('The filtering search. custom search id or -1 for civicrm api search'),
+ 'where' => 'civicrm_mailing_group.search_id',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Mailing Group Search Arguments'),
'description' => ts('The arguments to be sent to the search function'),
+ 'where' => 'civicrm_mailing_group.search_args',
'table_name' => 'civicrm_mailing_group',
'entity' => 'MailingGroup',
'bao' => 'CRM_Mailing_DAO_MailingGroup',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Job ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_job.id',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'bao' => 'CRM_Mailing_BAO_MailingJob',
'title' => ts('Mailing'),
'description' => ts('The ID of the mailing this Job will send.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_job.mailing_id',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'bao' => 'CRM_Mailing_BAO_MailingJob',
'title' => ts('Mailing Scheduled Date'),
'description' => ts('date on which this job was scheduled.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_job.scheduled_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'title' => ts('Mailing Job Start Date'),
'description' => ts('date on which this job was started.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_job.start_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'title' => ts('Mailing Job End Date'),
'description' => ts('date on which this job ended.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_job.end_date',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'description' => ts('The state of this job'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_mailing_job.status',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'bao' => 'CRM_Mailing_BAO_MailingJob',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Mailing Job Is Test?'),
'description' => ts('Is this job for a test mail?'),
+ 'where' => 'civicrm_mailing_job.is_test',
'default' => '0',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'description' => ts('Type of mailling job: null | child '),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_job.job_type',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'bao' => 'CRM_Mailing_BAO_MailingJob',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Job Parent'),
'description' => ts('Parent job id'),
+ 'where' => 'civicrm_mailing_job.parent_id',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Job Offset'),
'description' => ts('Offset of the child job'),
+ 'where' => 'civicrm_mailing_job.job_offset',
'default' => '0',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Job Limit'),
'description' => ts('Queue size limit for each child job'),
+ 'where' => 'civicrm_mailing_job.job_limit',
'default' => '0',
'table_name' => 'civicrm_mailing_job',
'entity' => 'MailingJob',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Recipients ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_recipients.id',
'table_name' => 'civicrm_mailing_recipients',
'entity' => 'Recipients',
'bao' => 'CRM_Mailing_BAO_Recipients',
'title' => ts('Mailing'),
'description' => ts('The ID of the mailing this Job will send.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_recipients.mailing_id',
'table_name' => 'civicrm_mailing_recipients',
'entity' => 'Recipients',
'bao' => 'CRM_Mailing_BAO_Recipients',
'title' => ts('Mailing Recipient'),
'description' => ts('FK to Contact'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_recipients.contact_id',
'table_name' => 'civicrm_mailing_recipients',
'entity' => 'Recipients',
'bao' => 'CRM_Mailing_BAO_Recipients',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Recipient Email'),
'description' => ts('FK to Email'),
+ 'where' => 'civicrm_mailing_recipients.email_id',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_recipients',
'entity' => 'Recipients',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Recipient Phone'),
'description' => ts('FK to Phone'),
+ 'where' => 'civicrm_mailing_recipients.phone_id',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_recipients',
'entity' => 'Recipients',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Spool ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_spool.id',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'bao' => 'CRM_Mailing_BAO_Spool',
'title' => ts('Mailing Job'),
'description' => ts('The ID of the Job .'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_spool.job_id',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'bao' => 'CRM_Mailing_BAO_Spool',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Recipient Email'),
'description' => ts('The email of the receipients this mail is to be sent.'),
+ 'where' => 'civicrm_mailing_spool.recipient_email',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'bao' => 'CRM_Mailing_BAO_Spool',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Headers'),
'description' => ts('The header information of this mailing .'),
+ 'where' => 'civicrm_mailing_spool.headers',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'bao' => 'CRM_Mailing_BAO_Spool',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Body'),
'description' => ts('The body of this mailing.'),
+ 'where' => 'civicrm_mailing_spool.body',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'bao' => 'CRM_Mailing_BAO_Spool',
'title' => ts('Added'),
'description' => ts('date on which this job was added.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_spool.added_at',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'title' => ts('Removed'),
'description' => ts('date on which this job was removed.'),
'required' => FALSE,
+ 'where' => 'civicrm_mailing_spool.removed_at',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_spool',
'entity' => 'Spool',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Trackable URL ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_trackable_url.id',
'table_name' => 'civicrm_mailing_trackable_url',
'entity' => 'TrackableURL',
'bao' => 'CRM_Mailing_BAO_TrackableURL',
'title' => ts('Url'),
'description' => ts('The URL to be tracked.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_trackable_url.url',
'table_name' => 'civicrm_mailing_trackable_url',
'entity' => 'TrackableURL',
'bao' => 'CRM_Mailing_BAO_TrackableURL',
'title' => ts('Mailing'),
'description' => ts('FK to the mailing'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_trackable_url.mailing_id',
'table_name' => 'civicrm_mailing_trackable_url',
'entity' => 'TrackableURL',
'bao' => 'CRM_Mailing_BAO_TrackableURL',
if (!$q) {
return NULL;
}
- $q->free();
$delivered = new CRM_Mailing_Event_BAO_Delivered();
$delivered->time_stamp = date('YmdHis');
if ($dao->fetch()) {
$contact_id = $dao->contact_id;
}
- $dao->free();
}
$transaction = new CRM_Core_Transaction();
];
}
- $dao->free();
return $groups;
}
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Bounce ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_bounce.id',
'table_name' => 'civicrm_mailing_event_bounce',
'entity' => 'Bounce',
'bao' => 'CRM_Mailing_Event_BAO_Bounce',
'title' => ts('Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_bounce.event_queue_id',
'table_name' => 'civicrm_mailing_event_bounce',
'entity' => 'Bounce',
'bao' => 'CRM_Mailing_Event_BAO_Bounce',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Bounce Type'),
'description' => ts('What type of bounce was it?'),
+ 'where' => 'civicrm_mailing_event_bounce.bounce_type_id',
'table_name' => 'civicrm_mailing_event_bounce',
'entity' => 'Bounce',
'bao' => 'CRM_Mailing_Event_BAO_Bounce',
'description' => ts('The reason the email bounced.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_event_bounce.bounce_reason',
'table_name' => 'civicrm_mailing_event_bounce',
'entity' => 'Bounce',
'bao' => 'CRM_Mailing_Event_BAO_Bounce',
'title' => ts('Timestamp'),
'description' => ts('When this bounce event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_bounce.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_bounce',
'entity' => 'Bounce',
*/
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(), 'event_subscribe_id', 'civicrm_mailing_event_subscribe', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Confirmation ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_confirm.id',
'table_name' => 'civicrm_mailing_event_confirm',
'entity' => 'Confirm',
'bao' => 'CRM_Mailing_Event_BAO_Confirm',
'title' => ts('Mailing Subscribe ID'),
'description' => ts('FK to civicrm_mailing_event_subscribe'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_confirm.event_subscribe_id',
'table_name' => 'civicrm_mailing_event_confirm',
'entity' => 'Confirm',
'bao' => 'CRM_Mailing_Event_BAO_Confirm',
'title' => ts('Confirm Timestamp'),
'description' => ts('When this confirmation event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_confirm.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_confirm',
'entity' => 'Confirm',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Delivered ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_delivered.id',
'table_name' => 'civicrm_mailing_event_delivered',
'entity' => 'Delivered',
'bao' => 'CRM_Mailing_Event_BAO_Delivered',
'title' => ts('Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_delivered.event_queue_id',
'table_name' => 'civicrm_mailing_event_delivered',
'entity' => 'Delivered',
'bao' => 'CRM_Mailing_Event_BAO_Delivered',
'title' => ts('Timestamp'),
'description' => ts('When this delivery event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_delivered.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_delivered',
'entity' => 'Delivered',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'dest_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Forward ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_forward.id',
'table_name' => 'civicrm_mailing_event_forward',
'entity' => 'Forward',
'bao' => 'CRM_Mailing_Event_BAO_Forward',
'title' => ts('Mailing Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_forward.event_queue_id',
'table_name' => 'civicrm_mailing_event_forward',
'entity' => 'Forward',
'bao' => 'CRM_Mailing_Event_BAO_Forward',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Destination Queue'),
'description' => ts('FK to EventQueue for destination'),
+ 'where' => 'civicrm_mailing_event_forward.dest_queue_id',
'table_name' => 'civicrm_mailing_event_forward',
'entity' => 'Forward',
'bao' => 'CRM_Mailing_Event_BAO_Forward',
'title' => ts('Timestamp'),
'description' => ts('When this forward event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_forward.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_forward',
'entity' => 'Forward',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Opened ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_opened.id',
'table_name' => 'civicrm_mailing_event_opened',
'entity' => 'Opened',
'bao' => 'CRM_Mailing_Event_BAO_Opened',
'title' => ts('Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_opened.event_queue_id',
'table_name' => 'civicrm_mailing_event_opened',
'entity' => 'Opened',
'bao' => 'CRM_Mailing_Event_BAO_Opened',
'title' => ts('Timestamp'),
'description' => ts('When this open event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_opened.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_opened',
'entity' => 'Opened',
*/
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(), 'job_id', 'civicrm_mailing_job', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'email_id', 'civicrm_email', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Event Queue ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_queue.id',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
'bao' => 'CRM_Mailing_Event_BAO_Queue',
'title' => ts('Job ID'),
'description' => ts('FK to Job'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_queue.job_id',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
'bao' => 'CRM_Mailing_Event_BAO_Queue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Email ID'),
'description' => ts('FK to Email'),
+ 'where' => 'civicrm_mailing_event_queue.email_id',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
'title' => ts('Contact ID'),
'description' => ts('FK to Contact'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_queue.contact_id',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
'bao' => 'CRM_Mailing_Event_BAO_Queue',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_event_queue.hash',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
'bao' => 'CRM_Mailing_Event_BAO_Queue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Phone ID'),
'description' => ts('FK to Phone'),
+ 'where' => 'civicrm_mailing_event_queue.phone_id',
'default' => 'NULL',
'table_name' => 'civicrm_mailing_event_queue',
'entity' => 'Queue',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Reply ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_reply.id',
'table_name' => 'civicrm_mailing_event_reply',
'entity' => 'Reply',
'bao' => 'CRM_Mailing_Event_BAO_Reply',
'title' => ts('Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_reply.event_queue_id',
'table_name' => 'civicrm_mailing_event_reply',
'entity' => 'Reply',
'bao' => 'CRM_Mailing_Event_BAO_Reply',
'title' => ts('Reply Timestamp'),
'description' => ts('When this reply event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_reply.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_reply',
'entity' => 'Reply',
*/
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(), 'group_id', 'civicrm_group', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'contact_id', 'civicrm_contact', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Mailing Subscribe ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_subscribe.id',
'table_name' => 'civicrm_mailing_event_subscribe',
'entity' => 'Subscribe',
'bao' => 'CRM_Mailing_Event_BAO_Subscribe',
'title' => ts('Mailing Subscribe Group'),
'description' => ts('FK to Group'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_subscribe.group_id',
'table_name' => 'civicrm_mailing_event_subscribe',
'entity' => 'Subscribe',
'bao' => 'CRM_Mailing_Event_BAO_Subscribe',
'title' => ts('Mailing Subscribe Contact'),
'description' => ts('FK to Contact'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_subscribe.contact_id',
'table_name' => 'civicrm_mailing_event_subscribe',
'entity' => 'Subscribe',
'bao' => 'CRM_Mailing_Event_BAO_Subscribe',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_mailing_event_subscribe.hash',
'table_name' => 'civicrm_mailing_event_subscribe',
'entity' => 'Subscribe',
'bao' => 'CRM_Mailing_Event_BAO_Subscribe',
'title' => ts('Mailing Subscribe Timestamp'),
'description' => ts('When this subscription event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_subscribe.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_subscribe',
'entity' => 'Subscribe',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
Civi::$statics[__CLASS__]['links'][] = new CRM_Core_Reference_Basic(self::getTableName(), 'trackable_url_id', 'civicrm_mailing_trackable_url', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Trackable URL Open ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_trackable_url_open.id',
'table_name' => 'civicrm_mailing_event_trackable_url_open',
'entity' => 'TrackableURLOpen',
'bao' => 'CRM_Mailing_Event_BAO_TrackableURLOpen',
'title' => ts('Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_trackable_url_open.event_queue_id',
'table_name' => 'civicrm_mailing_event_trackable_url_open',
'entity' => 'TrackableURLOpen',
'bao' => 'CRM_Mailing_Event_BAO_TrackableURLOpen',
'title' => ts('Trackable Url'),
'description' => ts('FK to TrackableURL'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_trackable_url_open.trackable_url_id',
'table_name' => 'civicrm_mailing_event_trackable_url_open',
'entity' => 'TrackableURLOpen',
'bao' => 'CRM_Mailing_Event_BAO_TrackableURLOpen',
'title' => ts('Timestamp'),
'description' => ts('When this trackable URL open occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_trackable_url_open.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_trackable_url_open',
'entity' => 'TrackableURLOpen',
*/
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(), 'event_queue_id', 'civicrm_mailing_event_queue', 'id');
CRM_Core_DAO_AllCoreTables::invoke(__CLASS__, 'links_callback', Civi::$statics[__CLASS__]['links']);
}
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Unsubscribe ID'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_unsubscribe.id',
'table_name' => 'civicrm_mailing_event_unsubscribe',
'entity' => 'Unsubscribe',
'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
'title' => ts('Mailing Event Queue'),
'description' => ts('FK to EventQueue'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_unsubscribe.event_queue_id',
'table_name' => 'civicrm_mailing_event_unsubscribe',
'entity' => 'Unsubscribe',
'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
'title' => ts('Unsubscribe is for Organization?'),
'description' => ts('Unsubscribe at org- or group-level'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_unsubscribe.org_unsubscribe',
'table_name' => 'civicrm_mailing_event_unsubscribe',
'entity' => 'Unsubscribe',
'bao' => 'CRM_Mailing_Event_BAO_Unsubscribe',
'title' => ts('Unsubscribe Timestamp'),
'description' => ts('When this delivery event occurred.'),
'required' => TRUE,
+ 'where' => 'civicrm_mailing_event_unsubscribe.time_stamp',
'default' => 'CURRENT_TIMESTAMP',
'table_name' => 'civicrm_mailing_event_unsubscribe',
'entity' => 'Unsubscribe',
'import' => TRUE,
'where' => 'civicrm_membership.id',
'headerPattern' => '/^(m(embership\s)?id)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'import' => TRUE,
'where' => 'civicrm_membership.membership_type_id',
'headerPattern' => '/^(m(embership\s)?type)$/i',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'import' => TRUE,
'where' => 'civicrm_membership.source',
'headerPattern' => '/^(member(ship?))?source$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'import' => TRUE,
'where' => 'civicrm_membership.status_id',
'headerPattern' => '/(member(ship|).)?(status)$/i',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'import' => TRUE,
'where' => 'civicrm_membership.is_override',
'headerPattern' => '/override$/i',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'description' => ts('Then end date of membership status override if \'Override until selected date\' override type is selected.'),
'import' => TRUE,
'where' => 'civicrm_membership.status_override_end_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => 'NULL',
'table_name' => 'civicrm_membership',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Primary Member ID'),
'description' => ts('Optional FK to Parent Membership.'),
- 'export' => TRUE,
'where' => 'civicrm_membership.owner_membership_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'bao' => 'CRM_Member_BAO_Membership',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Max Related'),
'description' => ts('Maximum number of related memberships (membership_type override).'),
+ 'where' => 'civicrm_membership.max_related',
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'bao' => 'CRM_Member_BAO_Membership',
'import' => TRUE,
'where' => 'civicrm_membership.is_test',
'headerPattern' => '/(is.)?test(.member(ship)?)?/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_membership',
'import' => TRUE,
'where' => 'civicrm_membership.is_pay_later',
'headerPattern' => '/(is.)?(pay(.)?later)$/i',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_membership',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Recurring Contribution'),
'description' => ts('Conditional foreign key to civicrm_contribution_recur id. Each membership in connection with a recurring contribution carries a foreign key to the recurring contribution record. This assumes we can track these processor initiated events.'),
+ 'where' => 'civicrm_membership.contribution_recur_id',
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'bao' => 'CRM_Member_BAO_Membership',
'description' => ts('The campaign for which this membership is attached.'),
'import' => TRUE,
'where' => 'civicrm_membership.campaign_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership',
'entity' => 'Membership',
'title' => ts('Membership Block ID'),
'description' => ts('Membership Id'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_block.id',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'description' => ts('Name for Membership Status'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_membership_block.entity_table',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'title' => ts('Membership Block Entity ID'),
'description' => ts('FK to civicrm_contribution_page.id'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_block.entity_id',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'description' => ts('Membership types to be exposed by this block'),
'maxlength' => 1024,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_block.membership_types',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Block Default Type'),
'description' => ts('Optional foreign key to membership_type'),
+ 'where' => 'civicrm_membership_block.membership_type_default',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Membership Block Display Minimum Fee'),
'description' => ts('Display minimum membership fee'),
+ 'where' => 'civicrm_membership_block.display_min_fee',
'default' => '1',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Membership Block Is Separate Payment'),
'description' => ts('Should membership transactions be processed separately'),
+ 'where' => 'civicrm_membership_block.is_separate_payment',
'default' => '1',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'description' => ts('Title to display at top of block'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_block.new_title',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Membership Block New Text'),
'description' => ts('Text to display below title'),
+ 'where' => 'civicrm_membership_block.new_text',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'description' => ts('Title for renewal'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_block.renewal_title',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Membership Block Renewal Text'),
'description' => ts('Text to display for member renewal'),
+ 'where' => 'civicrm_membership_block.renewal_text',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'bao' => 'CRM_Member_BAO_MembershipBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Required'),
'description' => ts('Is membership sign up optional'),
+ 'where' => 'civicrm_membership_block.is_required',
'default' => '0',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this membership_block enabled'),
+ 'where' => 'civicrm_membership_block.is_active',
'default' => '1',
'table_name' => 'civicrm_membership_block',
'entity' => 'MembershipBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Log ID'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_log.id',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'title' => ts('Membership ID'),
'description' => ts('FK to Membership table'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_log.membership_id',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'title' => ts('Membership Status'),
'description' => ts('New status assigned to membership by this action. FK to Membership Status'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_log.status_id',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Membership Log Start Date'),
'description' => ts('New membership period start date'),
+ 'where' => 'civicrm_membership_log.start_date',
+ 'dataPattern' => '/\d{4}-?\d{2}-?\d{2}/',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Membership Log End Date'),
'description' => ts('New membership period expiration date.'),
+ 'where' => 'civicrm_membership_log.end_date',
+ 'dataPattern' => '/\d{4}-?\d{2}-?\d{2}/',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Log modified By'),
'description' => ts('FK to Contact ID of person under whose credentials this data modification was made.'),
+ 'where' => 'civicrm_membership_log.modified_id',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_DATE,
'title' => ts('Membership Change Date'),
'description' => ts('Date this membership modification action was logged.'),
+ 'where' => 'civicrm_membership_log.modified_date',
+ 'dataPattern' => '/\d{4}-?\d{2}-?\d{2}/',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Type ID'),
'description' => ts('FK to Membership Type.'),
+ 'where' => 'civicrm_membership_log.membership_type_id',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum Related Memberships'),
'description' => ts('Maximum number of related memberships.'),
+ 'where' => 'civicrm_membership_log.max_related',
'table_name' => 'civicrm_membership_log',
'entity' => 'MembershipLog',
'bao' => 'CRM_Member_BAO_MembershipLog',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Payment ID'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_payment.id',
'table_name' => 'civicrm_membership_payment',
'entity' => 'MembershipPayment',
'bao' => 'CRM_Member_BAO_MembershipPayment',
'title' => ts('Membership'),
'description' => ts('FK to Membership table'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_payment.membership_id',
'table_name' => 'civicrm_membership_payment',
'entity' => 'MembershipPayment',
'bao' => 'CRM_Member_BAO_MembershipPayment',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution'),
'description' => ts('FK to contribution table.'),
+ 'where' => 'civicrm_membership_payment.contribution_id',
'table_name' => 'civicrm_membership_payment',
'entity' => 'MembershipPayment',
'bao' => 'CRM_Member_BAO_MembershipPayment',
'title' => ts('Membership Status ID'),
'description' => ts('Membership Id'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_status.id',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_membership_status.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'description' => ts('Label for Membership Status'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_status.label',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'description' => ts('Event when this status starts.'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_membership_status.start_event',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'description' => ts('Unit used for adjusting from start_event.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_membership_status.start_event_adjust_unit',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Start Event Adjust Interval'),
'description' => ts('Status range begins this many units from start_event.'),
+ 'where' => 'civicrm_membership_status.start_event_adjust_interval',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'description' => ts('Event after which this status ends.'),
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_membership_status.end_event',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'description' => ts('Unit used for adjusting from the ending event.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_membership_status.end_event_adjust_unit',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('End Event Adjust Interval'),
'description' => ts('Status range ends this many units from end_event.'),
+ 'where' => 'civicrm_membership_status.end_event_adjust_interval',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Current Membership?'),
'description' => ts('Does this status aggregate to current members (e.g. New, Renewed, Grace might all be TRUE... while Unrenewed, Lapsed, Inactive would be FALSE).'),
+ 'where' => 'civicrm_membership_status.is_current_member',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Administrator Only?'),
'description' => ts('Is this status for admin/manual assignment only.'),
+ 'where' => 'civicrm_membership_status.is_admin',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'name' => 'weight',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
+ 'where' => 'civicrm_membership_status.weight',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Default Status?'),
'description' => ts('Assign this status to a membership record if no other status match is found.'),
+ 'where' => 'civicrm_membership_status.is_default',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'bao' => 'CRM_Member_BAO_MembershipStatus',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this membership_status enabled.'),
+ 'where' => 'civicrm_membership_status.is_active',
'default' => '1',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Reserved'),
'description' => ts('Is this membership_status reserved.'),
+ 'where' => 'civicrm_membership_status.is_reserved',
'default' => '0',
'table_name' => 'civicrm_membership_status',
'entity' => 'MembershipStatus',
'title' => ts('Membership Type ID'),
'description' => ts('Membership Id'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_type.id',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'title' => ts('Membership Type Domain'),
'description' => ts('Which Domain is this match entry for'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_type.domain_id',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'size' => CRM_Utils_Type::HUGE,
'import' => TRUE,
'where' => 'civicrm_membership_type.name',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'description' => ts('Description of Membership Type'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_type.description',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'title' => ts('Membership Type Organization'),
'description' => ts('Owner organization for this membership type. FK to Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_type.member_of_contact_id',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'title' => ts('Membership Financial Type'),
'description' => ts('If membership is paid by a contribution - what financial type should be used. FK to civicrm_financial_type.id'),
'required' => TRUE,
+ 'where' => 'civicrm_membership_type.financial_type_id',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
18,
9
],
+ 'where' => 'civicrm_membership_type.minimum_fee',
'default' => '0',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'description' => ts('Unit in which membership period is expressed.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_membership_type.duration_unit',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Type Duration Interval'),
'description' => ts('Number of duration units in membership period (e.g. 1 year, 12 months).'),
+ 'where' => 'civicrm_membership_type.duration_interval',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'description' => ts('Rolling membership period starts on signup date. Fixed membership periods start on fixed_period_start_day.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_membership_type.period_type',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Fixed Period Start Day'),
'description' => ts('For fixed period memberships, month and day (mmdd) on which subscription/membership will start. Period start is back-dated unless after rollover day.'),
+ 'where' => 'civicrm_membership_type.fixed_period_start_day',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Fixed Period Rollover Day'),
'description' => ts('For fixed period memberships, signups after this day (mmdd) rollover to next period.'),
+ 'where' => 'civicrm_membership_type.fixed_period_rollover_day',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'description' => ts('FK to Relationship Type ID'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_membership_type.relationship_type_id',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'title' => ts('Relationship Direction'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_type.relationship_direction',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Max Related Members for Type'),
'description' => ts('Maximum number of related memberships.'),
+ 'where' => 'civicrm_membership_type.max_related',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'title' => ts('Visible'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_membership_type.visibility',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'name' => 'weight',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
+ 'where' => 'civicrm_membership_type.weight',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'description' => ts('Receipt Text for membership signup'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_type.receipt_text_signup',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'description' => ts('Receipt Text for membership renewal'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_membership_type.receipt_text_renewal',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'bao' => 'CRM_Member_BAO_MembershipType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Auto Renew'),
'description' => ts('0 = No auto-renew option; 1 = Give option, but not required; 2 = Auto-renew required;'),
+ 'where' => 'civicrm_membership_type.auto_renew',
'default' => '0',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Active'),
'description' => ts('Is this membership_type enabled'),
+ 'where' => 'civicrm_membership_type.is_active',
'default' => '1',
'table_name' => 'civicrm_membership_type',
'entity' => 'MembershipType',
'title' => ts('Personal Campaign Page ID'),
'description' => ts('Personal Campaign Page ID'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp.id',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'title' => ts('Contact ID'),
'description' => ts('FK to Contact ID'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp.contact_id',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Personal Campaign Page Status'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp.status_id',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'title' => ts('Personal Campaign Page Title'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pcp.title',
'default' => 'NULL',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'name' => 'intro_text',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Intro Text'),
+ 'where' => 'civicrm_pcp.intro_text',
'default' => 'NULL',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'name' => 'page_text',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Page Text'),
+ 'where' => 'civicrm_pcp.page_text',
'default' => 'NULL',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'title' => ts('Donate Link Text'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pcp.donate_link_text',
'default' => 'NULL',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'title' => ts('Contribution Page'),
'description' => ts('The Contribution or Event Page which triggered this pcp'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp.page_id',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'description' => ts('The type of PCP this is: contribute or event'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_pcp.page_type',
'default' => 'contribute',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'title' => ts('PCP Block'),
'description' => ts('The pcp block that this pcp page was created from'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp.pcp_block_id',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'name' => 'is_thermometer',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Use Thermometer?'),
+ 'where' => 'civicrm_pcp.is_thermometer',
'default' => '0',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'name' => 'is_honor_roll',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Show Honor Roll?'),
+ 'where' => 'civicrm_pcp.is_honor_roll',
'default' => '0',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
20,
2
],
+ 'where' => 'civicrm_pcp.goal_amount',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'bao' => 'CRM_PCP_BAO_PCP',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_pcp.currency',
'default' => 'NULL',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is Personal Campaign Page enabled/active?'),
+ 'where' => 'civicrm_pcp.is_active',
'default' => '0',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Notify Owner?'),
'description' => ts('Notify owner via email when someone donates to page?'),
+ 'where' => 'civicrm_pcp.is_notify',
'default' => '0',
'table_name' => 'civicrm_pcp',
'entity' => 'PCP',
'title' => ts('PCP Block ID'),
'description' => ts('PCP block Id'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp_block.id',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'title' => ts('Entity Table'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_pcp_block.entity_table',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'title' => ts('Entity'),
'description' => ts('FK to civicrm_contribution_page.id OR civicrm_event.id'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp_block.entity_id',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pcp_block.target_entity_type',
'default' => 'contribute',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'title' => ts('Target Entity ID'),
'description' => ts('The entity that this pcp targets'),
'required' => TRUE,
+ 'where' => 'civicrm_pcp_block.target_entity_id',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'bao' => 'CRM_PCP_BAO_PCPBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Supporter Profile'),
'description' => ts('FK to civicrm_uf_group.id. Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?'),
+ 'where' => 'civicrm_pcp_block.supporter_profile_id',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Owner Notification'),
'description' => ts('FK to civicrm_option_group with name = PCP owner notifications'),
+ 'where' => 'civicrm_pcp_block.owner_notify_id',
'default' => '0',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Approval Required?'),
'description' => ts('Does Personal Campaign Page require manual activation by administrator? (is inactive by default after setup)?'),
+ 'where' => 'civicrm_pcp_block.is_approval_needed',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Tell a Friend Enabled?'),
'description' => ts('Does Personal Campaign Page allow using tell a friend?'),
+ 'where' => 'civicrm_pcp_block.is_tellfriend_enabled',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Tell A Friend Limit'),
'description' => ts('Maximum recipient fields allowed in tell a friend'),
+ 'where' => 'civicrm_pcp_block.tellfriend_limit',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'description' => ts('Link text for PCP.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pcp_block.link_text',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Enabled?'),
'description' => ts('Is Personal Campaign Page Block enabled/active?'),
+ 'where' => 'civicrm_pcp_block.is_active',
'default' => '1',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'description' => ts('If set, notification is automatically emailed to this email-address on create/update Personal Campaign Page'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pcp_block.notify_email',
'default' => 'NULL',
'table_name' => 'civicrm_pcp_block',
'entity' => 'PCPBlock',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge.contact_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Type'),
'description' => ts('FK to Financial Type'),
+ 'where' => 'civicrm_pledge.financial_type_id',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Pledge Contribution Page'),
'description' => ts('The Contribution Page which triggered this contribution'),
+ 'where' => 'civicrm_pledge.contribution_page_id',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
],
'import' => TRUE,
'where' => 'civicrm_pledge.amount',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
20,
2
],
- 'export' => TRUE,
'where' => 'civicrm_pledge.original_installment_amount',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_pledge.currency',
'default' => 'NULL',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'description' => ts('Time units for recurrence of pledge payments.'),
'maxlength' => 8,
'size' => CRM_Utils_Type::EIGHT,
+ 'where' => 'civicrm_pledge.frequency_unit',
'default' => 'month',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'title' => ts('Pledge Frequency Interval'),
'description' => ts('Number of time units for recurrence of pledge payments.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge.frequency_interval',
'default' => '1',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'title' => ts('Pledge day'),
'description' => ts('Day in the period when the pledge payment is due e.g. 1st of month, 15th etc. Use this to set the scheduled dates for pledge payments.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge.frequency_day',
'default' => '3',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Pledge Number of Installments'),
'description' => ts('Total number of payments to be made.'),
- 'export' => TRUE,
'where' => 'civicrm_pledge.installments',
- 'headerPattern' => '',
- 'dataPattern' => '',
+ 'export' => TRUE,
'default' => '1',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'title' => ts('Pledge Start Date'),
'description' => ts('The date the first scheduled pledge occurs.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge.start_date',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge.create_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Acknowledged'),
'description' => ts('When a pledge acknowledgement message was sent to the contributor.'),
+ 'where' => 'civicrm_pledge.acknowledge_date',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Modified Date'),
'description' => ts('Last updated date for this pledge record.'),
+ 'where' => 'civicrm_pledge.modified_date',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge Cancelled Date'),
'description' => ts('Date this pledge was cancelled by contributor.'),
+ 'where' => 'civicrm_pledge.cancel_date',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Pledge End Date'),
'description' => ts('Date this pledge finished successfully (total pledge payments equal to or greater than pledged amount).'),
+ 'where' => 'civicrm_pledge.end_date',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'bao' => 'CRM_Pledge_BAO_Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum Number of Reminders'),
'description' => ts('The maximum number of payment reminders to send for any given payment.'),
+ 'where' => 'civicrm_pledge.max_reminders',
'default' => '1',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Initial Reminder Day'),
'description' => ts('Send initial reminder this many days prior to the payment due date.'),
+ 'where' => 'civicrm_pledge.initial_reminder_day',
'default' => '5',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Additional Reminder Days'),
'description' => ts('Send additional reminder this many days after last one sent, up to maximum number of reminders.'),
+ 'where' => 'civicrm_pledge.additional_reminder_day',
'default' => '5',
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'description' => ts('Implicit foreign key to civicrm_option_values in the pledge_status option group.'),
'import' => TRUE,
'where' => 'civicrm_pledge.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'title' => ts('Test'),
'import' => TRUE,
'where' => 'civicrm_pledge.is_test',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_pledge',
'description' => ts('The campaign for which this pledge has been initiated.'),
'import' => TRUE,
'where' => 'civicrm_pledge.campaign_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge',
'entity' => 'Pledge',
'title' => ts('Pledge Block ID'),
'description' => ts('Pledge ID'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge_block.id',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'bao' => 'CRM_Pledge_BAO_PledgeBlock',
'description' => ts('physical tablename for entity being joined to pledge, e.g. civicrm_contact'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_pledge_block.entity_table',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'bao' => 'CRM_Pledge_BAO_PledgeBlock',
'title' => ts('Entity Id'),
'description' => ts('FK to entity table specified in entity_table column.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge_block.entity_id',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'bao' => 'CRM_Pledge_BAO_PledgeBlock',
'description' => ts('Delimited list of supported frequency units'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_pledge_block.pledge_frequency_unit',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'bao' => 'CRM_Pledge_BAO_PledgeBlock',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Expose Frequency Interval?'),
'description' => ts('Is frequency interval exposed on the contribution form.'),
+ 'where' => 'civicrm_pledge_block.is_pledge_interval',
'default' => '0',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Maximum Number of Reminders'),
'description' => ts('The maximum number of payment reminders to send for any given payment.'),
+ 'where' => 'civicrm_pledge_block.max_reminders',
'default' => '1',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Initial Reminder Day'),
'description' => ts('Send initial reminder this many days prior to the payment due date.'),
+ 'where' => 'civicrm_pledge_block.initial_reminder_day',
'default' => '5',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Additional Reminder Days'),
'description' => ts('Send additional reminder this many days after last one sent, up to maximum number of reminders.'),
+ 'where' => 'civicrm_pledge_block.additional_reminder_day',
'default' => '5',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'description' => ts('The date the first scheduled pledge occurs.'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_pledge_block.pledge_start_date',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'bao' => 'CRM_Pledge_BAO_PledgeBlock',
'title' => ts('Show Recurring Donation Start Date?'),
'description' => ts('If true - recurring start date is shown.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge_block.is_pledge_start_date_visible',
'default' => '0',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'title' => ts('Allow Edits to Recurring Donation Start Date?'),
'description' => ts('If true - recurring start date is editable.'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge_block.is_pledge_start_date_editable',
'default' => '0',
'table_name' => 'civicrm_pledge_block',
'entity' => 'PledgeBlock',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge_payment.id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'title' => ts('Pledge'),
'description' => ts('FK to Pledge table'),
'required' => TRUE,
+ 'where' => 'civicrm_pledge_payment.pledge_id',
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'bao' => 'CRM_Pledge_BAO_PledgePayment',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Contribution'),
'description' => ts('FK to contribution table.'),
+ 'where' => 'civicrm_pledge_payment.contribution_id',
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'bao' => 'CRM_Pledge_BAO_PledgePayment',
],
'import' => TRUE,
'where' => 'civicrm_pledge_payment.scheduled_amount',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
],
'import' => TRUE,
'where' => 'civicrm_pledge_payment.actual_amount',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'description' => ts('3 character string, value from config setting or input via user.'),
'maxlength' => 3,
'size' => CRM_Utils_Type::FOUR,
+ 'where' => 'civicrm_pledge_payment.currency',
'default' => 'NULL',
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'required' => TRUE,
'import' => TRUE,
'where' => 'civicrm_pledge_payment.scheduled_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'description' => ts('The date that the most recent payment reminder was sent.'),
'import' => TRUE,
'where' => 'civicrm_pledge_payment.reminder_date',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'description' => ts('The number of payment reminders sent.'),
'import' => TRUE,
'where' => 'civicrm_pledge_payment.reminder_count',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'default' => '0',
'table_name' => 'civicrm_pledge_payment',
'title' => ts('Payment Status'),
'import' => TRUE,
'where' => 'civicrm_pledge_payment.status_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => FALSE,
'table_name' => 'civicrm_pledge_payment',
'entity' => 'PledgePayment',
'title' => ts('Line Item ID'),
'description' => ts('Line Item'),
'required' => TRUE,
+ 'where' => 'civicrm_line_item.id',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_line_item.entity_table',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'title' => ts('Line Item Entity'),
'description' => ts('entry in table'),
'required' => TRUE,
+ 'where' => 'civicrm_line_item.entity_id',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Line Item Contribution'),
'description' => ts('FK to civicrm_contribution'),
+ 'where' => 'civicrm_line_item.contribution_id',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Line Item Price Field'),
'description' => ts('FK to civicrm_price_field'),
+ 'where' => 'civicrm_line_item.price_field_id',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'description' => ts('descriptive label for item - from price_field_value.label'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_line_item.label',
'default' => 'NULL',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
20,
2
],
+ 'where' => 'civicrm_line_item.qty',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
20,
2
],
+ 'where' => 'civicrm_line_item.unit_price',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
20,
2
],
+ 'where' => 'civicrm_line_item.line_total',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'bao' => 'CRM_Price_BAO_LineItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Line Item Participant Count'),
'description' => ts('Participant count for field'),
+ 'where' => 'civicrm_line_item.participant_count',
'default' => 'NULL',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Line Item Option'),
'description' => ts('FK to civicrm_price_field_value'),
+ 'where' => 'civicrm_line_item.price_field_value_id',
'default' => 'NULL',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type.'),
+ 'where' => 'civicrm_line_item.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
20,
2
],
+ 'where' => 'civicrm_line_item.non_deductible_amount',
+ 'headerPattern' => '/non?.?deduct/i',
+ 'dataPattern' => '/^\d+(\.\d{2})?$/',
'default' => '0.0',
'table_name' => 'civicrm_line_item',
'entity' => 'LineItem',
'title' => ts('Price Field ID'),
'description' => ts('Price Field'),
'required' => TRUE,
+ 'where' => 'civicrm_price_field.id',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'title' => ts('Price Set'),
'description' => ts('FK to civicrm_price_set'),
'required' => TRUE,
+ 'where' => 'civicrm_price_field.price_set_id',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_field.name',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_field.label',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'required' => TRUE,
'maxlength' => 12,
'size' => CRM_Utils_Type::TWELVE,
+ 'where' => 'civicrm_price_field.html_type',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Quantity Required?'),
'description' => ts('Enter a quantity for this field?'),
+ 'where' => 'civicrm_price_field.is_enter_qty',
'default' => '0',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'description' => ts('Description and/or help text to display before this field.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_price_field.help_pre',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'description' => ts('Description and/or help text to display after this field.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_price_field.help_post',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'description' => ts('Order in which the fields should appear'),
+ 'where' => 'civicrm_price_field.weight',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Show Amounts?'),
'description' => ts('Should the price be displayed next to the label for each option?'),
+ 'where' => 'civicrm_price_field.is_display_amounts',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Price Field Options per Row'),
'description' => ts('number of options per line for checkbox and radio'),
+ 'where' => 'civicrm_price_field.options_per_line',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Is Active?'),
'description' => ts('Is this price field active'),
+ 'where' => 'civicrm_price_field.is_active',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field is Required?'),
'description' => ts('Is this price field required (value must be > 1)'),
+ 'where' => 'civicrm_price_field.is_required',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Price Field Start Date'),
'description' => ts('If non-zero, do not show this field before the date specified'),
+ 'where' => 'civicrm_price_field.active_on',
'default' => 'NULL',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Price Field End Date'),
'description' => ts('If non-zero, do not show this field after the date specified'),
+ 'where' => 'civicrm_price_field.expire_on',
'default' => 'NULL',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'description' => ts('Optional scripting attributes for field'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_field.javascript',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'bao' => 'CRM_Price_BAO_PriceField',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Price Field Visibility'),
'description' => ts('Implicit FK to civicrm_option_group with name = \'visibility\''),
+ 'where' => 'civicrm_price_field.visibility_id',
'default' => '1',
'table_name' => 'civicrm_price_field',
'entity' => 'PriceField',
'title' => ts('Price Field Value ID'),
'description' => ts('Price Field Value'),
'required' => TRUE,
+ 'where' => 'civicrm_price_field_value.id',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
'title' => ts('Price Field'),
'description' => ts('FK to civicrm_price_field'),
'required' => TRUE,
+ 'where' => 'civicrm_price_field_value.price_field_id',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
'description' => ts('Price field option name'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_field_value.name',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
'description' => ts('Price field option label'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_field_value.label',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
'description' => ts('Price field option description.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_price_field_value.description',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'description' => ts('Price field option pre help text.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_price_field_value.help_pre',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'description' => ts('Price field option post field help.'),
'rows' => 2,
'cols' => 60,
+ 'where' => 'civicrm_price_field_value.help_post',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
18,
9
],
+ 'where' => 'civicrm_price_field_value.amount',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'bao' => 'CRM_Price_BAO_PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Count'),
'description' => ts('Number of participants per field option'),
+ 'where' => 'civicrm_price_field_value.count',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Max Value'),
'description' => ts('Max number of participants per field options'),
+ 'where' => 'civicrm_price_field_value.max_value',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'description' => ts('Order in which the field options should appear'),
+ 'where' => 'civicrm_price_field_value.weight',
'default' => '1',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Type'),
'description' => ts('FK to Membership Type'),
+ 'where' => 'civicrm_price_field_value.membership_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Membership Num Terms'),
'description' => ts('Number of terms for this membership'),
+ 'where' => 'civicrm_price_field_value.membership_num_terms',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Default Price Field Option?'),
'description' => ts('Is this default price field option'),
+ 'where' => 'civicrm_price_field_value.is_default',
'default' => '0',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Field Value is Active'),
'description' => ts('Is this price field value active'),
+ 'where' => 'civicrm_price_field_value.is_active',
'default' => '1',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type.'),
+ 'where' => 'civicrm_price_field_value.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
20,
2
],
+ 'where' => 'civicrm_price_field_value.non_deductible_amount',
+ 'headerPattern' => '/non?.?deduct/i',
+ 'dataPattern' => '/^\d+(\.\d{2})?$/',
'default' => '0.0',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Price Field Option Visibility'),
'description' => ts('Implicit FK to civicrm_option_group with name = \'visibility\''),
+ 'where' => 'civicrm_price_field_value.visibility_id',
'default' => '1',
'table_name' => 'civicrm_price_field_value',
'entity' => 'PriceFieldValue',
'title' => ts('Price Set ID'),
'description' => ts('Price Set'),
'required' => TRUE,
+ 'where' => 'civicrm_price_set.id',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Price Set Domain'),
'description' => ts('Which Domain is this price-set for'),
+ 'where' => 'civicrm_price_set.domain_id',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_set.name',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_set.title',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Set Is Active?'),
'description' => ts('Is this price set active'),
+ 'where' => 'civicrm_price_set.is_active',
'default' => '1',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'description' => ts('Description and/or help text to display before fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_price_set.help_pre',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'description' => ts('Description and/or help text to display after fields in form.'),
'rows' => 4,
'cols' => 80,
+ 'where' => 'civicrm_price_set.help_post',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'description' => ts('Optional Javascript script function(s) included on the form with this price_set. Can be used for conditional'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_price_set.javascript',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'required' => TRUE,
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_price_set.extends',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'bao' => 'CRM_Price_BAO_PriceSet',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Financial Type'),
'description' => ts('FK to Financial Type(for membership price sets only).'),
+ 'where' => 'civicrm_price_set.financial_type_id',
'default' => 'NULL',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Is Price Set Quick Config?'),
'description' => ts('Is set if edited on Contribution or Event Page rather than through Manage Price Sets'),
+ 'where' => 'civicrm_price_set.is_quick_config',
'default' => '0',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Price Set Is Reserved'),
'description' => ts('Is this a predefined system price set (i.e. it can not be deleted, edited)?'),
+ 'where' => 'civicrm_price_set.is_reserved',
'default' => '0',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Minimum Amount'),
'description' => ts('Minimum Amount required for this set.'),
+ 'where' => 'civicrm_price_set.min_amount',
'default' => '0',
'table_name' => 'civicrm_price_set',
'entity' => 'PriceSet',
'title' => ts('Price Set Entity ID'),
'description' => ts('Price Set Entity'),
'required' => TRUE,
+ 'where' => 'civicrm_price_set_entity.id',
'table_name' => 'civicrm_price_set_entity',
'entity' => 'PriceSetEntity',
'bao' => 'CRM_Price_DAO_PriceSetEntity',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_price_set_entity.entity_table',
'table_name' => 'civicrm_price_set_entity',
'entity' => 'PriceSetEntity',
'bao' => 'CRM_Price_DAO_PriceSetEntity',
'title' => ts('Entity IF'),
'description' => ts('Item in table'),
'required' => TRUE,
+ 'where' => 'civicrm_price_set_entity.entity_id',
'table_name' => 'civicrm_price_set_entity',
'entity' => 'PriceSetEntity',
'bao' => 'CRM_Price_DAO_PriceSetEntity',
'title' => ts('Price Set'),
'description' => ts('price set being used'),
'required' => TRUE,
+ 'where' => 'civicrm_price_set_entity.price_set_id',
'table_name' => 'civicrm_price_set_entity',
'entity' => 'PriceSetEntity',
'bao' => 'CRM_Price_DAO_PriceSetEntity',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Queue ID'),
'required' => TRUE,
+ 'where' => 'civicrm_queue_item.id',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'required' => TRUE,
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_queue_item.queue_name',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Order'),
'required' => TRUE,
+ 'where' => 'civicrm_queue_item.weight',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'title' => ts('Submit Time'),
'description' => ts('date on which this item was submitted to the queue'),
'required' => TRUE,
+ 'where' => 'civicrm_queue_item.submit_time',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'type' => CRM_Utils_Type::T_DATE + CRM_Utils_Type::T_TIME,
'title' => ts('Release Time'),
'description' => ts('date on which this job becomes available; null if ASAP'),
+ 'where' => 'civicrm_queue_item.release_time',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Queue item data'),
'description' => ts('Serialized queue data'),
+ 'where' => 'civicrm_queue_item.data',
'table_name' => 'civicrm_queue_item',
'entity' => 'QueueItem',
'bao' => 'CRM_Queue_BAO_QueueItem',
'title' => ts('Report Instance ID'),
'description' => ts('Report Instance ID'),
'required' => TRUE,
+ 'where' => 'civicrm_report_instance.id',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'title' => ts('Report Instance Domain ID'),
'description' => ts('Which Domain is this instance for'),
'required' => TRUE,
+ 'where' => 'civicrm_report_instance.domain_id',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('Report Instance Title.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.title',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'required' => TRUE,
'maxlength' => 512,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.report_id',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('when combined with report_id/template uniquely identifies the instance'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.name',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('arguments that are passed in the url when invoking the instance'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.args',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('Report Instance description.'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.description',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('permission required to be able to run this instance'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.permission',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('role required to be able to run this instance'),
'maxlength' => 1024,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.grouprole',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('Submitted form values for this report'),
'import' => TRUE,
'where' => 'civicrm_report_instance.form_values',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Report Instance is Active'),
'description' => ts('Is this entry active?'),
+ 'where' => 'civicrm_report_instance.is_active',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Report Instance Created By'),
'description' => ts('FK to contact table.'),
+ 'where' => 'civicrm_report_instance.created_id',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('Report Instance Owned By'),
'description' => ts('FK to contact table.'),
+ 'where' => 'civicrm_report_instance.owner_id',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('Subject of email'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_report_instance.email_subject',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('Email Report Instance To'),
'description' => ts('comma-separated list of email addresses to send the report to'),
+ 'where' => 'civicrm_report_instance.email_to',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('cc Email Report Instance To'),
'description' => ts('comma-separated list of email addresses to send the report to'),
+ 'where' => 'civicrm_report_instance.email_cc',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('comma-separated list of email addresses to send the report to'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_report_instance.header',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('comma-separated list of email addresses to send the report to'),
'rows' => 4,
'cols' => 60,
+ 'where' => 'civicrm_report_instance.footer',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'bao' => 'CRM_Report_BAO_ReportInstance',
'description' => ts('FK to navigation ID'),
'import' => TRUE,
'where' => 'civicrm_report_instance.navigation_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'description' => ts('FK to instance ID drilldown to'),
'import' => TRUE,
'where' => 'civicrm_report_instance.drilldown_id',
- 'headerPattern' => '',
- 'dataPattern' => '',
'export' => TRUE,
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
'name' => 'is_reserved',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('Instance is Reserved'),
+ 'where' => 'civicrm_report_instance.is_reserved',
'default' => '0',
'table_name' => 'civicrm_report_instance',
'entity' => 'ReportInstance',
while ($dao->fetch()) {
$customFields[$dao->table_name . '_custom_' . $dao->id] = $dao->id;
}
- $dao->free();
$entryFound = FALSE;
foreach ($rows as $rowNum => $row) {
'type' => CRM_Utils_Type::T_INT,
'no_display' => TRUE,
'required' => TRUE,
- 'dbAlias' => '(address_civireport.street_number % 2)',
+ 'dbAlias' => "({$tableAlias}_civireport.street_number % 2)",
'is_fields' => TRUE,
'is_order_bys' => TRUE,
],
while ($dao->fetch()) {
$contactIds[] = $dao->cid;
}
- $dao->free();
$this->setPager();
$relationshipRows = [];
}
$rows[$dao->civicrm_contact_id]['aggregate_amount'] += $dao->civicrm_contribution_total_amount;
}
- $dao->free();
return $rows;
}
$relatedContactIds[$dao->contact_id_a] = $dao->contact_id_a;
}
}
- $dao->free();
return [$relationshipRows, $relatedContactIds];
}
'title' => ts('SMS Provider ID'),
'description' => ts('SMS Provider ID'),
'required' => TRUE,
+ 'where' => 'civicrm_sms_provider.id',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'description' => ts('Provider internal name points to option_value of option_group sms_provider_name'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_sms_provider.name',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'description' => ts('Provider name visible to user'),
'maxlength' => 64,
'size' => CRM_Utils_Type::BIG,
+ 'where' => 'civicrm_sms_provider.title',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'title' => ts('SMS Provider Username'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_sms_provider.username',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'title' => ts('SMS Provider Password'),
'maxlength' => 255,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_sms_provider.password',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'title' => ts('SMS Provider API'),
'description' => ts('points to value in civicrm_option_value for group sms_api_type'),
'required' => TRUE,
+ 'where' => 'civicrm_sms_provider.api_type',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'title' => ts('SMS Provider API URL'),
'maxlength' => 128,
'size' => CRM_Utils_Type::HUGE,
+ 'where' => 'civicrm_sms_provider.api_url',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'type' => CRM_Utils_Type::T_TEXT,
'title' => ts('SMS Provider API Params'),
'description' => ts('the api params in xml, http or smtp format'),
+ 'where' => 'civicrm_sms_provider.api_params',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
'name' => 'is_default',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('SMS Provider is Default?'),
+ 'where' => 'civicrm_sms_provider.is_default',
'default' => '0',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'name' => 'is_active',
'type' => CRM_Utils_Type::T_BOOLEAN,
'title' => ts('SMS Provider is Active?'),
+ 'where' => 'civicrm_sms_provider.is_active',
'default' => '0',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'type' => CRM_Utils_Type::T_INT,
'title' => ts('SMS Domain'),
'description' => ts('Which Domain is this sms provider for'),
+ 'where' => 'civicrm_sms_provider.domain_id',
'table_name' => 'civicrm_sms_provider',
'entity' => 'Provider',
'bao' => 'CRM_SMS_BAO_Provider',
);
}
else {
+ $cronLink = 'target="_blank" href="' . htmlentities(CRM_Utils_System::docURL2('sysadmin/setup/jobs/', TRUE)) . '""';
+ $msg .= '<p>' . ts('To enable scheduling support, please <a %1>set up the cron job</a>.', [
+ 1 => $cronLink,
+ ]) . '</p>';
$message = new CRM_Utils_Check_Message(
__FUNCTION__,
$msg,
($lastCron > gmdate('U') - 86400) ? \Psr\Log\LogLevel::WARNING : \Psr\Log\LogLevel::ERROR,
'fa-clock-o'
);
- $docUrl = 'target="_blank" href="' . CRM_Utils_System::docURL(['resource' => 'wiki', 'page' => 'Managing Scheduled Jobs', 'URLonly' => TRUE]) . '""';
- $message->addHelp(
- ts('Configuring cron on your server is necessary for running scheduled jobs such as sending mail and scheduled reminders.') . '<br />' .
- ts("Learn more in the <a %1>online documentation</a>.", [1 => $docUrl])
- );
$messages[] = $message;
}
* @return mixed
*/
public static function formatDocUrl($url) {
- return preg_replace('#^user/#', 'user/en/stable/', $url);
+ return preg_replace('#^(user|sysadmin|dev)/#', '\1/en/stable/', $url);
}
/**
}
}
- /**
- * Append Drupal7 js to coreResourcesList.
- *
- * @param array $list
- */
- public function appendCoreResources(&$list) {
- $list[] = 'js/crm.drupal7.js';
- }
-
}
// to save the field `group_name`, which is required in older schema.
\CRM_Core_DAO::executeQuery(\CRM_Utils_SQL_Insert::dao($dao)->toSQL());
}
- $dao->free();
}
}
else {
$this->fail("Could not retrieve object: $daoName, $id");
}
- $object->free();
+
$matchSize = count($match);
if ($verifiedCount != $matchSize) {
$this->fail("Did not verify all fields in match array: $daoName, $id. Verified count = $verifiedCount. Match array size = $matchSize");
min-height: 2.5em;
}
-#crm-container div.crm-inline-edit .crm-edit-help {
+#crm-container div.crm-summary-block .crm-edit-help {
display: none;
position: absolute;
right: 0;
height: 30px;
width: 30px;
transition: width .5s .05s, background-color .3s .05s;
+ color: black;
}
a.highlighted #crm-qsearch-input,
#crm-qsearch-input:focus,
z-index: 99999;
}
+ body.crm-menubar-above-crm-container #civicrm-menu {
+ z-index: 100;
+ }
+
body.crm-menubar-hidden #civicrm-menu {
display: none;
}
})
.on('dialogopen', function(e) {
var $el = $(e.target);
+ $('body').addClass('ui-dialog-open');
// Modal dialogs should disable scrollbars
if ($el.dialog('option', 'modal')) {
$el.addClass('modal-dialog');
$(this).button('option', 'icons', {primary: 'fa-expand'});
} else {
var menuHeight = $('#civicrm-menu').outerHeight();
+ if ($('body').hasClass('crm-menubar-below-cms-menu')) {
+ menuHeight += $('#civicrm-menu').offset().top;
+ }
$el.data('origSize', {
position: {my: 'center', at: 'center center+' + (menuHeight / 2), of: window},
width: $el.dialog('option', 'width'),
if ($('.ui-dialog .modal-dialog:visible').not(e.target).length < 1) {
$('body').css({overflow: ''});
}
+ if ($('.ui-dialog-content:visible').not(e.target).length < 1) {
+ $('body').removeClass('ui-dialog-open');
+ }
})
.on('submit', function(e) {
// CRM-14353 - disable changes warn when submitting a form
var currentHeight = $wrapper.outerHeight(),
padding = currentHeight - $dialog.height(),
newHeight = $dialog.prop('scrollHeight') + padding,
- menuHeight = $('#civicrm-menu').outerHeight(),
- maxHeight = $(window).height() - menuHeight;
+ menuHeight = $('#civicrm-menu').outerHeight();
+ if ($('body').hasClass('crm-menubar-below-cms-menu')) {
+ menuHeight += $('#civicrm-menu').offset().top;
+ }
+ var maxHeight = $(window).height() - menuHeight;
newHeight = newHeight > maxHeight ? maxHeight : newHeight;
if (newHeight > (currentHeight + 15)) {
$dialog.dialog('option', {
+++ /dev/null
-// http://civicrm.org/licensing
-(function($) {
- $(document)
- .on('dialogopen', function(e) {
- // D7 hack to get the toolbar out of the way (CRM-15341)
- $('#toolbar').css('z-index', '100');
- })
- .on('dialogclose', function(e) {
- if ($('.ui-dialog-content:visible').not(e.target).length < 1) {
- // D7 hack, restore toolbar position (CRM-15341)
- $('#toolbar').css('z-index', '');
- }
- });
-})(CRM.$);
--- /dev/null
+# CiviCRM 5.12.1
+
+Released April 15, 2019
+
+- **[Synopsis](#synopsis)**
+- **[Bugs resolved](#bugs)**
+- **[Credits](#credits)**
+- **[Feedback](#feedback)**
+
+## <a name="synopsis"></a>Synopsis
+
+| *Does this version...?* | |
+|:--------------------------------------------------------------- |:-------:|
+| Fix security vulnerabilities? | no |
+| Change the database schema? | no |
+| Alter the API? | no |
+| Require attention to configuration options? | no |
+| Fix problems installing or upgrading to a previous version? | no |
+| **Introduce features?** | **yes** |
+| **Fix bugs?** | **yes** |
+
+## <a name="bugs"></a>Bugs resolved
+
+- **([dev/core#859](https://lab.civicrm.org/dev/core/issues/859)) Dedupe - Fix
+ regression in handling addresses ([14013](https://github.com/civicrm/civicrm-core/pull/14013))**
+
+- **Menu bar - Restore default colors. Allow customization.
+ ([13996](https://github.com/civicrm/civicrm-core/pull/13996))**
+
+## <a name="credits"></a>Credits
+
+This release was developed by the following authors and reviewers:
+
+AGH Strategies - Andrew Hunt; Australian Greens - Seamus Lee; CiviCRM -
+Coleman Watts, Tim Otten; Dave D; Korlon - Stuart Gaston; Wikimedia
+Foundation - Eileen McNaughton
+
+## <a name="feedback"></a>Feedback
+
+These release notes are edited by Tim Otten and Andrew Hunt. If you'd like to
+provide feedback on them, please login to https://chat.civicrm.org/civicrm and
+contact `@agh1`.
<th>{ts}Received date{/ts}</th>
<th>{ts}Receipt Sent{/ts}</th>
<th>{ts}Status{/ts}</th>
- {if $invoicing && $invoices}
+ {if $isIncludeInvoiceLinks}
<th></th>
{/if}
- {if $invoicing && $defaultInvoicePage}
+ {foreach from=$row.buttons item=button}
<th></th>
- {/if}
+ {/foreach}
</tr>
{foreach from=$contribute_rows item=row}
<td>{$row.receive_date|truncate:10:''|crmDate}</td>
<td>{$row.receipt_date|truncate:10:''|crmDate}</td>
<td>{$row.contribution_status}</td>
- {if $invoicing && $invoices}
+ {if $isIncludeInvoiceLinks}
<td>
{* @todo Instead of this tpl handling assign actions as an array attached the row, iterate through - will better accomodate extension overrides and competition for scarce real estate on this page*}
{assign var='id' value=$row.contribution_id}
{/if}
</td>
{/if}
- {if $defaultInvoicePage && $row.contribution_status_name == 'Pending' }
- {* @todo Instead of this tpl handling assign actions as an array attached the row, iterate through - will better accomodate extension overrides and competition for scarce real estate on this page*}
- <td>
- {assign var='checksum_url' value=""}
- {if $userChecksum}
- {assign var='checksum_url' value="&cid=$contactId&cs=$userChecksum"}
- {/if}
- {assign var='id' value=$row.contribution_id}
- {capture assign=payNowLink}{crmURL p='civicrm/contribute/transact' q="reset=1&id=`$defaultInvoicePage`&ccid=`$id`$checksum_url"}{/capture}
- <a class="button" href="{$payNowLink}"><span class='nowrap'>{ts}Pay Now{/ts}</span></a>
- </td>
- {/if}
+ {foreach from=$row.buttons item=button}
+ <td><a class="{$button.class}" href="{$button.url}"><span class='nowrap'>{$button.label}</span></a></td>
+ {/foreach}
</tr>
{/foreach}
</table>
$this->callAPISuccess('Contact', 'delete', array('id' => $contact['id']));
}
+ /**
+ * Test that address custom fields can be imported
+ */
+ public function testAddressWithCustomData() {
+ $ids = $this->entityCustomGroupWithSingleFieldCreate('Address', 'AddressTest.php');
+ list($contactValues) = $this->setUpBaseContact();
+ $contactValues['nick_name'] = 'Old Bill';
+ $contactValues['external_identifier'] = 'android';
+ $contactValues['street_address'] = 'Big Mansion';
+ $contactValues['custom_' . $ids['custom_field_id']] = 'Update';
+ $this->runImport($contactValues, CRM_Import_Parser::DUPLICATE_UPDATE, CRM_Import_Parser::VALID, array(0 => NULL, 1 => NULL, 2 => NULL, 3 => NULL, 4 => NULL, 5 => 'Primary', 6 => 'Primary'));
+ $address = $this->callAPISuccessGetSingle('Address', ['street_address' => 'Big Mansion', 'return' => 'custom_' . $ids['custom_field_id']]);
+ $this->assertEquals('Update', $address['custom_' . $ids['custom_field_id']]);
+ }
+
/**
* Test that the import parser adds the address to the primary location.
*
'trxn_id' => '',
'invoice_id' => '',
]);
+ $this->contributions[] = $this->contributionCreate([
+ 'contact_id' => $this->contactID,
+ 'receive_date' => '2018-11-24',
+ 'receipt_date' => '2018-11-24',
+ 'trxn_id' => '',
+ 'invoice_id' => '',
+ 'contribution_status_id' => 'Pending',
+ ]);
$recur = $this->callAPISuccess('ContributionRecur', 'create', [
'contact_id' => $this->contactID,
'frequency_interval' => 1,
'contribution_recur_id' => $recur['id'],
]);
$this->callAPISuccess('Setting', 'create', ['invoicing' => 1]);
+ $this->callAPISuccess('Setting', 'create', ['default_invoice_page' => $this->contributionPageCreate()['id']]);
$this->runUserDashboard();
$expectedStrings = [
'Your Contribution(s)',
'<table class="selector"><tr class="columnheader"><th>Total Amount</th><th>Financial Type</th><th>Received date</th><th>Receipt Sent</th><th>Status</th><th></th>',
'<td>Completed</td><td><a class="button no-popup nowrap"href="/index.php?q=civicrm/contribute/invoice&reset=1&id=1&cid=' . $this->contactID . '"><i class="crm-i fa-print"></i><span>Print Invoice</span></a></td></tr><tr id=\'rowid2\'',
+ 'Pay Now',
];
$this->assertPageContains($expectedStrings);
public function setUp() {
parent::setUp();
$this->_individual = $this->individualCreate();
+ $this->ids['Contact']['contactID1'] = $this->individualCreate([], 1);
+ $this->ids['Contact']['contactID2'] = $this->individualCreate([], 2);
}
public function tearDown() {
+ $this->quickCleanUpFinancialEntities();
+ parent::tearDown();
}
/**
/**
* Test CRM_Contribute_Form_Search Recurring Contribution Status Id filters
+ *
+ * @dataProvider getSearchData
*/
- public function testContributionRecurStatusFilter() {
- $this->quickCleanup($this->_tablesToTruncate);
- $contactID1 = $this->individualCreate([], 1);
- $contactID2 = $this->individualCreate([], 2);
- // "In Progress" recurring contribution for contactID1
- $ContributionRecur1 = $this->callAPISuccess('ContributionRecur', 'create', [
- 'sequential' => 1,
- 'contact_id' => $contactID1,
- 'frequency_interval' => 1,
- 'frequency_unit' => "month",
- 'amount' => 11,
- 'currency' => "CAD",
- 'payment_instrument_id' => 1,
- 'contribution_status_id' => 5,
- 'financial_type_id' => "Donation",
- ]);
- $Contribution1 = $this->callAPISuccess('Contribution', 'create', [
- 'financial_type_id' => 'Donation',
- 'total_amount' => 11,
- 'receive_date' => date('Ymd'),
- 'receive_date_time' => NULL,
- 'payment_instrument_id' => 1,
- 'contribution_status_id' => 1,
- 'contact_id' => $contactID1,
- 'contribution_recur_id' => $ContributionRecur1['id'],
- ]);
- $params = [
- 'to_financial_account_id' => 1,
- 'status_id' => 1,
- 'contribution_id' => $Contribution1['id'],
- 'payment_instrument_id' => 1,
- 'card_type_id' => 1,
- 'total_amount' => 11,
- ];
- CRM_Core_BAO_FinancialTrxn::create($params);
- // "Completed" recurring contribution for contactID2
- $ContributionRecur2 = $this->callAPISuccess('ContributionRecur', 'create', [
- 'sequential' => 1,
- 'contact_id' => $contactID2,
- 'frequency_interval' => 1,
- 'frequency_unit' => "month",
- 'amount' => 22,
- 'currency' => "CAD",
- 'payment_instrument_id' => 1,
- 'contribution_status_id' => 1,
- 'financial_type_id' => "Donation",
- ]);
- $Contribution2 = $this->callAPISuccess('Contribution', 'create', [
- 'financial_type_id' => 'Donation',
- 'total_amount' => 22,
- 'receive_date' => date('Ymd'),
- 'receive_date_time' => NULL,
- 'payment_instrument' => 1,
- 'contribution_status_id' => 1,
- 'contact_id' => $contactID2,
- 'contribution_recur_id' => $ContributionRecur2['id'],
- ]);
- $params = [
- 'to_financial_account_id' => 1,
- 'status_id' => 1,
- 'contribution_id' => $Contribution2['id'],
- 'payment_instrument_id' => 1,
- 'card_type_id' => 1,
- 'total_amount' => 22,
- ];
- CRM_Core_BAO_FinancialTrxn::create($params);
-
- $useCases = [
- // Case 1: Search for ONLY those recurring contributions with status "In Progress"
- [
- 'form_value' => ['contribution_recur_contribution_status_id' => 5],
- 'expected_count' => 1,
- 'expected_contact' => [$contactID1],
- 'expected_qill' => "Recurring Contribution Status = 'In Progress'",
- ],
- // Case 2: Search for ONLY those recurring contributions with status "Completed"
- [
- 'form_value' => ['contribution_recur_contribution_status_id' => 1],
- 'expected_count' => 1,
- 'expected_contact' => [$contactID2],
- 'expected_qill' => "Recurring Contribution Status = 'Completed'",
- ],
- // Case 3: Search for ONLY those recurring contributions with status "Cancelled"
- [
- 'form_value' => ['contribution_recur_contribution_status_id' => 3],
- 'expected_count' => 0,
- 'expected_contact' => [],
- 'expected_qill' => "Recurring Contribution Status = 'Cancelled'",
- ],
- ];
+ public function testContributionRecurStatusFilter($formValues, $expectedCount, $expectedContact, $expectedQill) {
+ $this->setUpRecurringContributions();
- foreach ($useCases as $case) {
- $fv = $case['form_value'];
- $query = new CRM_Contact_BAO_Query(CRM_Contact_BAO_Query::convertFormValues($fv));
- list($select, $from, $where, $having) = $query->query();
+ $query = new CRM_Contact_BAO_Query(CRM_Contact_BAO_Query::convertFormValues($formValues));
+ list($select, $from, $where, $having) = $query->query();
- // get and assert contribution count
- $contacts = CRM_Core_DAO::executeQuery(sprintf('SELECT DISTINCT contact_a.id %s %s AND contact_a.id IS NOT NULL', $from, $where))->fetchAll();
- foreach ($contacts as $key => $value) {
- $contacts[$key] = $value['id'];
- }
- // assert the contribution count
- $this->assertEquals($case['expected_count'], count($contacts));
- // assert the contribution IDs
- $this->checkArrayEquals($case['expected_contact'], $contacts);
- // get and assert qill string
- $qill = trim(implode($query->getOperator(), CRM_Utils_Array::value(0, $query->qill())));
- $this->assertEquals($case['expected_qill'], $qill);
+ // get and assert contribution count
+ $contacts = CRM_Core_DAO::executeQuery(sprintf('SELECT DISTINCT contact_a.id, contact_a.display_name %s %s AND contact_a.id IS NOT NULL', $from, $where))->fetchAll();
+ foreach ($contacts as $key => $value) {
+ $this->assertEquals($expectedContact[$key], $value['display_name']);
}
+ // assert the contribution count
+ $this->assertEquals($expectedCount, count($contacts));
+ // get and assert qill string
+ $qill = trim(implode($query->getOperator(), CRM_Utils_Array::value(0, $query->qill())));
+ $this->assertEquals($expectedQill, $qill);
}
/**
}
}
+ /**
+ * Set up recurring contributions for the test.
+ */
+ protected function setUpRecurringContributions() {
+ // "In Progress" recurring contribution for contactID1
+ $ContributionRecur1 = $this->callAPISuccess('ContributionRecur', 'create', [
+ 'sequential' => 1,
+ 'contact_id' => $this->ids['Contact']['contactID1'],
+ 'frequency_interval' => 1,
+ 'frequency_unit' => "month",
+ 'amount' => 11,
+ 'currency' => "CAD",
+ 'payment_instrument_id' => 1,
+ 'contribution_status_id' => 5,
+ 'financial_type_id' => "Donation",
+ ]);
+ $Contribution1 = $this->callAPISuccess('Contribution', 'create', [
+ 'financial_type_id' => 'Donation',
+ 'total_amount' => 11,
+ 'receive_date' => date('Ymd'),
+ 'receive_date_time' => NULL,
+ 'payment_instrument_id' => 1,
+ 'contribution_status_id' => 1,
+ 'contact_id' => $this->ids['Contact']['contactID1'],
+ 'contribution_recur_id' => $ContributionRecur1['id'],
+ ]);
+ $params = [
+ 'to_financial_account_id' => 1,
+ 'status_id' => 1,
+ 'contribution_id' => $Contribution1['id'],
+ 'payment_instrument_id' => 1,
+ 'card_type_id' => 1,
+ 'total_amount' => 11,
+ ];
+ CRM_Core_BAO_FinancialTrxn::create($params);
+ // "Completed" recurring contribution for contactID2
+ $ContributionRecur2 = $this->callAPISuccess('ContributionRecur', 'create', [
+ 'sequential' => 1,
+ 'contact_id' => $this->ids['Contact']['contactID2'],
+ 'frequency_interval' => 1,
+ 'frequency_unit' => "month",
+ 'amount' => 22,
+ 'currency' => "CAD",
+ 'payment_instrument_id' => 1,
+ 'contribution_status_id' => 1,
+ 'financial_type_id' => "Donation",
+ ]);
+ $Contribution2 = $this->callAPISuccess('Contribution', 'create', [
+ 'financial_type_id' => 'Donation',
+ 'total_amount' => 22,
+ 'receive_date' => date('Ymd'),
+ 'receive_date_time' => NULL,
+ 'payment_instrument' => 1,
+ 'contribution_status_id' => 1,
+ 'contact_id' => $this->ids['Contact']['contactID2'],
+ 'contribution_recur_id' => $ContributionRecur2['id'],
+ ]);
+ $params = [
+ 'to_financial_account_id' => 1,
+ 'status_id' => 1,
+ 'contribution_id' => $Contribution2['id'],
+ 'payment_instrument_id' => 1,
+ 'card_type_id' => 1,
+ 'total_amount' => 22,
+ ];
+ CRM_Core_BAO_FinancialTrxn::create($params);
+ }
+
+ /**
+ * @return array
+ */
+ public function getSearchData() {
+ $useCases = [
+ // Case 1: Search for ONLY those recurring contributions with status "In Progress"
+ 'in_progress_search' => [
+ 'form_value' => ['contribution_recur_contribution_status_id' => 5],
+ 'expected_count' => 1,
+ 'expected_contact' => ['Mr. Joe Miller II'],
+ 'expected_qill' => "Recurring Contribution Status = 'In Progress'",
+ ],
+ // Case 2: Search for ONLY those recurring contributions with status "Completed"
+ [
+ 'form_value' => ['contribution_recur_contribution_status_id' => 1],
+ 'expected_count' => 1,
+ 'expected_contact' => ['Mr. Terrence Smith II'],
+ 'expected_qill' => "Recurring Contribution Status = 'Completed'",
+ ],
+ // Case 3: Search for ONLY those recurring contributions with status "Cancelled"
+ [
+ 'form_value' => ['contribution_recur_contribution_status_id' => 3],
+ 'expected_count' => 0,
+ 'expected_contact' => [],
+ 'expected_qill' => "Recurring Contribution Status = 'Cancelled'",
+ ],
+ ];
+ return $useCases;
+ }
+
}
$daoRecurEvent->id = $generatedEntities['civicrm_event'][$key];
if ($daoRecurEvent->find(TRUE)) {
$daoRecurEvent->delete();
- $daoRecurEvent->free();
}
//Check if this event_id was deleted
$dao = CRM_Core_DAO::executeQuery($sql);
$contactsFetchedFromBufferedQuery = $dao->fetchAll();
- $dao->free();
$dao = CRM_Core_DAO::executeUnbufferedQuery($sql);
$contactsFetchedFromUnbufferedQuery = $dao->fetchAll();
- $dao->free();
$this->checkArrayEquals($contactsFetchedFromBufferedQuery, $contactsFetchedFromUnbufferedQuery);
}
$this->appendOptions = array(2 => 'Maybe');
$options = CRM_Core_PseudoConstant::get('CRM_Core_BAO_CustomField', $this->targetField);
$this->assertEquals(array(1 => 'Yes', 0 => 'No', 2 => 'Maybe'), $options);
-
- $field->free();
}
/**
$logging->fixSchemaDifferencesFor('civicrm_option_value', array(), TRUE);
$query = CRM_Core_DAO::executeQuery("SHOW CREATE TABLE `log_civicrm_option_value`", array(), TRUE, NULL, FALSE, FALSE);
$query->fetch();
- $query->free();
$create = explode("\n", $query->Create_Table);
$this->assertTrue(in_array(" `logging_test` int(11) DEFAULT '0'", $create));
$create = explode("\n", $query->Create_Table);
else {
$testCase->fail("Could not retrieve object: $daoName, $id");
}
- $object->free();
$matchSize = count($match);
if ($verifiedCount != $matchSize) {
$testCase->fail("Did not verify all fields in match array: $daoName, $id. Verified count = $verifiedCount. Match array size = $matchSize");
if ($dao->fetch()) {
$msg = $dao->headers . "\n\n" . $dao->body;
}
- $dao->free();
}
switch ($type) {
while ($dao->fetch()) {
$msgs[] = $dao->headers . "\n\n" . $dao->body;
}
- $dao->free();
}
switch ($type) {
protected $session_id;
protected $nocms_contact_id;
protected $old_api_keys;
+ protected $adminContactId;
/**
* @param $apiResult
$this->assertAPIErrorCode($result, 1);
}
+ /**
+ * Submit a request with an API key that exists but does not correspond to.
+ * a real user. Submit in "?entity=X&action=X" notation
+ */
+ public function testGetCorrectUserBack() {
+ $this->updateAdminApiKey();
+ $client = CRM_Utils_HttpClient::singleton();
+
+ //Create contact with api_key
+ // The key associates with a real contact but not a real user
+ $params = array(
+ "entity" => "Contact",
+ "action" => "get",
+ "key" => $GLOBALS['_CV']['CIVI_SITE_KEY'],
+ "json" => "1",
+ "api_key" => self::getApiKey(),
+ "id" => "user_contact_id",
+ );
+ list($status, $data) = $client->post($this->getRestUrl(), $params);
+ $this->assertEquals(CRM_Utils_HttpClient::STATUS_OK, $status);
+ $result = json_decode($data, TRUE);
+ $this->assertNotNull($result);
+ $this->assertEquals($result['id'], $this->adminContactId);
+ }
+
/**
* Submit a request with an API key that exists but does not correspond to
* a real user. Submit in "?q=civicrm/$entity/$action" notation
protected function updateAdminApiKey() {
/** @var int $adminContactId */
- $adminContactId = civicrm_api3('contact', 'getvalue', array(
+ $this->adminContactId = civicrm_api3('contact', 'getvalue', array(
'id' => '@user:' . $GLOBALS['_CV']['ADMIN_USER'],
'return' => 'id',
));
- $this->old_api_keys[$adminContactId] = CRM_Core_DAO::singleValueQuery('SELECT api_key FROM civicrm_contact WHERE id = %1', [
- 1 => [$adminContactId, 'Positive'],
+ $this->old_api_keys[$this->adminContactId] = CRM_Core_DAO::singleValueQuery('SELECT api_key FROM civicrm_contact WHERE id = %1', [
+ 1 => [$this->adminContactId, 'Positive'],
]);
//$this->old_admin_api_key = civicrm_api3('Contact', 'get', array(
//));
civicrm_api3('Contact', 'create', array(
- 'id' => $adminContactId,
+ 'id' => $this->adminContactId,
'api_key' => self::getApiKey(),
));
}
$this->assertEquals(2, $values['civicrm_contribution_soft_soft_id_count'], "Total donors should be 2");
}
+ /**
+ * Test a report that uses getAddressColumns();
+ */
+ public function testGetAddressColumns() {
+ $template = 'event/participantlisting';
+ $rows = $this->callAPISuccess('report_template', 'getrows', [
+ 'report_id' => $template,
+ 'fields' => [
+ 'sort_name' => '1',
+ 'street_address' => '1',
+ ],
+ ]);
+ }
+
}
for ($i = 0; $i < 30; $i++) {
$baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
$ids[] = $baoObj->id;
- $baoObj->free();
}
// each case is array(0 => $inputtedApiOptions, 1 => $expectedResultCount)
foreach ($ids as $id) {
CRM_Core_DAO::deleteTestObjects($baoString, array('id' => $id));
}
- $baoObj->free();
}
/**
for ($i = 0; $i < 3 - $totalEntities; $i++) {
$baoObj = CRM_Core_DAO::createTestObject($baoString, array('currency' => 'USD'));
$ids[] = $baoObj->id;
- $baoObj->free();
}
$totalEntities = 3;
}
}
}
}
- $baoObj->free();
}
/* ---- testing the _getFields ---- */
{if $field.import}
'import' => {$field.import|strtoupper},
- 'where' => '{$table.name}.{$field.name}',
- 'headerPattern' => '{$field.headerPattern}',
- 'dataPattern' => '{$field.dataPattern}',
+
{/if} {* field.import *}
+ 'where' => '{$table.name}.{$field.name}',
+ {if $field.headerPattern}'headerPattern' => '{$field.headerPattern}',{/if}
+ {if $field.dataPattern}'dataPattern' => '{$field.dataPattern}',{/if}
{if $field.export}
'export' => {$field.export|strtoupper},
- {if ! $field.import}
- 'where' => '{$table.name}.{$field.name}',
- 'headerPattern' => '{$field.headerPattern}',
- 'dataPattern' => '{$field.dataPattern}',
- {/if}
{/if} {* field.export *}
+
{if $field.rule}
'rule' => '{$field.rule}',
{/if} {* field.rule *}