Ctct\Components\Contacts\Contact
Represents a single Contact in Constant Contact
- Author: Constant Contact
Synopsis
class Contact
extends Component
{
- // members
- public $id;
- public $status;
- public $first_name;
- public $middle_name;
- public $last_name;
- public $confirmed;
- public $source;
- public array $email_addresses = ;
- public $prefix_name;
- public $job_title;
- public array $addresses = ;
- public array $notes = ;
- public $company_name;
- public $home_phone;
- public $work_phone;
- public $cell_phone;
- public $fax;
- public array $custom_fields = ;
- public array $lists = ;
- public $source_details;
- // methods
- public static Contact create()
- public void addList()
- public void addEmail()
- public void addCustomField()
- public void addAddress()
- public void toJson()
- // Inherited methods from Component
- protected static mixed getValue()
Hierarchy
Extends
Members
public
- $addresses
—
array
Array of addresses associated with this contact - $cell_phone
—
string
Contact's cell phone number - $company_name
—
string
Company name this contact works for - $confirmed
—
boolean
Whether or not the contact is confirmed - $custom_fields
—
array
Array of custom fields associated with this contact - $email_addresses
—
array
Array of email addresses associated with this contact - $fax
—
string
Contact's fax number - $first_name
—
string
First name of the contact - $home_phone
—
string
Contact's home phone number - $id
—
string
Unique identifier for the contact - $job_title
—
string
The job title of the contact - $last_name
—
string
Last name of the contact - $lists
—
array
Array of contact lists this contact belongs to - $middle_name
—
string
Middle name of the contact - $notes
—
array
Array of notes associated with this contact - $prefix_name
—
string
The prefix name of the contact - $source
—
string
Contact source information - $source_details
—
string
Contact source details - $status
—
string
Status of the contact, must be one of "ACTIVE", "UNCONFIRMED", "OPTOUT", "REMOVED", "NON_SUBSCRIBER", "VISITOR" - $work_phone
—
string
Contact's work phone number
Methods
public
- addAddress() — Add an address
- addCustomField() — Add a custom field to the contact object
- addEmail() — Add an EmailAddress
- addList() — Add a ContactList
- create() — Factory method to create a Contact object from an array
- toJson()
Inherited from Ctct\Components\Component
protected
- getValue() — Get the requested value from an array, or return the default