/var/www/doncode.com.ua/www/mailer/vendor/sendgrid/sendgrid/lib/mail
NameSizeModeActions
Asm.php46980644editdlrm
Attachment.php59170644editdlrm
BatchId.php16030644editdlrm
Bcc.php2810644editdlrm
BccSettings.php25440644editdlrm
BypassBounceManagement.php19940644editdlrm
BypassListManagement.php19390644editdlrm
BypassSpamManagement.php19820644editdlrm
BypassUnsubscribeManagement.php21220644editdlrm
Category.php17470644editdlrm
Cc.php2780644editdlrm
ClickTracking.php27150644editdlrm
Content.php29240644editdlrm
CustomArg.php26770644editdlrm
EmailAddress.php50280644editdlrm
Footer.php30560644editdlrm
From.php2840644editdlrm
Ganalytics.php64560644editdlrm
GroupId.php14770644editdlrm
GroupsToDisplay.php32360644editdlrm
Header.php23630644editdlrm
HtmlContent.php5310644editdlrm
IpPoolName.php20090644editdlrm
Mail.php697930644editdlrm
MailSettings.php137510644editdlrm
MimeType.php3190644editdlrm
OpenTracking.php36500644editdlrm
Personalization.php84080644editdlrm
PlainTextContent.php5470644editdlrm
ReplyTo.php2930644editdlrm
SandBoxMode.php16320644editdlrm
Section.php22560644editdlrm
SendAt.php36050644editdlrm
SpamCheck.php43190644editdlrm
Subject.php13990644editdlrm
SubscriptionTracking.php67830644editdlrm
Substitution.php29930644editdlrm
TemplateId.php23420644editdlrm
To.php2780644editdlrm
TrackingSettings.php92600644editdlrm
TypeException.php770644editdlrm
Edit: /var/www/doncode.com.ua/www/mailer/vendor/sendgrid/sendgrid/lib/mail/TrackingSettings.php (9260B)
setClickTracking($click_tracking); } if (isset($open_tracking)) { $this->setOpenTracking($open_tracking); } if (isset($subscription_tracking)) { $this->setSubscriptionTracking($subscription_tracking); } if (isset($ganalytics)) { $this->setGanalytics($ganalytics); } } /** * Set the click tracking settings on a TrackingSettings object * * @param ClickTracking|bool $enable The ClickTracking object or an * indication if the setting is enabled * @param bool|null $enable_text Indicates if this setting should be * included in the text/plain portion of * your email * * @throws TypeException */ public function setClickTracking($enable, $enable_text = null) { if ($enable instanceof ClickTracking) { $click_tracking = $enable; $this->click_tracking = $click_tracking; return; } $this->click_tracking = new ClickTracking($enable, $enable_text); } /** * Retrieve the click tracking settings from a TrackingSettings object * * @return ClickTracking */ public function getClickTracking() { return $this->click_tracking; } /** * Set the open tracking settings on a TrackingSettings object * * @param OpenTracking|bool $enable The ClickTracking object or an * indication if the setting is * enabled * @param string|null $substitution_tag Allows you to specify a * substitution tag that you can * insert in the body of your email * at a location that you desire. * This tag will be replaced by * the open tracking pixelail * * @throws TypeException */ public function setOpenTracking($enable, $substitution_tag = null) { if ($enable instanceof OpenTracking) { $open_tracking = $enable; $this->open_tracking = $open_tracking; return; } $this->open_tracking = new OpenTracking($enable, $substitution_tag); } /** * Retrieve the open tracking settings on a TrackingSettings object * * @return OpenTracking */ public function getOpenTracking() { return $this->open_tracking; } /** * Set the subscription tracking settings on a TrackingSettings object * * @param SubscriptionTracking|bool $enable The SubscriptionTracking * object or an indication * if the setting is enabled * @param string|null $text Text to be appended to the * email, with the * subscription tracking * link. You may control * where the link is by using * the tag <% %> * @param string|null $html HTML to be appended to the * email, with the * subscription tracking * link. You may control * where the link is by using * the tag <% %> * @param string|null $substitution_tag A tag that will be * replaced with the * unsubscribe URL. For * example: * [unsubscribe_url]. If this * parameter is used, it will * override both the text * and html parameters. The * URL of the link will be * placed at the substitution * tag’s location, with no * additional formatting * * @throws TypeException */ public function setSubscriptionTracking( $enable, $text = null, $html = null, $substitution_tag = null ) { if ($enable instanceof SubscriptionTracking) { $subscription_tracking = $enable; $this->subscription_tracking = $subscription_tracking; return; } $this->subscription_tracking = new SubscriptionTracking($enable, $text, $html, $substitution_tag); } /** * Retrieve the subscription tracking settings from a TrackingSettings object * * @return SubscriptionTracking */ public function getSubscriptionTracking() { return $this->subscription_tracking; } /** * Set the Google analytics settings on a TrackingSettings object * * @param Ganalytics|bool $enable The Ganalytics object or an indication * if the setting is enabled * @param string|null $utm_source Name of the referrer source. (e.g. * Google, SomeDomain.com, or * Marketing Email) * @param string|null $utm_medium Name of the marketing medium. (e.g. * Email) * @param string|null $utm_term Used to identify any paid keywords * @param string|null $utm_content Used to differentiate your campaign from * advertisements * @param string|null $utm_campaign The name of the campaign * * @throws TypeException */ public function setGanalytics( $enable, $utm_source = null, $utm_medium = null, $utm_term = null, $utm_content = null, $utm_campaign = null ) { if ($enable instanceof Ganalytics) { $ganalytics = $enable; $this->ganalytics = $ganalytics; return; } $this->ganalytics = new Ganalytics( $enable, $utm_source, $utm_medium, $utm_term, $utm_content, $utm_campaign ); } /** * Retrieve the Google analytics settings from a TrackingSettings object * * @return Ganalytics */ public function getGanalytics() { return $this->ganalytics; } /** * Return an array representing a TrackingSettings object for the Twilio SendGrid API * * @return null|array */ #[\ReturnTypeWillChange] public function jsonSerialize() { return array_filter( [ 'click_tracking' => $this->getClickTracking(), 'open_tracking' => $this->getOpenTracking(), 'subscription_tracking' => $this->getSubscriptionTracking(), 'ganalytics' => $this->getGanalytics() ], function ($value) { return $value !== null; } ) ?: null; } }