/
var
/
www
/
doncode.com.ua
/
www
/
mailer
/
vendor
/
sendgrid
/
sendgrid
/
lib
/
mail
/
/var/www/doncode.com.ua/www/mailer/vendor/sendgrid/sendgrid/lib/mail
mkdir
upload
Name
Size
Mode
Actions
Asm.php
4698
0644
edit
dl
rm
Attachment.php
5917
0644
edit
dl
rm
BatchId.php
1603
0644
edit
dl
rm
Bcc.php
281
0644
edit
dl
rm
BccSettings.php
2544
0644
edit
dl
rm
BypassBounceManagement.php
1994
0644
edit
dl
rm
BypassListManagement.php
1939
0644
edit
dl
rm
BypassSpamManagement.php
1982
0644
edit
dl
rm
BypassUnsubscribeManagement.php
2122
0644
edit
dl
rm
Category.php
1747
0644
edit
dl
rm
Cc.php
278
0644
edit
dl
rm
ClickTracking.php
2715
0644
edit
dl
rm
Content.php
2924
0644
edit
dl
rm
CustomArg.php
2677
0644
edit
dl
rm
EmailAddress.php
5028
0644
edit
dl
rm
Footer.php
3056
0644
edit
dl
rm
From.php
284
0644
edit
dl
rm
Ganalytics.php
6456
0644
edit
dl
rm
GroupId.php
1477
0644
edit
dl
rm
GroupsToDisplay.php
3236
0644
edit
dl
rm
Header.php
2363
0644
edit
dl
rm
HtmlContent.php
531
0644
edit
dl
rm
IpPoolName.php
2009
0644
edit
dl
rm
Mail.php
69793
0644
edit
dl
rm
MailSettings.php
13751
0644
edit
dl
rm
MimeType.php
319
0644
edit
dl
rm
OpenTracking.php
3650
0644
edit
dl
rm
Personalization.php
8408
0644
edit
dl
rm
PlainTextContent.php
547
0644
edit
dl
rm
ReplyTo.php
293
0644
edit
dl
rm
SandBoxMode.php
1632
0644
edit
dl
rm
Section.php
2256
0644
edit
dl
rm
SendAt.php
3605
0644
edit
dl
rm
SpamCheck.php
4319
0644
edit
dl
rm
Subject.php
1399
0644
edit
dl
rm
SubscriptionTracking.php
6783
0644
edit
dl
rm
Substitution.php
2993
0644
edit
dl
rm
TemplateId.php
2342
0644
edit
dl
rm
To.php
278
0644
edit
dl
rm
TrackingSettings.php
9260
0644
edit
dl
rm
TypeException.php
77
0644
edit
dl
rm
Edit:
/var/www/doncode.com.ua/www/mailer/vendor/sendgrid/sendgrid/lib/mail/Ganalytics.php
(6456B)
<?php /** * This helper builds the Ganalytics object for a /mail/send API call */ namespace SendGrid\Mail; use SendGrid\Helper\Assert; /** * This class is used to construct a Ganalytics object for the /mail/send API call * * @package SendGrid\Mail */ class Ganalytics implements \JsonSerializable { /** @var $enable bool Indicates if this setting is enabled */ private $enable; /** @var $utm_source string Name of the referrer source. (e.g. Google, SomeDomain.com, or Marketing Email) */ private $utm_source; /** @var $utm_medium string Name of the marketing medium. (e.g. Email) */ private $utm_medium; /** @var $utm_term string Used to identify any paid keywords */ private $utm_term; /** @var $utm_content string Used to differentiate your campaign from advertisements */ private $utm_content; /** @var $utm_campaign string The name of the campaign */ private $utm_campaign; /** * Optional constructor * * @param bool|null $enable Indicates if this 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 \SendGrid\Mail\TypeException */ public function __construct( $enable = null, $utm_source = null, $utm_medium = null, $utm_term = null, $utm_content = null, $utm_campaign = null ) { if (isset($enable)) { $this->setEnable($enable); } if (isset($utm_source)) { $this->setCampaignSource($utm_source); } if (isset($utm_medium)) { $this->setCampaignMedium($utm_medium); } if (isset($utm_term)) { $this->setCampaignTerm($utm_term); } if (isset($utm_content)) { $this->setCampaignContent($utm_content); } if (isset($utm_campaign)) { $this->setCampaignName($utm_campaign); } } /** * Update the enable setting on a Ganalytics object * * @param bool $enable Indicates if this setting is enabled * * @throws \SendGrid\Mail\TypeException */ public function setEnable($enable) { Assert::boolean($enable, 'enable'); $this->enable = $enable; } /** * Retrieve the enable setting on a Ganalytics object * * @return bool */ public function getEnable() { return $this->enable; } /** * Add the campaign source to a Ganalytics object * * @param string $utm_source Name of the referrer source. (e.g. * Google, SomeDomain.com, or Marketing Email) * * @throws \SendGrid\Mail\TypeException */ public function setCampaignSource($utm_source) { Assert::string($utm_source, 'utm_source'); $this->utm_source = $utm_source; } /** * Return the campaign source from a Ganalytics object * * @return string */ public function getCampaignSource() { return $this->utm_source; } /** * Add the campaign medium to a Ganalytics object * * @param string $utm_medium Name of the marketing medium. (e.g. Email) * * @throws \SendGrid\Mail\TypeException */ public function setCampaignMedium($utm_medium) { Assert::string($utm_medium, 'utm_medium'); $this->utm_medium = $utm_medium; } /** * Return the campaign medium from a Ganalytics object * * @return string */ public function getCampaignMedium() { return $this->utm_medium; } /** * Add the campaign term to a Ganalytics object * * @param string $utm_term Used to identify any paid keywords * * @throws \SendGrid\Mail\TypeException */ public function setCampaignTerm($utm_term) { Assert::string($utm_term, 'utm_term'); $this->utm_term = $utm_term; } /** * Return the campaign term from a Ganalytics object * * @return string */ public function getCampaignTerm() { return $this->utm_term; } /** * Add the campaign content to a Ganalytics object * * @param string $utm_content Used to differentiate your campaign from * advertisements * * @throws \SendGrid\Mail\TypeException */ public function setCampaignContent($utm_content) { Assert::string($utm_content, 'utm_content'); $this->utm_content = $utm_content; } /** * Return the campaign content from a Ganalytics object * * @return string */ public function getCampaignContent() { return $this->utm_content; } /** * Add the campaign name to a Ganalytics object * * @param string $utm_campaign The name of the campaign * * @throws \SendGrid\Mail\TypeException */ public function setCampaignName($utm_campaign) { Assert::string($utm_campaign, 'utm_campaign'); $this->utm_campaign = $utm_campaign; } /** * Return the campaign name from a Ganalytics object * * @return string */ public function getCampaignName() { return $this->utm_campaign; } /** * Return an array representing a Ganalytics object for the Twilio SendGrid API * * @return null|array */ #[\ReturnTypeWillChange] public function jsonSerialize() { return array_filter( [ 'enable' => $this->getEnable(), 'utm_source' => $this->getCampaignSource(), 'utm_medium' => $this->getCampaignMedium(), 'utm_term' => $this->getCampaignTerm(), 'utm_content' => $this->getCampaignContent(), 'utm_campaign' => $this->getCampaignName() ], function ($value) { return $value !== null; } ) ?: null; } }
Save
cmd:
run