EO_Booking_Form_Element_View
Pro
Abstract class for booking form element (front-end) view.
Methods
public |
#
__construct( $element )
Sets up the view instance and attaches the mode.
|
public |
#
get_class( )
Returns the CSS class of this element
Gets admin-set classes and adds the appropriate core class.
|
public |
#
get_name( $component )
Returns the field name for use with the name="" attribute Please note that $this->element->get_field_name() is where an element looks for its data in $_POST . As such, barring some exceptional circumstances, (EO_Booking_Form_Element_Antispam_View) this method should not be over-riddden.
|
Properties
public
|
$element
|
The EO_Booking_Form_Element instance attached to this model.
|
public
|
$prefix
|
Prefix used by the view.
|
public
|
$wrap
|
How the field should be wrapped %1$s - Classes for the form field (e.g. classes to indicate an error for this field) %2$s - The actual content of the element view %3$s - The element ID %4$s - Element style - internal use only (i.e. conditional logic visibility).
|
Hooks