PHP 클래스 MC4WP_Form_Element

부터: 3.0
파일 보기 프로젝트 열기: dannyvankooten/mailchimp-for-wordpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$ID string
$config array Can be used to set element-specific config settings. Accepts the following keys. - lists: Customized number of MailChimp list ID's to subscribe to. - email_type: The email type
$form MC4WP_Form
$is_submitted boolean

공개 메소드들

메소드 설명
__construct ( MC4WP_Form $form, string $ID, $config = [] )
generate_html ( array $config = null ) : string
get_response_html ( boolean $force_show = false ) : string Gets the form response string

보호된 메소드들

메소드 설명
get_css_classes ( ) : string Get a space separated list of CSS classes for this form
get_form_element_attributes ( ) : string Get all HTMl attributes for the form element
get_hidden_fields ( ) : string
get_html_after_fields ( ) : string Get HTML to be added _after_ the HTML of the form fields.
get_html_before_fields ( ) : string Get HTML to be added _before_ the HTML of the form fields.
get_message_html ( string $key ) : string Get HTML string for a message, including wrapper element.
get_response_position ( ) : string
get_visible_fields ( ) : string

메소드 상세

__construct() 공개 메소드

public __construct ( MC4WP_Form $form, string $ID, $config = [] )
$form MC4WP_Form
$ID string
$config array

generate_html() 공개 메소드

public generate_html ( array $config = null ) : string
$config array Use this to override the configuration for this form element
리턴 string

get_css_classes() 보호된 메소드

Get a space separated list of CSS classes for this form
protected get_css_classes ( ) : string
리턴 string

get_form_element_attributes() 보호된 메소드

Get all HTMl attributes for the form element
protected get_form_element_attributes ( ) : string
리턴 string

get_hidden_fields() 보호된 메소드

protected get_hidden_fields ( ) : string
리턴 string

get_html_after_fields() 보호된 메소드

Get HTML to be added _after_ the HTML of the form fields.
protected get_html_after_fields ( ) : string
리턴 string

get_html_before_fields() 보호된 메소드

Get HTML to be added _before_ the HTML of the form fields.
protected get_html_before_fields ( ) : string
리턴 string

get_message_html() 보호된 메소드

Get HTML string for a message, including wrapper element.
protected get_message_html ( string $key ) : string
$key string
리턴 string

get_response_html() 공개 메소드

Gets the form response string
public get_response_html ( boolean $force_show = false ) : string
$force_show boolean
리턴 string

get_response_position() 보호된 메소드

protected get_response_position ( ) : string
리턴 string

get_visible_fields() 보호된 메소드

protected get_visible_fields ( ) : string
리턴 string

프로퍼티 상세

$ID 공개적으로 프로퍼티

public string $ID
리턴 string

$config 공개적으로 프로퍼티

Can be used to set element-specific config settings. Accepts the following keys. - lists: Customized number of MailChimp list ID's to subscribe to. - email_type: The email type
public array $config
리턴 array

$form 공개적으로 프로퍼티

public MC4WP_Form $form
리턴 MC4WP_Form

$is_submitted 공개적으로 프로퍼티

public bool $is_submitted
리턴 boolean