🔖 Version 1.0.0-beta
This commit is contained in:
parent
c93a06972b
commit
460a811554
26 changed files with 2480 additions and 771 deletions
|
@ -1,10 +1,13 @@
|
|||
<?php
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Civi\Mailinglistsync;
|
||||
|
||||
use Civi\Mailinglistsync\Exceptions\ContactSyncException;
|
||||
use CRM_Mailinglistsync_ExtensionUtil as E;
|
||||
|
||||
class MailingListManager {
|
||||
use Singleton;
|
||||
|
||||
/**
|
||||
* Is the mailing list enabled?
|
||||
|
@ -67,7 +70,7 @@ class MailingListManager {
|
|||
*
|
||||
* @throws \Exception
|
||||
*/
|
||||
function __construct() {
|
||||
protected function __construct() {
|
||||
// Load settings
|
||||
$settings = MailingListSettings::get();
|
||||
$this->enabled = $settings[E::SHORT_NAME . '_enable'] ?? FALSE;
|
||||
|
@ -82,17 +85,6 @@ class MailingListManager {
|
|||
$this->dovecotToken = $settings[E::SHORT_NAME . '_dovecot_token'] ??
|
||||
throw new \Exception('No dovecot token set');
|
||||
$this->dovecotPort = $settings[E::SHORT_NAME . '_dovecot_port'] ?? 443;
|
||||
$this->mlmmjApi = MailingListApi::getInstance();
|
||||
}
|
||||
|
||||
function createEmailAddress(string $emailAddress) {} // TODO
|
||||
|
||||
function deleteEmailAddress(string $emailAddress) {} // TODO
|
||||
|
||||
function createMailingList(BaseMailingList $mailingList) {} // TODO
|
||||
|
||||
function deleteMailingList(BaseMailingList $mailingList) {} // TODO
|
||||
|
||||
function updateMailingList(BaseMailingList $mailingList) {} // TODO
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue