1 | <?php |
||
13 | class EE_No_Layout extends EE_Div_Per_Section_Layout { |
||
14 | |||
15 | |||
16 | /** |
||
17 | * This is a flag indicating whether to use '<br>' tags after each input in the layout |
||
18 | * strategy. |
||
19 | * @var bool |
||
20 | */ |
||
21 | protected $_use_break_tags = true; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * EE_No_Layout constructor. |
||
26 | * |
||
27 | * @param array $options Currently if this has a 'use_break_tags' key that is used to set the _use_break_tags |
||
28 | * property on the class. |
||
29 | */ |
||
30 | public function __construct($options = array()) |
||
37 | |||
38 | /** |
||
39 | * opening div tag for a form |
||
40 | * @return string |
||
41 | */ |
||
42 | public function layout_form_begin() { |
||
45 | |||
46 | |||
47 | |||
48 | /** |
||
49 | * Lays out the row for the input, including label and errors |
||
50 | * |
||
51 | * @param EE_Form_Input_Base $input |
||
52 | * @return string |
||
53 | * @throws \EE_Error |
||
54 | */ |
||
55 | public function layout_input( $input ) { |
||
84 | |||
85 | |||
86 | |||
87 | /** |
||
88 | * Lays out a row for the subsection |
||
89 | * @param EE_Form_Section_Proper $form_section |
||
90 | * @return string |
||
91 | */ |
||
92 | public function layout_subsection( $form_section ){ |
||
96 | |||
97 | |||
98 | /** |
||
99 | * closing div tag for a form |
||
100 | * @return string |
||
101 | */ |
||
102 | public function layout_form_end(){ |
||
105 | |||
106 | |||
107 | /** |
||
108 | * This returns a break tag or an empty string depending on the value of the `_use_break_tags` property. |
||
109 | * @return string |
||
110 | */ |
||
111 | protected function br() |
||
115 | } |