UNA
Loading...
Searching...
No Matches
BxMailchimpModule Class Reference
Inheritance diagram for BxMailchimpModule:
BxDolModule BxDol

Public Member Functions

 __construct (&$aModule)
 
 serviceUpdateMergeFields ()
 
 serviceGetLists ($bAddEmptyValue=true)
 
 serviceRemoveAccount ($mixed)
 
 serviceUpdateAccount ($sEmail)
 
 actionAccountRemove ($sEmail)
 
 actionAccountUpdate ($sEmail)
 
 actionBulkAdd ($iLimit=BX_MAILCHIMP_LIMIT)
 
 actionStats ()
 
- Public Member Functions inherited from BxDolModule
 __construct ($aModule)
 
 isEnabled ()
 
 getName ()
 
 isLogged ()
 
 getUserId ()
 
 getUserPassword ()
 
 serviceIsSafeService ($s)
 
 serviceGetSafeServices ()
 
 serviceIsPublicService ($s)
 
 serviceGetPublicServices ()
 

Protected Member Functions

 _accountAction ($sEmail, $sMethod)
 
 _prepareUser ($oAccount)
 
 _checkForErrors ($s, $sErrorCurl)
 
 _request ($sURI, $sMethod, $aData, &$sError)
 

Protected Attributes

 $sHostnameAPI = 'https://{dc}.api.mailchimp.com/3.0'
 
 $aFields
 

Additional Inherited Members

- Static Public Member Functions inherited from BxDolModule
static getInstance ($sName)
 
static getTitle ($sUri)
 
static getTitleKey ($sUri)
 
- Public Attributes inherited from BxDolModule
 $_aModule
 
 $_oDb
 
 $_oTemplate
 
 $_oConfig
 

Member Function Documentation

◆ _checkForErrors()

BxMailchimpModule::_checkForErrors ( $s,
$sErrorCurl )
protected
Returns
json error object on error or empty string on success

◆ _request()

BxMailchimpModule::_request ( $sURI,
$sMethod,
$aData,
& $sError )
protected

Perform JSON request to the API endpoint and get JSON response

Returns
false on error

◆ actionAccountRemove()

BxMailchimpModule::actionAccountRemove ( $sEmail)

remove user from mailchimp by email or account id

◆ actionAccountUpdate()

BxMailchimpModule::actionAccountUpdate ( $sEmail)

update user by email or account id

◆ actionBulkAdd()

BxMailchimpModule::actionBulkAdd ( $iLimit = BX_MAILCHIMP_LIMIT)

Add members in bulk from local database to mailchimp

◆ actionStats()

BxMailchimpModule::actionStats ( )

Test query to return some stats

◆ serviceRemoveAccount()

BxMailchimpModule::serviceRemoveAccount ( $mixed)

remove user from mailchimp by email or account id

◆ serviceUpdateAccount()

BxMailchimpModule::serviceUpdateAccount ( $sEmail)

update user in mailchimp by email or account id

Member Data Documentation

◆ $aFields

BxMailchimpModule::$aFields
protected
Initial value:
= array(
'ACCOUNT_ID' => 'number',
'PROFILE_ID' => 'number',
'MEMBERSHIP' => 'text',
'STATUS' => 'text',
'TYPE' => 'text',
'PROFILES' => 'text',
'PROFILE_URL' => 'url',
'IMAGE_URL' => 'imageurl',
'PHONE' => 'phone',
)

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