コード例 #1
0
ファイル: MailgunMessage.php プロジェクト: newga/newga
 public function __construct(MailgunApi $api)
 {
     $this->_api = $api;
     $this->_from = $api->getFrom();
     $this->_tags = $api->getTags();
     $this->_campaignId = $api->getCampaignId();
     $this->_enableDkim = $api->getIsDkimEnabled();
     $this->_enableTestMode = $api->getIsTestModeEnabled();
     $this->_enableTracking = $api->getIsTrackingEnabled();
     $this->_clicksTrackingMode = $api->getClicksTrackingMode();
     $this->_enableOpensTracking = $api->getIsOpensTrackingEnabled();
 }
コード例 #2
0
 public function __construct(MailgunApi $api)
 {
     if (self::$_legacyAttachMode === null) {
         self::$_legacyAttachMode = !class_exists('CURLFile', false);
     }
     $this->_api = $api;
     $this->_from = $api->getFrom();
     $this->_tags = $api->getTags();
     $this->_campaignId = $api->getCampaignId();
     $this->_enableDkim = $api->getIsDkimEnabled();
     $this->_enableTestMode = $api->getIsTestModeEnabled();
     $this->_enableTracking = $api->getIsTrackingEnabled();
     $this->_clicksTrackingMode = $api->getClicksTrackingMode();
     $this->_enableOpensTracking = $api->getIsOpensTrackingEnabled();
 }