PHP Класс MC4WP_Form_Element

С версии: 3.0
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$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