PHP Class MC4WP_MailChimp_Merge_Field

Represents a Merge Field in MailChimp
Datei anzeigen Open project: dannyvankooten/mailchimp-for-wordpress Class Usage Examples

Public Properties

Property Type Description
$choices array
$default_value Default value for the field.
$field_type string
$name string
$public Is this field public? As in, should it show on forms?
$required Is this a required field for the list it belongs to?
$tag string

Public Methods

Method Description
__construct ( string $name, string $field_type, string $tag, boolean $required = false, array $choices = [] )
__get ( string $name ) : string
from_data ( object $data ) : MC4WP_MailChimp_Merge_Field Creates our local object from MailChimp API data.

Method Details

__construct() public method

public __construct ( string $name, string $field_type, string $tag, boolean $required = false, array $choices = [] )
$name string
$field_type string
$tag string
$required boolean
$choices array

__get() public method

public __get ( string $name ) : string
$name string
return string

from_data() public static method

Creates our local object from MailChimp API data.
public static from_data ( object $data ) : MC4WP_MailChimp_Merge_Field
$data object
return MC4WP_MailChimp_Merge_Field

Property Details

$choices public_oe property

public array $choices
return array

$default_value public_oe property

Default value for the field.
public $default_value

$field_type public_oe property

public string $field_type
return string

$name public_oe property

public string $name
return string

$public public_oe property

Is this field public? As in, should it show on forms?
public $public

$required public_oe property

Is this a required field for the list it belongs to?
public $required

$tag public_oe property

public string $tag
return string