Add property mail_exclusion

Unused for the moment
This commit is contained in:
daraelmin
2021-03-13 19:11:21 +01:00
committed by GitHub
parent 8f73334a79
commit 5f0249894d

View File

@@ -103,6 +103,9 @@ class AdherentType extends CommonObject
/** @var string Email sent after resiliation */
public $mail_resiliate = '';
/** @var string Email sent after exclusion */
public $mail_exclusion = '';
/** @var array Array of members */
public $members = array();
@@ -817,4 +820,19 @@ class AdherentType extends CommonObject
return '';
}
/**
* getMailOnExclusion
*
* @return string Return mail model content of type or empty
*/
public function getMailOnExclusion()
{
// NOTE mail_exclusion not defined so never used
if (!empty($this->mail_exclusion) && trim(dol_htmlentitiesbr_decode($this->mail_exclusion))) { // Property not yet defined
return $this->mail_exclusion;
}
return '';
}
}