1 | <?php |
||
12 | class EE_No_Layout extends EE_Div_Per_Section_Layout |
||
13 | { |
||
14 | |||
15 | |||
16 | /** |
||
17 | * This is a flag indicating whether to use '<br>' tags after each input in the layout |
||
18 | * strategy. |
||
19 | * |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $_use_break_tags = true; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * EE_No_Layout constructor. |
||
27 | * |
||
28 | * @param array $options Currently if this has a 'use_break_tags' key that is used to set the _use_break_tags |
||
29 | * property on the class. |
||
30 | */ |
||
31 | public function __construct($options = array()) |
||
38 | |||
39 | /** |
||
40 | * Add line break at beginning of form |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function layout_form_begin() |
||
48 | |||
49 | |||
50 | /** |
||
51 | * Lays out the row for the input, including label and errors |
||
52 | * |
||
53 | * @param EE_Form_Input_Base $input |
||
54 | * @return string |
||
55 | * @throws \EE_Error |
||
56 | */ |
||
57 | public function layout_input($input) |
||
87 | |||
88 | |||
89 | /** |
||
90 | * Lays out a row for the subsection |
||
91 | * |
||
92 | * @param EE_Form_Section_Proper $form_section |
||
93 | * @return string |
||
94 | */ |
||
95 | public function layout_subsection($form_section) |
||
100 | |||
101 | |||
102 | /** |
||
103 | * Add line break at end of form. |
||
104 | * |
||
105 | * @return string |
||
106 | */ |
||
107 | public function layout_form_end() |
||
111 | |||
112 | |||
113 | /** |
||
114 | * This returns a break tag or an empty string depending on the value of the `_use_break_tags` property. |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | protected function br() |
||
122 | } |