Completed
Branch dev (71673f)
by
unknown
05:17
created
form/_view/sectionset/AdminPageFramework_Form_View___SectionTitle.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
                                     . $this->getFrameworkNameVersion()
159 159
                                     . '  ('
160 160
                                         . $this->oMsg->get( 'debug_info_will_be_disabled' )
161
-                                      . ')'
161
+                                        . ')'
162 162
                                 . '</span>',
163 163
                             'attributes'    => array(
164 164
                                 'container' => array(
Please login to merge, or discard this patch.
factory/_common/_abstract/AdminPageFramework_Factory_Controller.php 1 patch
Indentation   +187 added lines, -187 removed lines patch added patch discarded remove patch
@@ -292,18 +292,18 @@  discard block
 block discarded – undo
292 292
     }     
293 293
         
294 294
     /**
295
-    * Adds form fields.
296
-    * 
297
-    * It inserts the given field definition arrays into the class property and later they are parsed when fields are registered. The field definition array requires specific keys. Refer to the parameter section of this method.
298
-    * 
299
-    * @since        2.0.0
300
-    * @since        3.5.3       Removed the parameter declarations as they are caught with the func_get_args().
301
-    * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
302
-    * @param        array       the field definition array.
303
-    * @param        array       (optional) another field array.
304
-    * @param        array       (optional) add more field arrays to the next parameters as many as necessary.
305
-    * @return       void
306
-    */ 
295
+     * Adds form fields.
296
+     * 
297
+     * It inserts the given field definition arrays into the class property and later they are parsed when fields are registered. The field definition array requires specific keys. Refer to the parameter section of this method.
298
+     * 
299
+     * @since        2.0.0
300
+     * @since        3.5.3       Removed the parameter declarations as they are caught with the func_get_args().
301
+     * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
302
+     * @param        array       the field definition array.
303
+     * @param        array       (optional) another field array.
304
+     * @param        array       (optional) add more field arrays to the next parameters as many as necessary.
305
+     * @return       void
306
+     */ 
307 307
     public function addSettingFields( /* $aField1, $aField2=null, $_and_more=null */ ) {
308 308
         foreach( func_get_args() as $_aFieldset ) { 
309 309
             $this->addSettingField( $_aFieldset ); 
@@ -334,159 +334,159 @@  discard block
 block discarded – undo
334 334
      * @return       void
335 335
      * @remark       The $oForm property should be created in each extended class.
336 336
      * @param        array|string       $asField        A field definition array or a string of the target section id.
337
-    * <h4>Built-in Field Types</h4>
338
-    * <ul>
339
-    *       <li>[text](./class-AdminPageFramework_FieldType_text.html) - a normal field to enter short text input.</li>
340
-    *       <li>[password](./class-AdminPageFramework_FieldType_text.html) - a masked text input field.</li>
341
-    *       <li>[textarea](./class-AdminPageFramework_FieldType_textarea.html) - a text input field with multiple lines. It supports rich text editors.</li>
342
-    *       <li>[radio](./class-AdminPageFramework_FieldType_radio.html) - a set of radio buttons that lets the user pick an option.</li>
343
-    *       <li>[checkbox](./class-AdminPageFramework_FieldType_checkbox.html) - a check box that lets the user enable/disable an item.</li>
344
-    *       <li>[select](./class-AdminPageFramework_FieldType_select.html) - a drop-down list that lest the user pick one or more item(s) from a list.</li>
345
-    *       <li>[hidden](./class-AdminPageFramework_FieldType_hidden.html) - a field with invisible input values.</li>
346
-    *       <li>[file](./class-AdminPageFramework_FieldType_file.html) - a file uploader that lets the user upload files.</li>
347
-    *       <li>[image](./class-AdminPageFramework_FieldType_image.html) - a text field with an image uploader that lets the user set the image URL.</li>
348
-    *       <li>[media](./class-AdminPageFramework_FieldType_media.html) - a text field with a media uploader that lets the user set the file URL.</li>
349
-    *       <li>[color](./class-AdminPageFramework_FieldType_color.html) - a text field with a color picker.</li>
350
-    *       <li>[submit](./class-AdminPageFramework_FieldType_submit.html) - a submit button that lets the user send the form.</li>
351
-    *       <li>[export](./class-AdminPageFramework_FieldType_export.html) - a custom submit field that lets the user export stored data.</li>
352
-    *       <li>[import](./class-AdminPageFramework_FieldType_import.html) - a custom combination field of file and submit fields that let the user import data.</li>
353
-    *       <li>[posttype](./class-AdminPageFramework_FieldType_posttype.html) - a check-list of post types enabled on the site.</li>
354
-    *       <li>[taxonomy](./class-AdminPageFramework_FieldType_taxonomy.html) - a set of check-lists of taxonomies enabled on the site in a tabbed box.</li>
355
-    *       <li>[size](./class-AdminPageFramework_FieldType_size.html) - a combination field of the text and the select fields that let the user set sizes with a selectable unit.</li>
356
-    *       <li>[section_title](./class-AdminPageFramework_FieldType_section_title.html) - [3.0.0+] a text field type that will be placed in the section title so that it lets the user set the section title. Note that only one field with this field type is allowed per a section.</li>
357
-    *       <li>[system](./class-AdminPageFramework_FieldType_system.html) - [3.3.0+] a custom text area field that displays the system information including the PHP settings, the framework version, MySQL version etc.</li>
358
-    *       <li>[inline_mixed](./class-AdminPageFramework_FieldType_inline_mixed.html) - [3.8.0+] a field that include inner fields with different field types. </li>
359
-    * </ul>
360
-    * <h4>Field Definition Arguments</h4>
361
-    * <ul>
362
-    *       <li>**field_id** - (required, string) the field ID. Avoid using non-alphabetic characters except underscore and numbers.</li>
363
-    *       <li>**type** - (optional, string) the type of the field. The supported types are listed below. When creating nested fields, this argument can be omitted.</li>
364
-    *       <li>**section_id** - (optional, string) the section ID that the field belongs to. If not set, the internal `_default` section ID will be assigned.</li>
365
-    *       <li>**title** - (optional, string) the title of the section.</li>
366
-    *       <li>**description** - (optional, string) the description of the field which is inserted into the after the input field tag.</li>
367
-    *       <li>**tip** - (optional, string) the tip for the field which is displayed when the mouse is hovered over the field title.</li>
368
-    *       <li>**capability** - (optional, string) the <a href="http://codex.wordpress.org/Roles_and_Capabilities">access level</a> of the section. If the page visitor does not have sufficient capability, the section will be invisible to them.</li>
369
-    *       <li>**error_message** - (optional, string) the error message to display above the input field.</li>
370
-    *       <li>**before_field** - (optional, string) the HTML string to insert before the input field output.</li>
371
-    *       <li>**after_field** - (optional, string) the HTML string to insert after the input field output.</li>
372
-    *       <li>**if** - (optional, boolean) if the passed value is false, the section will not be registered.</li>
373
-    *       <li>**order** - (optional, integer) the order number of the section. The higher the number is, the lower the position it gets.</li>
374
-    *       <li>**label** - (optional, string) the text label(s) associated with and displayed along with the input field. Some input types can ignore this key.</li>
375
-    *       <li>**default** - (optional, string|array) the default value(s) assigned to the input tag's value attribute.</li>
376
-    *       <li>**value** - (optional, string|array) the value(s) assigned to the input tag's `value` attribute to override the default and the stored value.</li>
377
-    *       <li>**delimiter** - (optional, string) the HTML string that delimits multiple elements. This is available if the <var>label</var> key is passed as array. It will be enclosed in inline-block elements so the passed HTML string should not contain block elements.</li>
378
-    *       <li>**before_input** - (optional, string) the HTML string inserted right before the input tag. It will be enclosed in the <code>label</code> tag so the passed HTML string should not contain block elements.</li>
379
-    *       <li>**after_input** - (optional, string) the HTML string inserted right after the input tag. It will be enclosed in the <code>label</code> tag so the passed HTML string should not contain block elements.</li>
380
-    *       <li>**label_min_width** - (optional, string) the inline style property of the `min-width` of the label tag for the field. If the unit is not specified, 'px' is applied. Default: `120`. e.g. `100%`</li> 
381
-    *       <li>**help** - (optional, string) the help description added to the contextual help tab.</li>
382
-    *       <li>**help_aside** - (optional, string) the additional help description for the side bar of the contextual help tab.</li>
383
-    *       <li>**repeatable** - [3.0.0+] (optional, array|boolean) whether the fields should be repeatable. If it yields true, the plus and the minus buttons appear next to each field that lets the user add/remove the fields. Optionally an setting array can be passed.
384
-    *           <h5>Repeatable Fields Setting Array</h5>
385
-    *           <ul>
386
-    *                 <li>**max** - the allowed maximum number of fields to be repeated.</li>
387
-    *                 <li>**min** - the allowed minimum number of fields to be repeated.</li>
388
-    *           </ul>
389
-    *       </li>
390
-    *       <li>**sortable** - [3.0.0+] (optional, boolean) whether the fields should be sortable. If it yields true, the fields will be enclosed in a draggable box.
391
-    *       <li>**attributes** - [3.0.0+] (optional, array) holds key-value pairs representing the attribute and its property. Note that some field types have specific keys in the first dimensions. e.g. `array( 'class' => 'my_custom_class_selector', 'style' => 'background-color:#777', 'size' => 20, )` Every field holds the following nested attribute definition arrays.
392
-    *           <ul>
393
-    *               <li>**fieldrow** - the `td` tag element containing the field output.</li>
394
-    *               <li>**fieldset** - the `fieldset` tag element containing the field output.</li>
395
-    *               <li>**fields** - the `div` tag element containing the sub-fields and the main field.</li>
396
-    *               <li>**field** - the `div` tag element containing each field.</li>
397
-    *           </ul>
398
-    *       </li>
399
-    *       <li>**show_title_column** - [3.0.0+] (optional, boolean) If true, the field title column will be omitted from the output.</li>
400
-    *       <li>**hidden** - [3.0.0+] (optional, boolean) If true, the entire field row output will be invisible with the inline style attribute of `style="display:none"`.</li>
401
-    *       <li>**save** - [3.6.0+] (optional, boolean) If `false`, the field value will not be saved. Default: `true`</li>
402
-    *       <li>**content** - (optional, string|array) [3.6.1+] a custom section output. [3.8.0+] Supports an array to be passed for nested and inline-mixed fields. If an array holding field definitions is set, those fields will be nested.
403
-    *           <h4>Example</h4>
404
-    * <pre><code>
405
-    *   $this->addSettingFields(
406
-    *       'my_section_id', // the target section ID - pass dimensional keys of the section
407
-    *       array(
408
-    *           'field_id'      => 'Y',
409
-    *           'title'         => __( 'Y', 'admin-page-framework-loader' ),
410
-    *           'description'   => __( 'By passing an array of field definition to the <code>content</code> argument, you can nest fields.', 'admin-page-framework-loader' )
411
-    *               . ' ' . __( 'Also the <code>type</code> argument can be omitted.', 'admin-page-framework-loader' ),
412
-    *           'content'       => array(
413
-    *               array(
414
-    *                   'field_id'      => 'i',
415
-    *                   'title'         => __( 'i', 'admin-page-framework-loader' ),                    
416
-    *                   'type'          => 'textarea',
417
-    *               ),
418
-    *               array(
419
-    *                   'field_id'      => 'ii',
420
-    *                   'title'         => __( 'ii', 'admin-page-framework-loader' ),                    
421
-    *                   'type'          => 'color',                    
422
-    *               ),
423
-    *               array(
424
-    *                   'field_id'      => 'iii',
425
-    *                   'title'         => __( 'iii', 'admin-page-framework-loader' ),
426
-    *                   'repeatable'    => true,
427
-    *                   'sortable'      => true,
428
-    *                   'content'       => array(
429
-    *                       array(
430
-    *                           'field_id'      => 'a',
431
-    *                           'title'         => __( 'a', 'admin-page-framework-loader' ),                    
432
-    *                           'type'          => 'image',
433
-    *                           'attributes'    => array(
434
-    *                               'preview' => array(
435
-    *                                   'style' => 'max-width: 200px;',
436
-    *                               ),
437
-    *                           ),                                
438
-    *                       ),
439
-    *                       array(
440
-    *                           'field_id'      => 'b',
441
-    *                           'title'         => __( 'b', 'admin-page-framework-loader' ),
442
-    *                           'content'       => array(
443
-    *                               array(
444
-    *                                   'field_id'      => 'first',
445
-    *                                   'title'         => __( '1st', 'admin-page-framework-loader' ),                    
446
-    *                                   'type'          => 'color',
447
-    *                                   'repeatable'    => true,
448
-    *                                   'sortable'      => true,
449
-    *                               ),                                
450
-    *                               array(
451
-    *                                   'field_id'      => 'second',
452
-    *                                   'title'         => __( '2nd', 'admin-page-framework-loader' ),                    
453
-    *                                   'type'          => 'size',
454
-    *                               ),
455
-    *                               array(
456
-    *                                   'field_id'      => 'third',
457
-    *                                   'title'         => __( '3rd', 'admin-page-framework-loader' ),                    
458
-    *                                   'type'          => 'select',
459
-    *                                   'label'         => array(
460
-    *                                       'x' => 'X',
461
-    *                                       'y' => 'Y',
462
-    *                                       'z' => 'Z',                                        
463
-    *                                   ),
464
-    *                               ),                                    
465
-    *                           ),
466
-    *                           // 'description'   => '',
467
-    *                       ),                            
468
-    *                       array(
469
-    *                           'field_id'      => 'c',
470
-    *                           'title'         => __( 'c', 'admin-page-framework-loader' ),                    
471
-    *                           'type'          => 'radio',                    
472
-    *                           'label'         => array(
473
-    *                               'a' => __( 'Apple', 'admin-page-framework-loader' ),
474
-    *                               'b' => __( 'Banana', 'admin-page-framework-loader' ),
475
-    *                               'c' => __( 'Cherry', 'admin-page-framework-loader' ),
476
-    *                           ),
477
-    *                           'default'       => 'b',
478
-    *                       ),                        
479
-    *                   )
480
-    *               ),                    
481
-    *           ),
482
-    *       )
483
-    *   );
484
-    * </code></pre>
485
-    *       </li>
486
-    *       <li>**placement** - [3.8.0+] (optional, string) Specifies where the field is rendered. Either `normal` `section_title` or `field_title` is accepted. `field_title` can only be used by nested fields defined in the `content` argument.  Default: `normal`</li>
487
-    *       <li>**show_debug_info** - (optional, boolean) [3.8.8+] Whether to show debug information such as field definition tool-tips. Default: `true`.</li>
488
-    * </ul>
489
-    */
337
+     * <h4>Built-in Field Types</h4>
338
+     * <ul>
339
+     *       <li>[text](./class-AdminPageFramework_FieldType_text.html) - a normal field to enter short text input.</li>
340
+     *       <li>[password](./class-AdminPageFramework_FieldType_text.html) - a masked text input field.</li>
341
+     *       <li>[textarea](./class-AdminPageFramework_FieldType_textarea.html) - a text input field with multiple lines. It supports rich text editors.</li>
342
+     *       <li>[radio](./class-AdminPageFramework_FieldType_radio.html) - a set of radio buttons that lets the user pick an option.</li>
343
+     *       <li>[checkbox](./class-AdminPageFramework_FieldType_checkbox.html) - a check box that lets the user enable/disable an item.</li>
344
+     *       <li>[select](./class-AdminPageFramework_FieldType_select.html) - a drop-down list that lest the user pick one or more item(s) from a list.</li>
345
+     *       <li>[hidden](./class-AdminPageFramework_FieldType_hidden.html) - a field with invisible input values.</li>
346
+     *       <li>[file](./class-AdminPageFramework_FieldType_file.html) - a file uploader that lets the user upload files.</li>
347
+     *       <li>[image](./class-AdminPageFramework_FieldType_image.html) - a text field with an image uploader that lets the user set the image URL.</li>
348
+     *       <li>[media](./class-AdminPageFramework_FieldType_media.html) - a text field with a media uploader that lets the user set the file URL.</li>
349
+     *       <li>[color](./class-AdminPageFramework_FieldType_color.html) - a text field with a color picker.</li>
350
+     *       <li>[submit](./class-AdminPageFramework_FieldType_submit.html) - a submit button that lets the user send the form.</li>
351
+     *       <li>[export](./class-AdminPageFramework_FieldType_export.html) - a custom submit field that lets the user export stored data.</li>
352
+     *       <li>[import](./class-AdminPageFramework_FieldType_import.html) - a custom combination field of file and submit fields that let the user import data.</li>
353
+     *       <li>[posttype](./class-AdminPageFramework_FieldType_posttype.html) - a check-list of post types enabled on the site.</li>
354
+     *       <li>[taxonomy](./class-AdminPageFramework_FieldType_taxonomy.html) - a set of check-lists of taxonomies enabled on the site in a tabbed box.</li>
355
+     *       <li>[size](./class-AdminPageFramework_FieldType_size.html) - a combination field of the text and the select fields that let the user set sizes with a selectable unit.</li>
356
+     *       <li>[section_title](./class-AdminPageFramework_FieldType_section_title.html) - [3.0.0+] a text field type that will be placed in the section title so that it lets the user set the section title. Note that only one field with this field type is allowed per a section.</li>
357
+     *       <li>[system](./class-AdminPageFramework_FieldType_system.html) - [3.3.0+] a custom text area field that displays the system information including the PHP settings, the framework version, MySQL version etc.</li>
358
+     *       <li>[inline_mixed](./class-AdminPageFramework_FieldType_inline_mixed.html) - [3.8.0+] a field that include inner fields with different field types. </li>
359
+     * </ul>
360
+     * <h4>Field Definition Arguments</h4>
361
+     * <ul>
362
+     *       <li>**field_id** - (required, string) the field ID. Avoid using non-alphabetic characters except underscore and numbers.</li>
363
+     *       <li>**type** - (optional, string) the type of the field. The supported types are listed below. When creating nested fields, this argument can be omitted.</li>
364
+     *       <li>**section_id** - (optional, string) the section ID that the field belongs to. If not set, the internal `_default` section ID will be assigned.</li>
365
+     *       <li>**title** - (optional, string) the title of the section.</li>
366
+     *       <li>**description** - (optional, string) the description of the field which is inserted into the after the input field tag.</li>
367
+     *       <li>**tip** - (optional, string) the tip for the field which is displayed when the mouse is hovered over the field title.</li>
368
+     *       <li>**capability** - (optional, string) the <a href="http://codex.wordpress.org/Roles_and_Capabilities">access level</a> of the section. If the page visitor does not have sufficient capability, the section will be invisible to them.</li>
369
+     *       <li>**error_message** - (optional, string) the error message to display above the input field.</li>
370
+     *       <li>**before_field** - (optional, string) the HTML string to insert before the input field output.</li>
371
+     *       <li>**after_field** - (optional, string) the HTML string to insert after the input field output.</li>
372
+     *       <li>**if** - (optional, boolean) if the passed value is false, the section will not be registered.</li>
373
+     *       <li>**order** - (optional, integer) the order number of the section. The higher the number is, the lower the position it gets.</li>
374
+     *       <li>**label** - (optional, string) the text label(s) associated with and displayed along with the input field. Some input types can ignore this key.</li>
375
+     *       <li>**default** - (optional, string|array) the default value(s) assigned to the input tag's value attribute.</li>
376
+     *       <li>**value** - (optional, string|array) the value(s) assigned to the input tag's `value` attribute to override the default and the stored value.</li>
377
+     *       <li>**delimiter** - (optional, string) the HTML string that delimits multiple elements. This is available if the <var>label</var> key is passed as array. It will be enclosed in inline-block elements so the passed HTML string should not contain block elements.</li>
378
+     *       <li>**before_input** - (optional, string) the HTML string inserted right before the input tag. It will be enclosed in the <code>label</code> tag so the passed HTML string should not contain block elements.</li>
379
+     *       <li>**after_input** - (optional, string) the HTML string inserted right after the input tag. It will be enclosed in the <code>label</code> tag so the passed HTML string should not contain block elements.</li>
380
+     *       <li>**label_min_width** - (optional, string) the inline style property of the `min-width` of the label tag for the field. If the unit is not specified, 'px' is applied. Default: `120`. e.g. `100%`</li> 
381
+     *       <li>**help** - (optional, string) the help description added to the contextual help tab.</li>
382
+     *       <li>**help_aside** - (optional, string) the additional help description for the side bar of the contextual help tab.</li>
383
+     *       <li>**repeatable** - [3.0.0+] (optional, array|boolean) whether the fields should be repeatable. If it yields true, the plus and the minus buttons appear next to each field that lets the user add/remove the fields. Optionally an setting array can be passed.
384
+     *           <h5>Repeatable Fields Setting Array</h5>
385
+     *           <ul>
386
+     *                 <li>**max** - the allowed maximum number of fields to be repeated.</li>
387
+     *                 <li>**min** - the allowed minimum number of fields to be repeated.</li>
388
+     *           </ul>
389
+     *       </li>
390
+     *       <li>**sortable** - [3.0.0+] (optional, boolean) whether the fields should be sortable. If it yields true, the fields will be enclosed in a draggable box.
391
+     *       <li>**attributes** - [3.0.0+] (optional, array) holds key-value pairs representing the attribute and its property. Note that some field types have specific keys in the first dimensions. e.g. `array( 'class' => 'my_custom_class_selector', 'style' => 'background-color:#777', 'size' => 20, )` Every field holds the following nested attribute definition arrays.
392
+     *           <ul>
393
+     *               <li>**fieldrow** - the `td` tag element containing the field output.</li>
394
+     *               <li>**fieldset** - the `fieldset` tag element containing the field output.</li>
395
+     *               <li>**fields** - the `div` tag element containing the sub-fields and the main field.</li>
396
+     *               <li>**field** - the `div` tag element containing each field.</li>
397
+     *           </ul>
398
+     *       </li>
399
+     *       <li>**show_title_column** - [3.0.0+] (optional, boolean) If true, the field title column will be omitted from the output.</li>
400
+     *       <li>**hidden** - [3.0.0+] (optional, boolean) If true, the entire field row output will be invisible with the inline style attribute of `style="display:none"`.</li>
401
+     *       <li>**save** - [3.6.0+] (optional, boolean) If `false`, the field value will not be saved. Default: `true`</li>
402
+     *       <li>**content** - (optional, string|array) [3.6.1+] a custom section output. [3.8.0+] Supports an array to be passed for nested and inline-mixed fields. If an array holding field definitions is set, those fields will be nested.
403
+     *           <h4>Example</h4>
404
+     * <pre><code>
405
+     *   $this->addSettingFields(
406
+     *       'my_section_id', // the target section ID - pass dimensional keys of the section
407
+     *       array(
408
+     *           'field_id'      => 'Y',
409
+     *           'title'         => __( 'Y', 'admin-page-framework-loader' ),
410
+     *           'description'   => __( 'By passing an array of field definition to the <code>content</code> argument, you can nest fields.', 'admin-page-framework-loader' )
411
+     *               . ' ' . __( 'Also the <code>type</code> argument can be omitted.', 'admin-page-framework-loader' ),
412
+     *           'content'       => array(
413
+     *               array(
414
+     *                   'field_id'      => 'i',
415
+     *                   'title'         => __( 'i', 'admin-page-framework-loader' ),                    
416
+     *                   'type'          => 'textarea',
417
+     *               ),
418
+     *               array(
419
+     *                   'field_id'      => 'ii',
420
+     *                   'title'         => __( 'ii', 'admin-page-framework-loader' ),                    
421
+     *                   'type'          => 'color',                    
422
+     *               ),
423
+     *               array(
424
+     *                   'field_id'      => 'iii',
425
+     *                   'title'         => __( 'iii', 'admin-page-framework-loader' ),
426
+     *                   'repeatable'    => true,
427
+     *                   'sortable'      => true,
428
+     *                   'content'       => array(
429
+     *                       array(
430
+     *                           'field_id'      => 'a',
431
+     *                           'title'         => __( 'a', 'admin-page-framework-loader' ),                    
432
+     *                           'type'          => 'image',
433
+     *                           'attributes'    => array(
434
+     *                               'preview' => array(
435
+     *                                   'style' => 'max-width: 200px;',
436
+     *                               ),
437
+     *                           ),                                
438
+     *                       ),
439
+     *                       array(
440
+     *                           'field_id'      => 'b',
441
+     *                           'title'         => __( 'b', 'admin-page-framework-loader' ),
442
+     *                           'content'       => array(
443
+     *                               array(
444
+     *                                   'field_id'      => 'first',
445
+     *                                   'title'         => __( '1st', 'admin-page-framework-loader' ),                    
446
+     *                                   'type'          => 'color',
447
+     *                                   'repeatable'    => true,
448
+     *                                   'sortable'      => true,
449
+     *                               ),                                
450
+     *                               array(
451
+     *                                   'field_id'      => 'second',
452
+     *                                   'title'         => __( '2nd', 'admin-page-framework-loader' ),                    
453
+     *                                   'type'          => 'size',
454
+     *                               ),
455
+     *                               array(
456
+     *                                   'field_id'      => 'third',
457
+     *                                   'title'         => __( '3rd', 'admin-page-framework-loader' ),                    
458
+     *                                   'type'          => 'select',
459
+     *                                   'label'         => array(
460
+     *                                       'x' => 'X',
461
+     *                                       'y' => 'Y',
462
+     *                                       'z' => 'Z',                                        
463
+     *                                   ),
464
+     *                               ),                                    
465
+     *                           ),
466
+     *                           // 'description'   => '',
467
+     *                       ),                            
468
+     *                       array(
469
+     *                           'field_id'      => 'c',
470
+     *                           'title'         => __( 'c', 'admin-page-framework-loader' ),                    
471
+     *                           'type'          => 'radio',                    
472
+     *                           'label'         => array(
473
+     *                               'a' => __( 'Apple', 'admin-page-framework-loader' ),
474
+     *                               'b' => __( 'Banana', 'admin-page-framework-loader' ),
475
+     *                               'c' => __( 'Cherry', 'admin-page-framework-loader' ),
476
+     *                           ),
477
+     *                           'default'       => 'b',
478
+     *                       ),                        
479
+     *                   )
480
+     *               ),                    
481
+     *           ),
482
+     *       )
483
+     *   );
484
+     * </code></pre>
485
+     *       </li>
486
+     *       <li>**placement** - [3.8.0+] (optional, string) Specifies where the field is rendered. Either `normal` `section_title` or `field_title` is accepted. `field_title` can only be used by nested fields defined in the `content` argument.  Default: `normal`</li>
487
+     *       <li>**show_debug_info** - (optional, boolean) [3.8.8+] Whether to show debug information such as field definition tool-tips. Default: `true`.</li>
488
+     * </ul>
489
+     */
490 490
     public function addSettingField( $asFieldset ) {
491 491
         if ( method_exists( $this->oForm, 'addField' ) ) {
492 492
             $this->oForm->addField( $asFieldset );     
@@ -550,28 +550,28 @@  discard block
 block discarded – undo
550 550
     }
551 551
     
552 552
     /**
553
-    * Sets the given message to be displayed in the next page load. 
554
-    * 
555
-    * This is used to inform users about the submitted input data, such as "Updated successfully." or "Problem occurred." etc. 
556
-    * and normally used in validation callback methods.
557
-    * 
558
-    * <h4>Example</h4>
559
-    * `
560
-    * if ( ! $bVerified ) {
561
-    *       $this->setFieldErrors( $aErrors );     
562
-    *       $this->setSettingNotice( 'There was an error in your input.' );
563
-    *       return $aOldPageOptions;
564
-    * }
565
-    * `
566
-    *
567
-    * @since        3.0.4     
568
-    * @access       public
569
-    * @param        string      $sMessage       the text message to be displayed.
570
-    * @param        string      $sType          (optional) the type of the message, either "error" or "updated"  is used.
571
-    * @param        array       $asAttributes   (optional) the tag attribute array applied to the message container HTML element. If a string is given, it is used as the ID attribute value.
572
-    * @param        boolean     $bOverride      (optional) If true, only one message will be shown in the next page load. false: do not override when there is a message of the same id. true: override the previous one.
573
-    * @return       void
574
-    */      
553
+     * Sets the given message to be displayed in the next page load. 
554
+     * 
555
+     * This is used to inform users about the submitted input data, such as "Updated successfully." or "Problem occurred." etc. 
556
+     * and normally used in validation callback methods.
557
+     * 
558
+     * <h4>Example</h4>
559
+     * `
560
+     * if ( ! $bVerified ) {
561
+     *       $this->setFieldErrors( $aErrors );     
562
+     *       $this->setSettingNotice( 'There was an error in your input.' );
563
+     *       return $aOldPageOptions;
564
+     * }
565
+     * `
566
+     *
567
+     * @since        3.0.4     
568
+     * @access       public
569
+     * @param        string      $sMessage       the text message to be displayed.
570
+     * @param        string      $sType          (optional) the type of the message, either "error" or "updated"  is used.
571
+     * @param        array       $asAttributes   (optional) the tag attribute array applied to the message container HTML element. If a string is given, it is used as the ID attribute value.
572
+     * @param        boolean     $bOverride      (optional) If true, only one message will be shown in the next page load. false: do not override when there is a message of the same id. true: override the previous one.
573
+     * @return       void
574
+     */      
575 575
     public function setSettingNotice( $sMessage, $sType='error', $asAttributes=array(), $bOverride=true ) {
576 576
         $this->oForm->setSubmitNotice(
577 577
             $sMessage,
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Controller_Menu.php 1 patch
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -250,20 +250,20 @@
 block discarded – undo
250 250
     }
251 251
 
252 252
     /**
253
-    * Adds the given link into the menu on the left sidebar of the administration panel.
254
-    * 
255
-    * @since        2.0.0
256
-    * @since        3.0.0       Changed the scope to public from protected.
257
-    * @since        3.5.0       Changed the scope to public as it was still protected.
258
-    * @param        string      the menu title.
259
-    * @param        string      the URL linked to the menu.
260
-    * @param        string      (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>.
261
-    * @param        string      (optional) the order number. The larger it is, the lower the position it gets.
262
-    * @param        string      (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page.
263
-    * @access       public
264
-    * @return       void
265
-    * @internal
266
-    */    
253
+     * Adds the given link into the menu on the left sidebar of the administration panel.
254
+     * 
255
+     * @since        2.0.0
256
+     * @since        3.0.0       Changed the scope to public from protected.
257
+     * @since        3.5.0       Changed the scope to public as it was still protected.
258
+     * @param        string      the menu title.
259
+     * @param        string      the URL linked to the menu.
260
+     * @param        string      (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>.
261
+     * @param        string      (optional) the order number. The larger it is, the lower the position it gets.
262
+     * @param        string      (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page.
263
+     * @access       public
264
+     * @return       void
265
+     * @internal
266
+     */    
267 267
     public function addSubMenuLink( array $aSubMenuLink ) {
268 268
         
269 269
         // If required keys are not set, return.
Please login to merge, or discard this patch.