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 Forward Activity
 9:  *
10:  * @package     Components
11:  * @subpackage     CampaignTracking
12:  * @author         Constant Contact
13:  */
14: class ForwardActivity extends Component
15: {
16:     public $activity_type;
17:     public $campaign_id;
18:     public $contact_id;
19:     public $email_address;
20:     public $forward_date;
21: 
22:     /**
23:      * Factory method to create a ForwardActivity object from an array
24:      * @param array $props - array of properties to create object from
25:      * @return ClickActivity
26:      */
27:     public static function create(array $props)
28:     {
29:         $forward_activity = new ForwardActivity();
30:         $forward_activity->activity_type = parent::getValue($props, "activity_type");
31:         $forward_activity->campaign_id = parent::getValue($props, "campaign_id");
32:         $forward_activity->contact_id = parent::getValue($props, "contact_id");
33:         $forward_activity->email_address = parent::getValue($props, "email_address");
34:         $forward_activity->forward_date = parent::getValue($props, "forward_date");
35: 
36:         return $forward_activity;
37:     }
38: }
39: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0