Skip to content

Commit 310c59b

Browse files
committed
Added link type to click report
1 parent 9ccace3 commit 310c59b

3 files changed

Lines changed: 23 additions & 2 deletions

File tree

CHANGELOG

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
Date 2025-06-24
2+
Version 1.11.2
3+
- Added link type to click reports
4+
5+
Date 2025-06-20
6+
Version 1.11.1
7+
- Fixed bug on uploading zip template
8+
19
Date 2025-06-19
210
Version 1.11.0
311
- Adding method to upload Zip file as template for mailing

src/reports/Click.php

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ class Click extends AbstractXMLWrapper
3333
*/
3434
public $linkId;
3535

36+
/**
37+
* @var string
38+
*/
39+
public $linkType;
40+
3641
/**
3742
* @var string
3843
*/
@@ -99,6 +104,7 @@ public function toString()
99104
", contact=" . $this->contact->toString() .
100105
", mailingId=" . $this->mailingId .
101106
", linkId=" . $this->linkId .
107+
", linkType=" . $this->linkType .
102108
", linkUrl=" . $this->linkUrl .
103109
", linkTags=" . $linkTags .
104110
", clientInfos=" . $this->clientInfos->toString() .
@@ -129,6 +135,9 @@ public function fromXML($xmlElement)
129135
if (isset($xmlElement->link_id)) {
130136
$this->linkId = $xmlElement->link_id;
131137
}
138+
if (isset($xmlElement->link_type)) {
139+
$this->linkType = $xmlElement->link_type;
140+
}
132141
if (isset($xmlElement->link_url)) {
133142
$this->linkUrl = $xmlElement->link_url;
134143
}
@@ -170,6 +179,7 @@ public function toCsvString()
170179
";" . $this->contact->toCsvString() .
171180
";" . $this->mailingId .
172181
";" . $this->linkId .
182+
";" . $this->linkType .
173183
";" . $this->linkUrl .
174184
";" . $this->clientInfos->toCsvString() .
175185
";" . $this->transactionId .
@@ -202,6 +212,9 @@ public function toXML()
202212
if (isset($this->linkId)) {
203213
$xml->addChild("link_id", $this->linkId);
204214
}
215+
if (isset($this->linkType)) {
216+
$xml->addChild("link_type", $this->linkType);
217+
}
205218
if (isset($this->linkUrl)) {
206219
$xml->addChild("link_url", $this->linkUrl);
207220
}

version.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
dist.version = 1.11.0
2-
dist.version.stable = 1.11.0
1+
dist.version = 1.11.2
2+
dist.version.stable = 1.11.2

0 commit comments

Comments
 (0)