Overview

Namespaces

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

Classes

  • BounceActivity
  • ClickActivity
  • ForwardActivity
  • OpenActivity
  • OptOutActivity
  • SendActivity
  • TrackingActivity
  • TrackingSummary
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: 
 3: namespace Ctct\Components\Tracking;
 4: 
 5: use Ctct\Components\Component;
 6: 
 7: /**
 8:  * Represents a Click Activity
 9:  *
10:  * @package     Components
11:  * @subpackage     CampaignTracking
12:  * @author         Constant Contact
13:  */
14: class ClickActivity extends Component
15: {
16:     public $activity_type;
17:     public $campaign_id;
18:     public $contact_id;
19:     public $email_address;
20:     public $link_id;
21:     public $click_date;
22: 
23:     /**
24:      * Factory method to create a ClickActivity object from an array
25:      * @param array $props - array of properties to create object from
26:      * @return ClickActivity
27:      */
28:     public static function create(array $props)
29:     {
30:         $click_activity = new ClickActivity();
31:         $click_activity->activity_type = parent::getValue($props, "activity_type");
32:         $click_activity->campaign_id= parent::getValue($props, "campaign_id");
33:         $click_activity->contact_id = parent::getValue($props, "contact_id");
34:         $click_activity->email_address = parent::getValue($props, "email_address");
35:         $click_activity->link_id = parent::getValue($props, "link_id");
36:         $click_activity->click_date = parent::getValue($props, "click_date");
37:         return $click_activity;
38:     }
39: }
40: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0