EO_Booking_Form_Visitor
since 2.0.0
Pro
Hierarchical Visitor
The (hierarchical) visitor allows us to visit each element in a booking form.
Elements with children (EO_Booking_Form_Element_Parent) are passed to visit_enter(), to
process that element. Returning true in that method will continue the iteration to its child
elements. Other elements are passed to visit() for processing. An EO_Booking_Form_Element_Parent
is passed to visit_leave() when its children have been processed (or skipped).
A 'process' here is very generic and is defined by the concrete child classes.
Methods
public |
#
visit_enter( $element )
Called when processing an element with children
|
public |
#
visit( $element )
Called when processing a standard element (without children)
|
public |
#
visit_leave( $element )
Called when having completed an element with children.
This will be called even if we
|
Properties
Hooks
Changelog
Resources