use inheritance for campaign classes

This commit is contained in:
Marc Michalsky forumZFD 2020-10-29 23:14:18 +01:00
parent 24d224cc38
commit 6b434e455f
Signed by untrusted user who does not match committer: marc.koch
GPG key ID: 12406554CFB028B9
10 changed files with 932 additions and 475 deletions

View file

@ -89,10 +89,10 @@ class CustomField {
// Log field creation
if ($this->result['is_error'] == 0) {
\Civi::log()->info("Twingle Extension has created a new custom field.\n
label: $this->label\n
name: $this->name\n
id: $this->id\n
\Civi::log()->info("Twingle Extension has created a new custom field.
label: $this->label
name: $this->name
id: $this->id
group: $this->custom_group_id"
);
}
@ -224,10 +224,10 @@ class CustomField {
// Check if custom field was deleted successfully
if ($this->result['is_error'] == 0) {
\Civi::log()->info("Twingle Extension has deleted custom field.\n
label: $this->label\n
name: $this->name\n
id: $this->id\n
\Civi::log()->info("Twingle Extension has deleted custom field.
label: $this->label
name: $this->name
id: $this->id
group: $this->custom_group_id"
);
}