dolibarr  16.0.5
Public Member Functions | Public Attributes | Private Member Functions | List of all members
PartnershipUtils Class Reference

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...
 

Detailed Description

Class with cron tasks of Partnership module.

Definition at line 38 of file partnershiputils.class.php.

Constructor & Destructor Documentation

◆ __construct()

PartnershipUtils::__construct (   $db)

Constructor.

Parameters
DoliDb$dbDatabase handler

Definition at line 52 of file partnershiputils.class.php.

References $db, and db.

Member Function Documentation

◆ checkDolibarrBacklink()

PartnershipUtils::checkDolibarrBacklink (   $website = null)
private

Action to check if Dolibarr backlink not found on partner website.

Parameters
$websiteWebsite Partner's website
Returns
int 0 if KO, 1 if OK

Definition at line 401 of file partnershiputils.class.php.

◆ doCancelStatusOfMemberPartnership()

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

Returns
int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)

Definition at line 65 of file partnershiputils.class.php.

◆ doWarningOfPartnershipIfDolibarrBacklinkNotfound()

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

Returns
int 0 if OK, <>0 if KO (this function is used also by cron so only 0 is OK)

Definition at line 220 of file partnershiputils.class.php.


The documentation for this class was generated from the following file: