Changeset 4569
- Timestamp:
- 07/10/07 20:52:54 (6 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfThreeColumnLayoutHelperPlugin/lib/helper/ThreeColumnLayoutHelper.php
r3947 r4569 64 64 { 65 65 set_layout_slot($column, $num, 'disabled'); 66 } 67 68 /** 69 * Clear Layout Slot 70 * 71 * Clear a column slot number completely 72 * 73 * @param mixed $column Column name to disable slot for(left/right) 74 * @param mixed $num Slow number to disable for column 75 * @access public 76 * @return void 77 */ 78 function clear_layout_slot($column, $num) 79 { 80 set_layout_slot($column, $num, null); 66 81 } 67 82 … … 114 129 115 130 /** 131 * Clear Layout Column 132 * 133 * Clear a layout column completely 134 * 135 * @param mixed $column 136 * @access public 137 * @return void 138 */ 139 function clear_layout_column($column) 140 { 141 clear_layout_column_slots($column); 142 } 143 144 /** 116 145 * Disable Layout Columns 117 146 * … … 128 157 129 158 /** 159 * Clear Layout Columns 160 * 161 * Completely clear the layout columns/slots 162 * 163 * @access public 164 * @return void 165 */ 166 function clear_layout_columns() 167 { 168 clear_layout_column('left'); 169 clear_layout_column('right'); 170 } 171 172 /** 130 173 * Disable Layout Column Slots 131 174 * … … 142 185 { 143 186 disable_layout_slot($column, $i); 187 } 188 } 189 190 /** 191 * Clear Layout Column Slots 192 * 193 * Clear the slots for the specified column 194 * 195 * @param mixed $column 196 * @param int $numSlots 197 * @access public 198 * @return void 199 */ 200 function clear_layout_column_slots($column, $numSlots = 5) 201 { 202 for($i = 1; $i <= $numSlots; $i++) 203 { 204 clear_layout_slot($column, $i); 144 205 } 145 206 }