Make WordPress Core

Ticket #28679: wp_list_table_docs.28679.diff

File wp_list_table_docs.28679.diff, 8.1 KB (added by mikejolley, 10 years ago)

Docs for WP_List_Table args, and @see for child classes

  • wp-admin/includes/class-wp-comments-list-table.php

    diff --git wp-admin/includes/class-wp-comments-list-table.php wp-admin/includes/class-wp-comments-list-table.php
    index 0eedcd8..02a0388 100644
    class WP_Comments_List_Table extends WP_List_Table { 
    2121
    2222        public $pending_count = array();
    2323
     24        /**
     25         * Constructor.
     26         *
     27         * @since 3.1.0
     28         * @see WP_List_Table::__construct() For more information on the default arguments.
     29         * @param array $args An associative array with information about the current table
     30         */     
    2431        public function __construct( $args = array() ) {
    2532                global $post_id;
    2633
  • wp-admin/includes/class-wp-links-list-table.php

    diff --git wp-admin/includes/class-wp-links-list-table.php wp-admin/includes/class-wp-links-list-table.php
    index 50e3136..f1080bd 100644
     
    99 */
    1010class WP_Links_List_Table extends WP_List_Table {
    1111
     12        /**
     13         * Constructor.
     14         *
     15         * @since 3.1.0
     16         * @see WP_List_Table::__construct() For more information on the default arguments.
     17         * @param array $args An associative array with information about the current table
     18         */     
    1219        public function __construct( $args = array() ) {
    1320                parent::__construct( array(
    1421                        'plural' => 'bookmarks',
  • wp-admin/includes/class-wp-list-table.php

    diff --git wp-admin/includes/class-wp-list-table.php wp-admin/includes/class-wp-list-table.php
    index dcaeb23..928f187 100644
    class WP_List_Table { 
    6464        private $_pagination;
    6565
    6666        /**
    67          * Constructor. The child class should call this constructor from its own constructor
     67         * Constructor.
     68         *
     69         * The child class should call this constructor from its own constructor to override the
     70         * default $args. The default args are 'plural', 'singular', 'ajax' and 'screen'.
     71         *
     72         * The 'plural' option is a string that controls the plural labels for the objects being listed.
     73         * This affects things such as css class-names and nonces used in the list table. e.g. 'posts'.
     74         *
     75         * The 'singular' option is a string that controls the singular label for an object being
     76         * listed. e.g. 'post'.
     77         *
     78         * The 'ajax' boolean is used to tell the class if the list table supports ajax. This includes
     79         * loading and sorting data for example. If true, the class will call the _js_vars() method in
     80         * the footer to provide variables to any scripts handling ajax events.
     81         *
     82         * The 'screen' option can be used to pass in a string containing the hook name used to determine
     83         * the current screen. If left 'null', the current screen will be automatically set.
     84         *
     85         * @since 3.1.0
    6886         *
    6987         * @param array $args An associative array with information about the current table
    70          * @access protected
    71          */
     88         */     
    7289        public function __construct( $args = array() ) {
    7390                $args = wp_parse_args( $args, array(
    7491                        'plural' => '',
  • wp-admin/includes/class-wp-media-list-table.php

    diff --git wp-admin/includes/class-wp-media-list-table.php wp-admin/includes/class-wp-media-list-table.php
    index 2c9a960..c2f7e3a 100644
     
    99 */
    1010class WP_Media_List_Table extends WP_List_Table {
    1111
     12        /**
     13         * Constructor.
     14         *
     15         * @since 3.1.0
     16         * @see WP_List_Table::__construct() For more information on the default arguments.
     17         * @param array $args An associative array with information about the current table
     18         */     
    1219        public function __construct( $args = array() ) {
    1320                $this->detached = isset( $_REQUEST['detached'] ) || isset( $_REQUEST['find_detached'] );
    1421
  • wp-admin/includes/class-wp-ms-sites-list-table.php

    diff --git wp-admin/includes/class-wp-ms-sites-list-table.php wp-admin/includes/class-wp-ms-sites-list-table.php
    index 7e98b0f..28f284c 100644
     
    99 */
    1010class WP_MS_Sites_List_Table extends WP_List_Table {
    1111
     12        /**
     13         * Constructor.
     14         *
     15         * @since 3.1.0
     16         * @see WP_List_Table::__construct() For more information on the default arguments.
     17         * @param array $args An associative array with information about the current table
     18         */     
    1219        public function __construct( $args = array() ) {
    1320                parent::__construct( array(
    1421                        'plural' => 'sites',
  • wp-admin/includes/class-wp-ms-themes-list-table.php

    diff --git wp-admin/includes/class-wp-ms-themes-list-table.php wp-admin/includes/class-wp-ms-themes-list-table.php
    index 512e341..b8c5413 100644
    class WP_MS_Themes_List_Table extends WP_List_Table { 
    1212        public $site_id;
    1313        public $is_site_themes;
    1414
     15        /**
     16         * Constructor.
     17         *
     18         * @see WP_List_Table::__construct() For more information on the default arguments.
     19         * @param array $args An associative array with information about the current table
     20         */
    1521        public function __construct( $args = array() ) {
    1622                global $status, $page;
    1723
  • wp-admin/includes/class-wp-plugins-list-table.php

    diff --git wp-admin/includes/class-wp-plugins-list-table.php wp-admin/includes/class-wp-plugins-list-table.php
    index 2d5e497..c2f1599 100644
     
    99 */
    1010class WP_Plugins_List_Table extends WP_List_Table {
    1111
     12        /**
     13         * Constructor.
     14         *
     15         * @since 3.1.0
     16         * @see WP_List_Table::__construct() For more information on the default arguments.
     17         * @param array $args An associative array with information about the current table
     18         */     
    1219        public function __construct( $args = array() ) {
    1320                global $status, $page;
    1421
  • wp-admin/includes/class-wp-posts-list-table.php

    diff --git wp-admin/includes/class-wp-posts-list-table.php wp-admin/includes/class-wp-posts-list-table.php
    index 5173daf..13f2c9b 100644
    class WP_Posts_List_Table extends WP_List_Table { 
    4545         */
    4646        private $sticky_posts_count = 0;
    4747
     48        /**
     49         * Constructor.
     50         *
     51         * @since 3.1.0
     52         * @see WP_List_Table::__construct() For more information on the default arguments.
     53         * @param array $args An associative array with information about the current table
     54         */     
    4855        public function __construct( $args = array() ) {
    4956                global $post_type_object, $wpdb;
    5057
  • wp-admin/includes/class-wp-terms-list-table.php

    diff --git wp-admin/includes/class-wp-terms-list-table.php wp-admin/includes/class-wp-terms-list-table.php
    index 61ab9d6..2ebd3f1 100644
    class WP_Terms_List_Table extends WP_List_Table { 
    1111
    1212        public $callback_args;
    1313
     14        /**
     15         * Constructor.
     16         *
     17         * @since 3.1.0
     18         * @see WP_List_Table::__construct() For more information on the default arguments.
     19         * @param array $args An associative array with information about the current table
     20         */     
    1421        public function __construct( $args = array() ) {
    1522                global $post_type, $taxonomy, $action, $tax;
    1623
  • wp-admin/includes/class-wp-themes-list-table.php

    diff --git wp-admin/includes/class-wp-themes-list-table.php wp-admin/includes/class-wp-themes-list-table.php
    index 521d24b..2dce848 100644
    class WP_Themes_List_Table extends WP_List_Table { 
    1212        protected $search_terms = array();
    1313        public $features = array();
    1414
     15        /**
     16         * Constructor.
     17         *
     18         * @since 3.1.0
     19         * @see WP_List_Table::__construct() For more information on the default arguments.
     20         * @param array $args An associative array with information about the current table
     21         */     
    1522        public function __construct( $args = array() ) {
    1623                parent::__construct( array(
    1724                        'ajax' => true,
  • wp-admin/includes/class-wp-users-list-table.php

    diff --git wp-admin/includes/class-wp-users-list-table.php wp-admin/includes/class-wp-users-list-table.php
    index fafa660..3ccd4e7 100644
    class WP_Users_List_Table extends WP_List_Table { 
    3030
    3131        /**
    3232         * Constructor.
    33          *
     33         * 
    3434         * @since 3.1.0
    35          * @access public
    36          */
     35         * @see WP_List_Table::__construct() For more information on the default arguments.
     36         * @param array $args An associative array with information about the current table
     37         */     
    3738        public function __construct( $args = array() ) {
    3839                parent::__construct( array(
    3940                        'singular' => 'user',