Recurring component development sent automatically send email feature..

This commit is contained in:
Cüneyt Şentürk
2023-03-22 14:18:12 +03:00
parent 31c5891025
commit 96f2b4de9d
5 changed files with 91 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class Recurring extends Component
public $limitCount = '';
public $limitDateValue = '';
public $sendEmailShow;
public $sendEmail;
/**
* Create a new component instance.
*
@ -41,6 +44,9 @@ class Recurring extends Component
$startedValue = '',
$limitCount = '',
$limitDateValue = '',
$sendEmailShow = true,
$sendEmail = false
) {
$this->type = $this->getType($type);
$this->frequency = $this->getFrequency($frequency);
@ -55,6 +61,9 @@ class Recurring extends Component
$this->startedValue = $this->getStartedValue($startedValue);
$this->limitCount = $this->getLimitCount($limitCount);
$this->limitDateValue = $this->getLimitDateValue($limitDateValue);
$this->sendEmailShow = $this->getSendEmailShow($sendEmailShow);
$this->sendEmail = $this->getSendEmail($sendEmail);
}
/**
@ -171,4 +180,22 @@ class Recurring extends Component
return Date::now()->toDateString();
}
protected function getSendEmailShow($sendEmailShow)
{
if (! empty($sendEmailShow)) {
return $sendEmailShow;
}
return false;
}
protected function getSendEmail($sendEmail)
{
if (! empty($sendEmail)) {
return $sendEmail;
}
return false;
}
}