Rewrite sync to use new features

This commit is contained in:
Rich Lott / Artful Robot 2025-02-24 13:16:05 +00:00
parent b0983603e5
commit 16f2b6235d
7 changed files with 502 additions and 365 deletions

View file

@ -1,12 +1,22 @@
<?php
return [
'contact_categories' => [
'name' => 'contact_categories',
'title' => ts('Contact Category settings'),
'description' => ts('JSON encoded settings.'),
'contactcats_last_run' => [
'name' => 'contact_categories_last_run',
'title' => ts('Contact categories last assigned timestamp'),
'description' => ts('UNIX timestamp of last time the categories were assigned to contacts.'),
'group_name' => 'domain',
'type' => 'String',
'serialize' => CRM_Core_DAO::SERIALIZE_JSON,
'type' => 'Int',
'default' => FALSE,
'add' => '5.70',
'is_domain' => 1,
'is_contact' => 0,
],
'contactcats_next_run' => [
'name' => 'contact_categories_next_run',
'title' => ts('Contact categories next assignment due'),
'description' => ts('UNIX timestamp after which cron will re-assign categories to contacts.'),
'group_name' => 'domain',
'type' => 'Int',
'default' => FALSE,
'add' => '5.70',
'is_domain' => 1,