Overview

Namespaces

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

Classes

  • Address
  • Contact
  • ContactList
  • CustomField
  • EmailAddress
  • Note
  • Overview
  • Namespace
  • Class
  • Tree
 1: <?php
 2: namespace Ctct\Components\Contacts;
 3:  
 4: use Ctct\Components\Component;
 5: 
 6: /**
 7:  * Represents a single Custom Field for a Contact
 8:  *
 9:  * @package     Components
10:  * @subpackage     Contacts
11:  * @author         Constant Contact
12:  */
13: class CustomField extends Component
14: {
15:     
16:     /**
17:      * Name of the custom field
18:      * @var string
19:      */
20:     public $name;
21:     
22:     /**
23:      * Value of the custom field
24:      * @var string
25:      */
26:     public $value;
27: 
28:     /**
29:      * Factory method to create a CustomField object from an array
30:      * @param array $props - Associative array of initial properties to set
31:      * @return CustomField
32:      */
33:     public static function create(array $props)
34:     {
35:         $custom_field = new CustomField();
36:         $custom_field->name = parent::getValue($props, "name");
37:         $custom_field->value = parent::getValue($props, "value");
38:         return $custom_field;
39:     }
40: }
41: 
Appconnect PHP SDK API documentation generated by ApiGen 2.8.0