Make WordPress Core


Ignore:
Timestamp:
08/10/2014 02:17:14 AM (11 years ago)
Author:
DrewAPicture
Message:

Document default arguments for the WP_List_Table class. Also add referenced docblocks to extending class constructors.

Props mikejolley for the initial patch.
Fixes #28679. See #28298.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-list-table.php

    r29454 r29459  
    33 * Base class for displaying a list of items in an ajaxified HTML table.
    44 *
     5 * @since 3.1.0
     6 * @access private
     7 *
    58 * @package WordPress
    69 * @subpackage List_Table
    7  * @since 3.1.0
    8  * @access private
    910 */
    1011class WP_List_Table {
     
    6566
    6667    /**
    67      * Constructor. The child class should call this constructor from its own constructor
    68      *
    69      * @param array $args An associative array with information about the current table
    70      * @access protected
    71      */
     68     * Constructor.
     69     *
     70     * The child class should call this constructor from its own constructor to override
     71     * the default $args.
     72     *
     73     * @since 3.1.0
     74     *
     75     * @param array|string $args {
     76     *     Array or string of arguments.
     77     *
     78     *     @type string $plural   Plural value used for labels and the objects being listed.
     79     *                            This affects things such as CSS class-names and nonces used
     80     *                            in the list table, e.g. 'posts'. Default empty.
     81     *     @type string $singular Singular label for an object being listed, e.g. 'post'.
     82     *                            Default empty
     83     *     @type bool   $ajax     Whether the list table supports AJAX. This includes loading
     84     *                            and sorting data, for example. If true, the class will call
     85     *                            the {@see _js_vars()} method in the footer to provide variables
     86     *                            to any scripts handling AJAX events. Default false.
     87     *     @type string $screen   String containing the hook name used to determine the current
     88     *                            screen. If left null, the current screen will be automatically set.
     89     *                            Default null.
     90     * }
     91     */
    7292    public function __construct( $args = array() ) {
    7393        $args = wp_parse_args( $args, array(
Note: See TracChangeset for help on using the changeset viewer.