Overview

Namespaces

  • Ctct
    • Auth
    • Components
      • Account
      • Activities
      • Contacts
      • EmailMarketing
      • Tracking
    • Exceptions
    • Services
  • PHP

Classes

  • Activity
  • ActivityError
  • AddContacts
  • AddContactsImportData
  • ExportContacts
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Ctct\Components\Activities;
 3: 
 4: use Ctct\Components\Component;
 5:  
 6: /**
 7:  * Represents an Export Contacts Activity in Constant Contact
 8:  *
 9:  * @package     Components
10:  * @subpackage     Activities
11:  * @author         Constant Contact
12:  */
13: class ExportContacts extends Component
14: {
15:     public $file_type = "CSV";
16:     public $sort_by = "EMAIL_ADDRESS";
17:     public $export_date_added = true;
18:     public $export_added_by = true;
19:     public $lists = array();
20:     public $column_names = array("Email Address", "First Name", "Last Name");
21: 
22:     /**
23:      * Constructor
24:      * @param array $lists - array of list id's to export from
25:      * @return ExportContacts
26:      */
27:     public function __construct(Array $lists = null)
28:     {
29:         if (!$lists == null) {
30:             $this->lists = $lists;
31:         }
32:     }
33: 
34:     /**
35:      * Create json used for a POST/PUT request, also handles removing attributes that will cause errors if sent 
36:      * @return string 
37:      */
38:     public function toJson()
39:     {
40:         return json_encode($this);
41:     }
42: }
43: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0