dolibarr 18.0.6
|
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 38 of file partnershiputils.class.php.
PartnershipUtils::__construct | ( | $db | ) |
Constructor.
DoliDb | $db | Database handler |
Definition at line 52 of file partnershiputils.class.php.
References $db.
|
private |
Action to check if Dolibarr backlink not found on partner website.
string | $website | Partner's website URL |
Definition at line 493 of file partnershiputils.class.php.
References $error, dol_syslog(), 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 65 of file partnershiputils.class.php.
References $error, 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 264 of file partnershiputils.class.php.
References $error, checkDolibarrBacklink(), complete_substitutions_array(), dol_now(), dol_string_nospecial(), dol_syslog(), getCommonSubstitutionArray(), getDolGlobalInt(), getDolGlobalString(), GETPOST(), and make_substitutions().