*
* @return $this
*/
- public function addValues(array $header, array $optionValues) : CRM_Core_CodeGen_OptionGroup {
+ public function addValueTable(array $header, array $optionValues) : CRM_Core_CodeGen_OptionGroup {
foreach ($optionValues as $optionValue) {
$row = [];
foreach ($optionValue as $key => $value) {
'title' => ts('Accepted Credit Cards'),
'description' => ts('The following credit card options will be offered to contributors using Online Contribution pages. You will need to verify which cards are accepted by your chosen Payment Processor and update these entries accordingly.') . ts('IMPORTANT: These options do not control credit card/payment method choices for sites and/or contributors using the PayPal Express service (e.g. where billing information is collected on the Payment Processor\\\'s website).'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Visa', 'Visa', 1],
['MasterCard', 'MasterCard', 2],
['Amex', 'Amex', 3],
->addMetadata([
'title' => ts('Account Relationship'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
// TODO: Shouldn't we have ts() for these descriptions?
[ts('Income Account is'), 'Income Account is', 1, 'Income Account is', 'is_default' => 1],
[ts('Credit/Contra Revenue Account is'), 'Credit/Contra Revenue Account is', 2, 'Credit/Contra Revenue Account is'],
->addMetadata([
'title' => ts('ACL Role'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Administrator'), 'Admin', 1],
[ts('Authenticated'), 'Auth', 2, 'is_reserved' => 1],
]);
'title' => ts('Activity Contacts'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Activity Assignees'), 'Activity Assignees', 1, 3],
[ts('Activity Source'), 'Activity Source', 2, 2],
[ts('Activity Targets'), 'Activity Targets', 3, 1],
->addMetadata([
'title' => ts('Activity default assignee'),
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('None'), 'NONE', 1, 1, 'is_default' => 1],
[ts('By relationship to case client'), 'BY_RELATIONSHIP', 2, 1],
[ts('Specific contact'), 'SPECIFIC_CONTACT', 3, 1],
'data_type' => 'Integer',
'option_value_fields' => 'name,label,description,color',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Scheduled'), 'Scheduled', 1, 'is_default' => 1, 'is_reserved' => 1],
[ts('Completed'), 'Completed', 2, 'filter' => 1, 'is_reserved' => 1],
[ts('Cancelled'), 'Cancelled', 3, 'filter' => 2, 'is_reserved' => 1],
'data_type' => 'Integer',
'option_value_fields' => 'name,label,description,icon',
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Meeting'), 'Meeting', '1', '1', 'is_reserved' => '1', 'icon' => 'fa-slideshare'],
[ts('Phone Call'), 'Phone Call', '2', '2', 'is_reserved' => '1', 'icon' => 'fa-phone'],
[ts('Email'), 'Email', '3', '3', 'filter' => '1', 'description' => ts('Email sent.'), 'is_reserved' => '1', 'icon' => 'fa-envelope-o'],
->addMetadata([
'title' => ts('Addressing Options'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Street Address'), 'street_address', 1],
[ts('Supplemental Address 1'), 'supplemental_address_1', 2],
[ts('Supplemental Address 2'), 'supplemental_address_2', 3],
->addMetadata([
'title' => ts('Addressee Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['{contact.prefix_id:label}{ }{contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.suffix_id:label}', '{contact.prefix_id:label}{ }{contact.first_name}{ }{contact.middle_name}{ }{contact.last_name}{ }{contact.suffix_id:label}', 1, 'filter' => 1, 'is_default' => 1],
['{contact.household_name}', '{contact.household_name}', 2, 'filter' => 2, 'is_default' => 1],
['{contact.organization_name}', '{contact.organization_name}', 3, 'filter' => 3, 'is_default' => 1],
'title' => ts('Advanced Search Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Address Fields'), 'location', 1, 1],
[ts('Custom Fields'), 'custom', 2, 2],
[ts('Activities'), 'activity', 3, 4],
'title' => ts('Auto Renew Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Renewal Reminder (non-auto-renew memberships only)'), 'Renewal Reminder (non-auto-renew memberships only)', 1],
[ts('Auto-renew Memberships Only'), 'Auto-renew Memberships Only', 2],
[ts('Reminder for Both'), 'Reminder for Both', 3],
'title' => ts('Batch Mode'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
// TODO: Shouldn't we have ts() for these descriptions?
[ts('Manual Batch'), 'Manual Batch', 1, 'Manual Batch', 'is_reserved' => 1, 'component_id' => 2],
[ts('Automatic Batch'), 'Automatic Batch', 2, 'Automatic Batch', 'is_reserved' => 1, 'component_id' => 2],
'title' => ts('Batch Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Open'), 'Open', 1],
[ts('Closed'), 'Closed', 2],
[ts('Data Entry'), 'Data Entry', 3],
'title' => ts('Batch Type'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Contribution'), 'Contribution', 1],
[ts('Membership'), 'Membership', 2],
[ts('Pledge Payment'), 'Pledge Payment', 3],
->addMetadata([
'title' => ts('Campaign Status'),
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Planned'), 'Planned', 1, 1],
[ts('In Progress'), 'In Progress', 2, 1],
[ts('Completed'), 'Completed', 3, 1],
->addMetadata([
'title' => ts('Campaign Type'),
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Direct Mail'), 'Direct Mail', 1, 1],
[ts('Referral Program'), 'Referral Program', 2, 1],
[ts('Constituent Engagement'), 'Constituent Engagement', 3, 1],
'title' => ts('Case Status'),
'option_value_fields' => 'name,label,description,color',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Ongoing'), 'Open', 1, 'grouping' => 'Opened', 'is_default' => 1, 'is_reserved' => 1],
[ts('Resolved'), 'Closed', 2, 'grouping' => 'Closed', 'is_reserved' => 1],
[ts('Urgent'), 'Urgent', 3, 'grouping' => 'Opened'],
->addMetadata([
'title' => ts('Objects a custom group extends to'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Survey'), 'civicrm_survey', 'Survey'],
[ts('Cases'), 'civicrm_case', 'Case', 'grouping' => 'case_type_id'],
]);
->addMetadata([
'title' => ts('Communication Style'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Formal'), 'formal', 1, 'is_default' => 1],
[ts('Familiar'), 'familiar', 2],
]);
->addMetadata([
'title' => ts('Conference Slot'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Morning Sessions'), 'Morning Sessions', 1],
[ts('Evening Sessions'), 'Evening Sessions', 2],
]);
'title' => ts('Autocomplete Contact Search'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Email Address'), 'email', 2, 2],
[ts('Phone'), 'phone', 3, 3],
[ts('Street Address'), 'street_address', 4, 4],
'title' => ts('Contact Date Reminder Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Actual date only'), 'Actual date only', 1, 'is_reserved' => 1],
[ts('Each anniversary'), 'Each anniversary', 2, 'is_reserved' => 1],
])
'title' => ts('Contact Edit Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Custom Data'), 'CustomData', 1],
[ts('Address'), 'Address', 2],
[ts('Communication Preferences'), 'CommunicationPreferences', 3],
'title' => ts('Contact Reference Autocomplete Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Email Address'), 'email', 2, 2],
[ts('Phone'), 'phone', 3, 3],
[ts('Street Address'), 'street_address', 4, 4],
'title' => ts('Contact Smart Group View Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Show Smart Groups on Demand'), 'showondemand', 1],
[ts('Always Show Smart Groups'), 'alwaysshow', 2],
[ts('Hide Smart Groups'), 'hide', 3],
'title' => ts('Contact View Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
// NOTE: The original SQL had this inaccurate comment. It is unclear if the comment is inaccurate
// because the situation changed for the better or the worse.
'title' => ts('Recurring Contribution Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Completed'), 'Completed', 1],
[ts('Pending'), 'Pending', 2],
[ts('Cancelled'), 'Cancelled', 3],
'title' => ts('Contribution Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Completed'), 'Completed', 1, 1, 'is_reserved' => 1],
[ts('Pending'), 'Pending', 2, 2, 'is_reserved' => 1],
[ts('Cancelled'), 'Cancelled', 3, 3, 'is_reserved' => 1],
->addMetadata([
'title' => ts('Currencies Enabled'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['USD ($)', 'USD', 'USD', 'is_default' => 1],
['CAD ($)', 'CAD', 'CAD'],
['EUR (€)', 'EUR', 'EUR'],
->addMetadata([
'title' => ts('Custom Data Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Participants (Role)'), 'ParticipantRole', 1, 'grouping' => 'role_id'],
[ts('Participants (Event Name)'), 'ParticipantEventName', 2, 'grouping' => 'event_id'],
[ts('Participants (Event Type)'), 'ParticipantEventType', 3, 'grouping' => 'event_id.event_type_id'],
->addMetadata([
'title' => ts('Custom Search'),
])
- ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
['CRM_Contact_Form_Search_Custom_Sample', 'CRM_Contact_Form_Search_Custom_Sample', 1, 1, ts('Household Name and State')],
['CRM_Contact_Form_Search_Custom_ContributionAggregate', 'CRM_Contact_Form_Search_Custom_ContributionAggregate', 2, 2, ts('Contribution Aggregate')],
['CRM_Contact_Form_Search_Custom_Group', 'CRM_Contact_Form_Search_Custom_Group', 4, 4, ts('Include / Exclude Search')],
->addMetadata([
'title' => ts('Email Greeting Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Dear {contact.first_name}', 'Dear {contact.first_name}', 1, 'filter' => 1, 'is_default' => 1],
['Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 2, 'filter' => 1],
['Dear {contact.prefix_id:label} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.last_name}', 3, 'filter' => 1],
'title' => 'Encounter Medium',
'description' => 'Encounter medium for case activities (e.g. In Person, By Phone, etc.)',
])
- ->addValues(['label', 'name'], [
+ ->addValueTable(['label', 'name'], [
[ts('In Person'), 'in_person'],
[ts('Phone'), 'phone', 'is_default' => 1],
[ts('Email'), 'email'],
->addMetadata([
'title' => ts('Engagement Index'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('1'), 1, 1],
[ts('2'), 2, 2],
[ts('3'), 3, 3],
->addMetadata([
'title' => ts('Entity Batch Extends'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Financial Transactions'), 'civicrm_financial_trxn', 'civicrm_financial_trxn', 'is_default' => 1, 'component_id' => 2],
]);
->addMetadata([
'title' => ts('Environment'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
[ts('Production'), 'Production', 'Production', ts('Production Environment'), 'is_default' => 1],
[ts('Staging'), 'Staging', 'Staging', ts('Staging Environment')],
[ts('Development'), 'Development', 'Development', ts('Development Environment')],
->addMetadata([
'title' => ts('Event Name Badge'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
[ts('Name Only'), 'CRM_Event_Badge_Simple', 1, ts('Simple Event Name Badge'), 'is_reserved' => 1],
[ts('Name Tent'), 'CRM_Event_Badge_NameTent', 2, ts('Name Tent'), 'is_reserved' => 1],
[ts('With Logo'), 'CRM_Event_Badge_Logo', 3, ts('You can set your own background image'), 'is_reserved' => 1],
->addMetadata([
'title' => ts('Event Recipients'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Participant Role'), 'participant_role', 1],
]);
'description' => ts('Use Event Types to categorize your events. Event feeds can be filtered by Event Type and participant searches can use Event Type as a criteria.'),
'data_type' => 'Integer',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Conference'), 'Conference', 1],
[ts('Exhibition'), 'Exhibition', 2],
[ts('Fundraiser'), 'Fundraiser', 3],
->addMetadata([
'title' => ts('Financial Account Type'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
[ts('Asset'), 'Asset', 1, ts('Things you own'), 'is_reserved' => 1, 'component_id' => 2],
[ts('Liability'), 'Liability', 2, ts('Things you owe, like a grant still to be disbursed'), 'is_reserved' => 1, 'component_id' => 2],
[ts('Revenue'), 'Revenue', 3, ts('Income from contributions and sales of tickets and memberships'), 'is_default' => 1, 'is_reserved' => 1, 'component_id' => 2],
'title' => ts('Financial Item Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
// TODO: Shouldn't we have ts() for these descriptions?
[ts('Paid'), 'Paid', 1, 1, 'Paid', 'is_reserved' => 1, 'component_id' => 2],
[ts('Unpaid'), 'Unpaid', 3, 1, 'Unpaid', 'is_reserved' => 1, 'component_id' => 2],
'title' => ts('From Email Address'),
'description' => ts('By default, CiviCRM uses the primary email address of the logged in user as the FROM address when sending emails to contacts. However, you can use this page to define one or more general Email Addresses that can be selected as an alternative. EXAMPLE: "Client Services" <clientservices@example.org>.'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
['"FIXME" <info@EXAMPLE.ORG>', '"FIXME" <info@EXAMPLE.ORG>', 1, ts('Default domain email address and from name.'), 'is_default' => 1, 'domain_id' => new CRM_Utils_SQL_Literal('@domainID')],
]);
'description' => ts('CiviCRM is pre-configured with standard options for individual gender (Male, Female, Other). Modify these options as needed for your installation.'),
'data_type' => 'Integer',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Female'), 'Female', 1],
[ts('Male'), 'Male', 2],
[ts('Other'), 'Other', 3],
->addMetadata([
'title' => ts('Group Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Access Control'), 'Access Control', 1, 'is_reserved' => 1],
[ts('Mailing List'), 'Mailing List', 2, 'is_reserved' => 1],
]);
'title' => ts('Individual contact prefixes'),
'description' => ts('CiviCRM is pre-configured with standard options for individual contact prefixes (Ms., Mr., Dr. etc.). Customize these options and add new ones as needed for your installation.'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Mrs.'), 'Mrs.', 1],
[ts('Ms.'), 'Ms.', 2],
[ts('Mr.'), 'Mr.', 3],
'title' => ts('Individual contact suffixes'),
'description' => ts('CiviCRM is pre-configured with standard options for individual contact name suffixes (Jr., Sr., II etc.). Customize these options and add new ones as needed for your installation.'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Jr.'), 'Jr.', 1],
[ts('Sr.'), 'Sr.', 2],
['II', 'II', 3],
'title' => ts('Instant Messenger (IM) screen-names'),
'description' => ts('Commonly-used messaging apps are listed here. Administrators may define as many additional providers as needed.'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Yahoo', 'Yahoo', 1],
['MSN', 'Msn', 2],
['AIM', 'Aim', 3],
->addMetadata([
'title' => ts('Mailing Label Format'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Avery 3475'), 3475, '{"paper-size":"a4","orientation":"portrait","font-name":"dejavusans","font-size":10,"font-style":"","metric":"mm","lMargin":0,"tMargin":5,"NX":3,"NY":8,"SpaceX":0,"SpaceY":0,"width":70,"height":36,"lPadding":5.08,"tPadding":5.08}', 'grouping' => 'Avery', 'is_reserved' => 1],
[ts('Avery 5160'), 5160, '{"paper-size":"letter","orientation":"portrait","font-name":"dejavusans","font-size":8,"font-style":"","metric":"in","lMargin":0.21975,"tMargin":0.5,"NX":3,"NY":10,"SpaceX":0.14,"SpaceY":0,"width":2.5935,"height":1,"lPadding":0.20,"tPadding":0.20}', 'grouping' => 'Avery', 'is_reserved' => 1],
[ts('Avery 5161'), 5161, '{"paper-size":"letter","orientation":"portrait","font-name":"dejavusans","font-size":8,"font-style":"","metric":"in","lMargin":0.175,"tMargin":0.5,"NX":2,"NY":10,"SpaceX":0.15625,"SpaceY":0,"width":4,"height":1,"lPadding":0.20,"tPadding":0.20}', 'grouping' => 'Avery', 'is_reserved' => 1],
->addMetadata([
'title' => ts('Label Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Event Badge'), 'Event Badge', 1],
])
->addDefaults([
->addMetadata([
'title' => ts('CiviMail Approval Status'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Approved'), 'Approved', 1, 'is_default' => 1, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
[ts('Rejected'), 'Rejected', 2, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
[ts('None'), 'None', 3, 'is_reserved' => 1, 'component_id' => 4, 'domain_id' => 1],
->addMetadata([
'title' => ts('Mail Protocol'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['IMAP', 'IMAP', 1],
['Maildir', 'Maildir', 2],
['POP3', 'POP3', 3],
'title' => ts('Mapping Type'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Search Builder'), 'Search Builder', 1, 1, 'is_reserved' => 1],
[ts('Import Contact'), 'Import Contact', 2, 2, 'is_reserved' => 1],
[ts('Import Activity'), 'Import Activity', 3, 3, 'is_reserved' => 1],
'title' => ts('Mobile Phone Providers'),
'description' => ts('When recording mobile phone numbers for contacts, it may be useful to include the Mobile Phone Service Provider (e.g. Cingular, Sprint, etc.). CiviCRM is installed with the most commonly encountered service providers. Administrators may define as many additional providers as needed.'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Sprint', 'Sprint', 1],
['Verizon', 'Verizon', 2],
['Cingular', 'Cingular', 3],
->addMetadata([
'title' => ts('Message Mode'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Email'), 'Email', 'Email', 'is_default' => 1, 'is_reserved' => 1],
[ts('SMS'), 'SMS', 'SMS', 'is_reserved' => 1],
[ts('User Preference'), 'User Preference', 'User_Preference', 'is_reserved' => 1],
->addMetadata([
'title' => ts('Name Badge Format'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Avery 5395'), 'Avery 5395', '{"name":"Avery 5395","paper-size":"a4","metric":"mm","lMargin":15,"tMargin":26,"NX":2,"NY":4,"SpaceX":10,"SpaceY":5,"width":83,"height":57,"font-size":12,"orientation":"portrait","font-name":"helvetica","font-style":"","lPadding":3,"tPadding":3}'],
[ts('A6 Badge Portrait 150x106'), 'A6 Badge Portrait 150x106', '{"paper-size":"a4","orientation":"landscape","font-name":"times","font-size":6,"font-style":"","NX":2,"NY":1,"metric":"mm","lMargin":25,"tMargin":27,"SpaceX":0,"SpaceY":35,"width":106,"height":150,"lPadding":5,"tPadding":5}'],
[ts('Fattorini Name Badge 100x65'), 'Fattorini Name Badge 100x65', '{"paper-size":"a4","orientation":"portrait","font-name":"times","font-size":6,"font-style":"","NX":2,"NY":4,"metric":"mm","lMargin":6,"tMargin":19,"SpaceX":0,"SpaceY":0,"width":100,"height":65,"lPadding":0,"tPadding":0}'],
->addMetadata([
'title' => ts('Privacy levels for notes'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('None'), 'None', 0, 'is_default' => 1, 'is_reserved' => 1],
[ts('Author Only'), 'Author Only', 1, 'is_reserved' => 1],
]);
'title' => ts('Note Used For'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Contacts'), 'Contact', 'civicrm_contact'],
[ts('Relationships'), 'Relationship', 'civicrm_relationship'],
[ts('Participants'), 'Participant', 'civicrm_participant'],
->addMetadata([
'title' => ts('Paper Size'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Letter'), 'letter', '{"metric":"in","width":8.5,"height":11}', 'is_default' => 1],
[ts('Legal'), 'legal', '{"metric":"in","width":8.5,"height":14}'],
[ts('Ledger'), 'ledger', '{"metric":"in","width":17,"height":11}'],
->addMetadata([
'title' => ts('Participant Listing'),
])
- ->addValues(['label', 'name', 'value', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'description'], [
[ts('Name Only'), 'Name Only', 1, ts('CRM_Event_Page_ParticipantListing_Name'), 'is_reserved' => 1],
[ts('Name and Email'), 'Name and Email', 2, ts('CRM_Event_Page_ParticipantListing_NameAndEmail'), 'is_reserved' => 1],
[ts('Name, Status and Register Date'), 'Name, Status and Register Date', 3, ts('CRM_Event_Page_ParticipantListing_NameStatusAndDate'), 'is_reserved' => 1],
'description' => ts('Define participant roles for events here (e.g. Attendee, Host, Speaker...). You can then assign roles and search for participants by role.'),
'data_type' => 'Integer',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Attendee'), 'Attendee', 1, 'filter' => 1],
[ts('Volunteer'), 'Volunteer', 2, 'filter' => 1],
[ts('Host'), 'Host', 3, 'filter' => 1],
'description' => ts('You may choose to record the payment method used for each contribution and fee. Reserved payment methods are required - you may modify their labels but they can not be deleted (e.g. Check, Credit Card, Debit Card). If your site requires additional payment methods, you can add them here. You can associate each payment method with a Financial Account which specifies where the payment is going (e.g. a bank account for checks and cash).'),
'data_type' => 'Integer',
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Credit Card'), 'Credit Card', 1, 'is_reserved' => 1],
[ts('Debit Card'), 'Debit Card', 2, 'is_reserved' => 1],
[ts('Cash'), 'Cash', 3],
'title' => ts('PCP owner notifications'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Owner chooses whether to receive notifications'), 'owner_chooses', 1, 'is_default' => 1, 'is_reserved' => 1],
[ts('Notifications are sent to ALL owners'), 'all_owners', 2, 'is_reserved' => 1],
[ts('Notifications are NOT available'), 'no_notifications', 3, 'is_reserved' => 1],
'title' => ts('PCP Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Waiting Review'), 'Waiting Review', 1, 'is_reserved' => 1],
[ts('Approved'), 'Approved', 2, 'is_reserved' => 1],
[ts('Not Approved'), 'Not Approved', 3, 'is_reserved' => 1],
->addMetadata([
'title' => ts('PDF Page Format'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Invoice PDF Format'), 'default_invoice_pdf_format', '{"metric":"px","margin_top":10,"margin_bottom":0,"margin_left":65,"margin_right":0}', 'is_reserved' => 1],
]);
->addMetadata([
'title' => ts('Phone Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Phone'), 'Phone', 1],
[ts('Mobile'), 'Mobile', 2],
[ts('Fax'), 'Fax', 3],
'title' => ts('Pledge Status'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Completed'), 'Completed', 1, 'is_reserved' => 1],
[ts('Pending'), 'Pending', 2, 'is_reserved' => 1],
[ts('Cancelled'), 'Cancelled', 3, 'is_reserved' => 1],
->addMetadata([
'title' => ts('Postal Greeting Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Dear {contact.first_name}', 'Dear {contact.first_name}', 1, 'filter' => 1, 'is_default' => 1],
['Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.first_name} {contact.last_name}', 2, 'filter' => 1],
['Dear {contact.prefix_id:label} {contact.last_name}', 'Dear {contact.prefix_id:label} {contact.last_name}', 3, 'filter' => 1],
->addMetadata([
'title' => ts('Preferred Communication Method'),
])
- ->addValues(['label', 'name'], [
+ ->addValueTable(['label', 'name'], [
[ts('Phone'), 'Phone'],
[ts('Email'), 'Email'],
[ts('Postal Mail'), 'Postal Mail'],
->addMetadata([
'title' => ts('Priority'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Urgent'), 'Urgent', 1],
[ts('Normal'), 'Normal', 2],
[ts('Low'), 'Low', 3],
->addMetadata([
'title' => ts('Recent Items Providers'),
])
- ->addValues(['label', 'value', 'name'], [
+ ->addValueTable(['label', 'value', 'name'], [
[ts('Contacts'), 'Contact', 'Contact'],
[ts('Relationships'), 'Relationship', 'Relationship'],
[ts('Activities'), 'Activity', 'Activity'],
->addMetadata([
'title' => ts('Recurring Frequency Units'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('day'), 'day', 'day', 'is_reserved' => 1],
[ts('week'), 'week', 'week', 'is_reserved' => 1],
[ts('month'), 'month', 'month', 'is_reserved' => 1],
->addMetadata([
'title' => ts('Redaction Rule'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Vancouver', 'city_', 'city_', 'is_active' => 0],
['/(19|20)(\\d{2})-(\\d{1,2})-(\\d{1,2})/', 'date_', 'date_', 'filter' => 1, 'is_active' => 0],
]);
->addMetadata([
'title' => ts('Relative Date Filters'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Today'), 'this.day', 'this.day'],
[ts('This week'), 'this.week', 'this.week'],
[ts('This calendar month'), 'this.month', 'this.month'],
->addMetadata([
'title' => ts('Report Template'),
])
- ->addValues(['label', 'name', 'value', 'weight', 'description'], [
+ ->addValueTable(['label', 'name', 'value', 'weight', 'description'], [
[ts('Constituent Report (Summary)'), 'CRM_Report_Form_Contact_Summary', 'contact/summary', 1, ts('Provides a list of address and telephone information for constituent records in your system.')],
[ts('Constituent Report (Detail)'), 'CRM_Report_Form_Contact_Detail', 'contact/detail', 2, ts('Provides contact-related information on contributions, memberships, events and activities.')],
[ts('Activity Details Report'), 'CRM_Report_Form_Activity', 'activity', 3, ts('Provides a list of constituent activity including activity statistics for one/all contacts during a given date range(required)')],
->addMetadata([
'title' => ts('Safe File Extension'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['jpg', 'jpg', 1],
['jpeg', 'jpeg', 2],
['png', 'png', 3],
->addMetadata([
'title' => ts('Api Type'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['http', 'http', 1, 'is_reserved' => 1],
['xml', 'xml', 2, 'is_reserved' => 1],
['smtp', 'smtp', 3, 'is_reserved' => 1],
->addMetadata([
'title' => ts('Soft Credit Types'),
])
- ->addValues(['label', 'value', 'name'], [
+ ->addValueTable(['label', 'value', 'name'], [
[ts('In Honor of'), 1, 'in_honor_of', 'is_reserved' => 1],
[ts('In Memory of'), 2, 'in_memory_of', 'is_reserved' => 1],
[ts('Solicited'), 3, 'solicited', 'is_reserved' => 1, 'is_default' => 1],
'title' => ts('Tag Used For'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Contacts'), 'Contact', 'civicrm_contact'],
[ts('Activities'), 'Activity', 'civicrm_activity'],
[ts('Cases'), 'Case', 'civicrm_case'],
'title' => ts('User Dashboard Options'),
'is_locked' => 1,
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
[ts('Groups'), 'Groups', 1, 1],
[ts('Contributions'), 'CiviContribute', 2, 2],
[ts('Memberships'), 'CiviMember', 3, 3],
->addMetadata([
'title' => ts('Visibility'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
['Public', 'public', 1],
['Admin', 'admin', 2],
]);
->addMetadata([
'title' => ts('Website Type'),
])
- ->addValues(['label', 'name', 'value', 'weight'], [
+ ->addValueTable(['label', 'name', 'value', 'weight'], [
['Work', 'Work', 1, 1, 'is_default' => 1],
['Main', 'Main', 2, 2],
['Facebook', 'Facebook', 3, 3],
->addMetadata([
'title' => ts('WYSIWYG Editor'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Textarea'), 'Textarea', 1, 'is_reserved' => 1],
[ts('CKEditor 4'), 'CKEditor', 2, 'is_reserved' => 1],
]);
->addMetadata([
'title' => ts('WYSIWYG Editor Presets'),
])
- ->addValues(['label', 'name', 'value'], [
+ ->addValueTable(['label', 'name', 'value'], [
[ts('Default'), 'default', 1, 'is_default' => 1],
[ts('CiviMail'), 'civimail', 2, 'component_id' => 4],
[ts('CiviEvent'), 'civievent', 3, 'component_id' => 1],