Свойство | Тип | Описание | |
---|---|---|---|
$error | Is the input invalid? | ||
$form | parent form | ||
$shortcode_name | |||
$value | default or POSTed value |
Метод | Описание | |
---|---|---|
__construct ( array $attributes, null | string $content = null, Grunion_Contact_Form $form = null ) | ||
add_error ( string $message ) | This field's input is invalid. Flag as invalid and add an error to the parent form | |
is_error ( ) : boolean | Is the field input invalid? | |
render ( ) : string | Outputs the HTML for this form field | |
validate ( ) | Validates the form input |
public __construct ( array $attributes, null | string $content = null, Grunion_Contact_Form $form = null ) | ||
$attributes | array | An associative array of shortcode attributes. @see shortcode_atts() |
$content | null | string | Null for selfclosing shortcodes. The inner content otherwise. |
$form | Grunion_Contact_Form | The parent form |