|
dolibarr
16.0.1
|
Class with cron tasks of Partnership module. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. More... | |
| doCancelStatusOfMemberPartnership () | |
| Action executed by scheduler to cancel status of partnership when subscription is expired + x days. More... | |
| doWarningOfPartnershipIfDolibarrBacklinkNotfound () | |
| Action executed by scheduler to check if Dolibarr backlink not found on partner website. More... | |
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. More... | |
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.
|
private |
Action to check if Dolibarr backlink not found on partner website.
| $website | Website Partner's website |
Definition at line 401 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, $resql, complete_substitutions_array(), db, dol_now(), dol_string_nospecial(), dol_syslog(), dol_time_plus_duree(), getCommonSubstitutionArray(), getDolGlobalString(), GETPOST(), and make_substitutions().
| PartnershipUtils::doWarningOfPartnershipIfDolibarrBacklinkNotfound | ( | ) |
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
Definition at line 220 of file partnershiputils.class.php.
References $error, $resql, checkDolibarrBacklink(), complete_substitutions_array(), db, dol_now(), dol_string_nospecial(), dol_syslog(), dol_time_plus_duree(), getCommonSubstitutionArray(), getDolGlobalString(), GETPOST(), and make_substitutions().