Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Library
      • Tracking
    • Exceptions
    • Services
    • Util
    • WebHooks

Classes

  • Ctct\Auth\CtctOAuth2
  • Ctct\Auth\SessionDataStore
  • Ctct\Components\Account\AccountInfo
  • Ctct\Components\Account\VerifiedEmailAddress
  • Ctct\Components\Activities\Activity
  • Ctct\Components\Activities\ActivityError
  • Ctct\Components\Activities\AddContacts
  • Ctct\Components\Activities\AddContactsImportData
  • Ctct\Components\Activities\ExportContacts
  • Ctct\Components\Component
  • Ctct\Components\Contacts\Address
  • Ctct\Components\Contacts\Contact
  • Ctct\Components\Contacts\ContactList
  • Ctct\Components\Contacts\CustomField
  • Ctct\Components\Contacts\EmailAddress
  • Ctct\Components\Contacts\Note
  • Ctct\Components\EmailMarketing\Campaign
  • Ctct\Components\EmailMarketing\ClickThroughDetails
  • Ctct\Components\EmailMarketing\MessageFooter
  • Ctct\Components\EmailMarketing\Schedule
  • Ctct\Components\EmailMarketing\TestSend
  • Ctct\Components\Library\File
  • Ctct\Components\Library\FileUploadStatus
  • Ctct\Components\Library\Folder
  • Ctct\Components\Library\Thumbnail
  • Ctct\Components\ResultSet
  • Ctct\Components\Tracking\BounceActivity
  • Ctct\Components\Tracking\ClickActivity
  • Ctct\Components\Tracking\ForwardActivity
  • Ctct\Components\Tracking\OpenActivity
  • Ctct\Components\Tracking\SendActivity
  • Ctct\Components\Tracking\TrackingActivity
  • Ctct\Components\Tracking\TrackingSummary
  • Ctct\Components\Tracking\UnsubscribeActivity
  • Ctct\ConstantContact
  • Ctct\Services\AccountService
  • Ctct\Services\ActivityService
  • Ctct\Services\BaseService
  • Ctct\Services\CampaignScheduleService
  • Ctct\Services\CampaignTrackingService
  • Ctct\Services\ContactService
  • Ctct\Services\ContactTrackingService
  • Ctct\Services\EmailMarketingService
  • Ctct\Services\LibraryService
  • Ctct\Services\ListService
  • Ctct\SplClassLoader
  • Ctct\Util\Config
  • Ctct\WebHooks\CTCTWebhookUtil

Interfaces

  • Ctct\Auth\CtctDataStore

Exceptions

  • Ctct\Exceptions\CtctException
  • Ctct\Exceptions\IllegalArgumentException
  • Ctct\Exceptions\OAuth2Exception
  • Overview
  • Namespace
  • Class
 1: <?php
 2: namespace Ctct\Components\Contacts;
 3: 
 4: use Ctct\Components\Component;
 5: 
 6: /**
 7:  * Represents a single Contact List
 8:  *
 9:  * @package        Components
10:  * @subpackage     Contacts
11:  * @author         Constant Contact
12:  */
13: class ContactList extends Component
14: {
15:     /**
16:      * Unique identifier of the contact list
17:      * @var string
18:      */
19:     public $id;
20: 
21:     /**
22:      * Name of the contact list
23:      * @var string
24:      */
25:     public $name;
26: 
27:     /**
28:      * Status of the contact list, must be one of "ACTIVE", "HIDDEN", "REMOVED"
29:      * @var string
30:      */
31:     public $status;
32: 
33:     /**
34:      * The number of contacts in the list
35:      * @var string
36:      */
37:     public $contact_count;
38: 
39:     /**
40:      * Date and time the list was created.
41:      * @var string
42:      */
43:     public $created_date;
44: 
45:     /**
46:      * Date and time the list was last modified.
47:      * @var string
48:      */
49:     public $modified_date;
50: 
51:     public function __construct($list_id = null)
52:     {
53:         if (!is_null($list_id)) {
54:             $this->id = $list_id;
55:         }
56: 
57:         return $this;
58:     }
59: 
60:     /**
61:      * Factory method to create a ContactList object from an array
62:      * @param array $props - Associative array of initial properties to set
63:      * @return ContactList
64:      */
65:     public static function create(array $props)
66:     {
67:         $contact_list = new ContactList();
68:         $contact_list->id = parent::getValue($props, "id");
69:         $contact_list->name = parent::getValue($props, "name");
70:         $contact_list->status = parent::getValue($props, "status");
71:         $contact_list->contact_count = parent::getValue($props, "contact_count");
72:         $contact_list->created_date = parent::getValue($props, "created_date");
73:         $contact_list->modified_date = parent::getValue($props, "modified_date");
74:         return $contact_list;
75:     }
76: 
77:     public function toJson()
78:     {
79:         return json_encode($this);
80:     }
81: }
82: 
API documentation generated by ApiGen