@@ -180,24 +180,24 @@ discard block |
||
180 | 180 | } |
181 | 181 | |
182 | 182 | /** |
183 | - * Removes the given section(s) by section ID. |
|
184 | - * |
|
185 | - * This accesses the property storing the added section arrays and removes the specified ones. |
|
186 | - * |
|
187 | - * <h4>Example</h4> |
|
188 | - * <code>$this->removeSettingSections( 'text_fields', 'selectors', 'another_section', 'yet_another_section' ); |
|
189 | - * </code> |
|
190 | - * |
|
191 | - * @since 2.0.0 |
|
192 | - * @since 3.0.0 Changed the scope to public from protected. |
|
193 | - * @since 3.5.3 Removed the parameter declarations as they are caught with the func_get_args(). |
|
194 | - * @access public |
|
195 | - * @remark Accepts variadic parameters; the number of accepted parameters are not limited to three. |
|
196 | - * @param string $sSectionID1 the section ID to remove. |
|
197 | - * @param string $sSectionID2 (optional) another section ID to remove. |
|
198 | - * @param string $_and_more (optional) add more section IDs to the next parameters as many as necessary. |
|
199 | - * @return void |
|
200 | - */ |
|
183 | + * Removes the given section(s) by section ID. |
|
184 | + * |
|
185 | + * This accesses the property storing the added section arrays and removes the specified ones. |
|
186 | + * |
|
187 | + * <h4>Example</h4> |
|
188 | + * <code>$this->removeSettingSections( 'text_fields', 'selectors', 'another_section', 'yet_another_section' ); |
|
189 | + * </code> |
|
190 | + * |
|
191 | + * @since 2.0.0 |
|
192 | + * @since 3.0.0 Changed the scope to public from protected. |
|
193 | + * @since 3.5.3 Removed the parameter declarations as they are caught with the func_get_args(). |
|
194 | + * @access public |
|
195 | + * @remark Accepts variadic parameters; the number of accepted parameters are not limited to three. |
|
196 | + * @param string $sSectionID1 the section ID to remove. |
|
197 | + * @param string $sSectionID2 (optional) another section ID to remove. |
|
198 | + * @param string $_and_more (optional) add more section IDs to the next parameters as many as necessary. |
|
199 | + * @return void |
|
200 | + */ |
|
201 | 201 | public function removeSettingSections( /* $sSectionID1=null, $sSectionID2=null, $_and_more=null */ ) { |
202 | 202 | foreach( func_get_args() as $_sSectionID ) { |
203 | 203 | $this->oForm->removeSection( $_sSectionID ); |
@@ -262,38 +262,38 @@ discard block |
||
262 | 262 | } |
263 | 263 | } |
264 | 264 | /** |
265 | - * Adds the given field array items into the field array property. |
|
266 | - * |
|
267 | - * Identical to the `addSettingFields()` method except that this method does not accept enumerated parameters. |
|
268 | - * |
|
269 | - * @since 2.1.2 |
|
270 | - * @since 3.0.0 Changed the scope to public from protected. |
|
271 | - * @access public |
|
272 | - * @param array|string $asField the field array or the target section ID. If the target section ID is set, the section_id key can be omitted from the next passing field array. |
|
273 | - * @return void |
|
274 | - */ |
|
265 | + * Adds the given field array items into the field array property. |
|
266 | + * |
|
267 | + * Identical to the `addSettingFields()` method except that this method does not accept enumerated parameters. |
|
268 | + * |
|
269 | + * @since 2.1.2 |
|
270 | + * @since 3.0.0 Changed the scope to public from protected. |
|
271 | + * @access public |
|
272 | + * @param array|string $asField the field array or the target section ID. If the target section ID is set, the section_id key can be omitted from the next passing field array. |
|
273 | + * @return void |
|
274 | + */ |
|
275 | 275 | public function addSettingField( $asField ) { |
276 | 276 | $this->oForm->addField( $asField ); |
277 | 277 | } |
278 | 278 | |
279 | 279 | /** |
280 | - * Removes the given field(s) by field ID. |
|
281 | - * |
|
282 | - * This accesses the property storing the added field arrays and removes the specified ones. |
|
283 | - * |
|
284 | - * <h4>Example</h4> |
|
285 | - * <code>$this->removeSettingFields( 'fieldID_A', 'fieldID_B', 'fieldID_C', 'fieldID_D' ); |
|
286 | - * </code> |
|
287 | - * |
|
288 | - * @since 2.0.0 |
|
289 | - * @since 3.0.0 Changed the scope to public from protected. |
|
290 | - * @access public |
|
291 | - * @remark Accepts variadic parameters; the number of accepted parameters are not limited to three. |
|
292 | - * @param string $sFieldID1 the field ID to remove. |
|
293 | - * @param string $sFieldID2 (optional) another field ID to remove. |
|
294 | - * @param string $_and_more (optional) add more field IDs to the next parameters as many as necessary. |
|
295 | - * @return void |
|
296 | - */ |
|
280 | + * Removes the given field(s) by field ID. |
|
281 | + * |
|
282 | + * This accesses the property storing the added field arrays and removes the specified ones. |
|
283 | + * |
|
284 | + * <h4>Example</h4> |
|
285 | + * <code>$this->removeSettingFields( 'fieldID_A', 'fieldID_B', 'fieldID_C', 'fieldID_D' ); |
|
286 | + * </code> |
|
287 | + * |
|
288 | + * @since 2.0.0 |
|
289 | + * @since 3.0.0 Changed the scope to public from protected. |
|
290 | + * @access public |
|
291 | + * @remark Accepts variadic parameters; the number of accepted parameters are not limited to three. |
|
292 | + * @param string $sFieldID1 the field ID to remove. |
|
293 | + * @param string $sFieldID2 (optional) another field ID to remove. |
|
294 | + * @param string $_and_more (optional) add more field IDs to the next parameters as many as necessary. |
|
295 | + * @return void |
|
296 | + */ |
|
297 | 297 | public function removeSettingFields( $sFieldID1, $sFieldID2=null, $_and_more=null ) { |
298 | 298 | foreach( func_get_args() as $_sFieldID ) { |
299 | 299 | $this->oForm->removeField( $_sFieldID ); |