\MySalesforceContactApi
This class adds / updates subscribers to Salesforce
Synopsis
class MySalesforceContactApi
extends Object
{
- // members
- protected static boolean $debug = false;
- protected static $my_singleton_connection = NULL;
- // methods
- public static bool add_email_subscriber()
- public static bool update_email_subscriber()
- public static bool is_email_registered()
- public static bool create_contact()
- public static bool update_contact()
- public static SObject|null retrieve_contact()
- public static array retrieve_contact_record_types()
- public static void assert_email()
- public static void set_debug()
- protected static void get_my_singleton_connection()
Hierarchy
Extends
- Object
Tasks
Line | Task |
---|---|
67+ | : allow adding by phone number |
Members
protected
- $debug — boolean
- $my_singleton_connection
Methods
protected
public
- add_email_subscriber()
- assert_email()
- create_contact() — todo: all nullify thingy assumes that all fields are correct (e.g. correct email format) can use email or phone as identifier
- is_email_registered()
- retrieve_contact() — Retrive a contact by email address or by phone number either the email (preferred) of phone needs to be set in the $fieldsArray
- retrieve_contact_record_types()
- set_debug()
- update_contact() — todo: all nullify thingy assumes that all fields are correct (e.g. correct email format) can use email or phone as identifier
- update_email_subscriber()