->addMetadata([
'title' => ts('Campaign Status'),
])
- ->addValueTable(['label', 'name', 'value', 'weight'], [
- [ts('Planned'), 'Planned', 1, 1],
- [ts('In Progress'), 'In Progress', 2, 1],
- [ts('Completed'), 'Completed', 3, 1],
- [ts('Cancelled'), 'Cancelled', 4, 1],
+ ->addValueTable(['label', 'name', 'value'], [
+ [ts('Planned'), 'Planned', 1],
+ [ts('In Progress'), 'In Progress', 2],
+ [ts('Completed'), 'Completed', 3],
+ [ts('Cancelled'), 'Cancelled', 4],
+ ])
+ ->addDefaults([
+ 'weight' => 1,
]);
->addMetadata([
'title' => ts('Campaign Type'),
])
- ->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],
+ ->addValueTable(['label', 'name', 'value'], [
+ [ts('Direct Mail'), 'Direct Mail', 1],
+ [ts('Referral Program'), 'Referral Program', 2],
+ [ts('Constituent Engagement'), 'Constituent Engagement', 3],
+ ])
+ ->addDefaults([
+ 'weight' => 1,
]);
'is_locked' => 1,
])
->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],
- [ts('Failed'), 'Failed', 4, 4, 'is_reserved' => 1],
- [ts('Refunded'), 'Refunded', 7, 7, 'is_reserved' => 1],
- [ts('Partially paid'), 'Partially paid', 8, 8, 'is_reserved' => 1],
- [ts('Pending refund'), 'Pending refund', 9, 9, 'is_reserved' => 1],
- [ts('Chargeback'), 'Chargeback', 10, 10, 'is_reserved' => 1],
- [ts('Template'), 'Template', 11, 11, 'description' => ts('Status for contribution records which represent a template for a recurring contribution rather than an actual contribution. This status is transitional, to ensure that said contributions don\\\'t appear in reports. The is_template field is the preferred way to find and filter these contributions.'), 'is_reserved' => 1],
+ [ts('Completed'), 'Completed', 1, 1],
+ [ts('Pending'), 'Pending', 2, 2],
+ [ts('Cancelled'), 'Cancelled', 3, 3],
+ [ts('Failed'), 'Failed', 4, 4],
+ [ts('Refunded'), 'Refunded', 7, 7],
+ [ts('Partially paid'), 'Partially paid', 8, 8],
+ [ts('Pending refund'), 'Pending refund', 9, 9],
+ [ts('Chargeback'), 'Chargeback', 10, 10],
+ [ts('Template'), 'Template', 11, 11, 'description' => ts('Status for contribution records which represent a template for a recurring contribution rather than an actual contribution. This status is transitional, to ensure that said contributions don\\\'t appear in reports. The is_template field is the preferred way to find and filter these contributions.')],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'title' => ts('Group Type'),
])
->addValueTable(['label', 'name', 'value'], [
- [ts('Access Control'), 'Access Control', 1, 'is_reserved' => 1],
- [ts('Mailing List'), 'Mailing List', 2, 'is_reserved' => 1],
+ [ts('Access Control'), 'Access Control', 1],
+ [ts('Mailing List'), 'Mailing List', 2],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'is_locked' => 1,
])
->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],
- [ts('Import Contribution'), 'Import Contribution', 4, 4, 'is_reserved' => 1],
- [ts('Import Membership'), 'Import Membership', 5, 5, 'is_reserved' => 1],
- [ts('Import Participant'), 'Import Participant', 6, 6, 'is_reserved' => 1],
- [ts('Export Contact'), 'Export Contact', 7, 7, 'is_reserved' => 1],
- [ts('Export Contribution'), 'Export Contribution', 8, 8, 'is_reserved' => 1],
- [ts('Export Membership'), 'Export Membership', 9, 9, 'is_reserved' => 1],
- [ts('Export Participant'), 'Export Participant', 10, 10, 'is_reserved' => 1],
- [ts('Export Pledge'), 'Export Pledge', 11, 11, 'is_reserved' => 1],
- [ts('Export Case'), 'Export Case', 12, 12, 'is_reserved' => 1],
- [ts('Export Activity'), 'Export Activity', 14, 14, 'is_reserved' => 1],
+ [ts('Search Builder'), 'Search Builder', 1, 1],
+ [ts('Import Contact'), 'Import Contact', 2, 2],
+ [ts('Import Activity'), 'Import Activity', 3, 3],
+ [ts('Import Contribution'), 'Import Contribution', 4, 4],
+ [ts('Import Membership'), 'Import Membership', 5, 5],
+ [ts('Import Participant'), 'Import Participant', 6, 6],
+ [ts('Export Contact'), 'Export Contact', 7, 7],
+ [ts('Export Contribution'), 'Export Contribution', 8, 8],
+ [ts('Export Membership'), 'Export Membership', 9, 9],
+ [ts('Export Participant'), 'Export Participant', 10, 10],
+ [ts('Export Pledge'), 'Export Pledge', 11, 11],
+ [ts('Export Case'), 'Export Case', 12, 12],
+ [ts('Export Activity'), 'Export Activity', 14, 14],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'data_type' => 'Integer',
])
->addValueTable(['label', 'name', 'value'], [
- [ts('Attendee'), 'Attendee', 1, 'filter' => 1],
- [ts('Volunteer'), 'Volunteer', 2, 'filter' => 1],
- [ts('Host'), 'Host', 3, 'filter' => 1],
- [ts('Speaker'), 'Speaker', 4, 'filter' => 1],
+ [ts('Attendee'), 'Attendee', 1],
+ [ts('Volunteer'), 'Volunteer', 2],
+ [ts('Host'), 'Host', 3],
+ [ts('Speaker'), 'Speaker', 4],
+ ])
+ ->addDefaults([
+ 'filter' => 1,
]);
'is_locked' => 1,
])
->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],
+ [ts('Waiting Review'), 'Waiting Review', 1],
+ [ts('Approved'), 'Approved', 2],
+ [ts('Not Approved'), 'Not Approved', 3],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'is_locked' => 1,
])
->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],
- [ts('In Progress'), 'In Progress', 5, 'is_reserved' => 1],
- [ts('Overdue'), 'Overdue', 6, 'is_reserved' => 1],
+ [ts('Completed'), 'Completed', 1],
+ [ts('Pending'), 'Pending', 2],
+ [ts('Cancelled'), 'Cancelled', 3],
+ [ts('In Progress'), 'In Progress', 5],
+ [ts('Overdue'), 'Overdue', 6],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'title' => ts('Recurring Frequency Units'),
])
->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],
- [ts('year'), 'year', 'year', 'is_reserved' => 1],
+ [ts('day'), 'day', 'day'],
+ [ts('week'), 'week', 'week'],
+ [ts('month'), 'month', 'month'],
+ [ts('year'), 'year', 'year'],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);
'title' => ts('WYSIWYG Editor'),
])
->addValueTable(['label', 'name', 'value'], [
- [ts('Textarea'), 'Textarea', 1, 'is_reserved' => 1],
- [ts('CKEditor 4'), 'CKEditor', 2, 'is_reserved' => 1],
+ [ts('Textarea'), 'Textarea', 1],
+ [ts('CKEditor 4'), 'CKEditor', 2],
+ ])
+ ->addDefaults([
+ 'is_reserved' => 1,
]);