コード例 #1
0
ファイル: Lead.php プロジェクト: dongilbert/mautic
 /**
  * @param DoNotContact $doNotContact
  */
 public function removeDoNotContactEntry(DoNotContact $doNotContact)
 {
     $this->changes['dnc_channel_status'][$doNotContact->getChannel()] = ['reason' => DoNotContact::IS_CONTACTABLE, 'old_reason' => $doNotContact->getReason(), 'comments' => $doNotContact->getComments()];
     // @deprecated to be removed in 2.0
     $this->changes['dnc_status'] = ['removed', $doNotContact->getComments()];
     $this->doNotContact->removeElement($doNotContact);
 }
コード例 #2
0
ファイル: Lead.php プロジェクト: HomeRefill/mautic
 /**
  * @param DoNotContact $doNotContact
  *
  * @return $this
  */
 public function addDoNotContactEntry(DoNotContact $doNotContact)
 {
     $this->changes['dnc_status'] = array($doNotContact->getChannel(), $doNotContact->getComments());
     $this->doNotContact[] = $doNotContact;
     return $this;
 }