dolibarr 21.0.0-alpha
|
Class with cron tasks of Partnership module. More...
Public Member Functions | |
__construct ($db) | |
Constructor. | |
doCancelStatusOfMemberPartnership () | |
Action executed by scheduler to cancel status of partnership when subscription is expired + x days. | |
doWarningOfPartnershipIfDolibarrBacklinkNotfound ($maxpercall=0) | |
Action executed by scheduler to check if Dolibarr backlink not found on partner website. | |
Public Attributes | |
$db | |
To store db handler. | |
$error | |
To return error code (or message) | |
$errors = array() | |
To return several error codes (or messages) | |
Private Member Functions | |
checkDolibarrBacklink ($website=null) | |
Action to check if Dolibarr backlink not found on partner website. | |
Class with cron tasks of Partnership module.
Definition at line 39 of file partnershiputils.class.php.
PartnershipUtils::__construct | ( | $db | ) |
|
private |
Action to check if Dolibarr backlink not found on partner website.
string | $website | Partner's website URL |
Definition at line 532 of file partnershiputils.class.php.
References $error, dol_syslog(), getDolGlobalString(), and getURLContent().
Referenced by doWarningOfPartnershipIfDolibarrBacklinkNotfound().
PartnershipUtils::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
Definition at line 77 of file partnershiputils.class.php.
References $error, $object, complete_substitutions_array(), dol_now(), dol_string_nospecial(), dol_syslog(), dol_time_plus_duree(), getCommonSubstitutionArray(), getDolGlobalInt(), getDolGlobalString(), GETPOST(), and make_substitutions().
PartnershipUtils::doWarningOfPartnershipIfDolibarrBacklinkNotfound | ( | $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
int | $maxpercall | Max per call |
Definition at line 291 of file partnershiputils.class.php.
References $error, $object, checkDolibarrBacklink(), complete_substitutions_array(), dol_now(), dol_string_nospecial(), dol_syslog(), getCommonSubstitutionArray(), getDolGlobalInt(), getDolGlobalString(), GETPOST(), and make_substitutions().