PHP 클래스 MC4WP_MailChimp_Merge_Field

Represents a Merge Field in MailChimp
파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

공개 메소드들

메소드 설명
__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.

메소드 상세

__construct() 공개 메소드

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 __get ( string $name ) : string
$name string
리턴 string

from_data() 공개 정적인 메소드

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

프로퍼티 상세

$choices 공개적으로 프로퍼티

public array $choices
리턴 array

$default_value 공개적으로 프로퍼티

Default value for the field.
public $default_value

$field_type 공개적으로 프로퍼티

public string $field_type
리턴 string

$name 공개적으로 프로퍼티

public string $name
리턴 string

$public 공개적으로 프로퍼티

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

$required 공개적으로 프로퍼티

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

$tag 공개적으로 프로퍼티

public string $tag
리턴 string