PartnershipUtils
class PartnershipUtils (View source)
Class with cron tasks of Partnership module
Properties
| DoliDB | $db | ||
| string | $error | ||
| string[] | $errors | ||
| string | $output |
Methods
Constructor
Action executed by scheduler to cancel status of partnership when subscription is expired + x days. (Max number of action batch per call = $conf->global->PARTNERSHIP_MAX_EXPIRATION_CANCEL_PER_CALL)
Action executed by scheduler to check if Dolibarr backlink not found on partner website. (Max number of action batch per call = $conf->global->PARTNERSHIP_MAX_WARNING_BACKLINK_PER_CALL)
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
int
doCancelStatusOfMemberPartnership()
Action executed by scheduler to cancel status of partnership when subscription is expired + x days. (Max number of action batch per call = $conf->global->PARTNERSHIP_MAX_EXPIRATION_CANCEL_PER_CALL)
CAN BE A CRON TASK
int
doWarningOfPartnershipIfDolibarrBacklinkNotfound(int $maxpercall = 0)
Action executed by scheduler to check if Dolibarr backlink not found on partner website. (Max number of action batch per call = $conf->global->PARTNERSHIP_MAX_WARNING_BACKLINK_PER_CALL)
CAN BE A CRON TASK