Make WordPress Core

Ticket #36300: walker-docs.patch

File walker-docs.patch, 7.1 KB (added by ramiy, 8 years ago)
  • wp-includes/class-walker-category-dropdown.php

     
    1010/**
    1111 * Core class used to create an HTML dropdown list of Categories.
    1212 *
     13 * @package WordPress
     14 * @subpackage Template
    1315 * @since 2.1.0
    1416 *
    1517 * @see Walker
    1618 */
    1719class Walker_CategoryDropdown extends Walker {
     20
    1821        /**
     22         * What the class handles.
     23         *
    1924         * @see Walker::$tree_type
     25         *
    2026         * @since 2.1.0
     27         * @access private
    2128         * @var string
    2229         */
    2330        public $tree_type = 'category';
    2431
    2532        /**
     33         * Database fields to use.
     34         *
    2635         * @see Walker::$db_fields
     36         *
    2737         * @since 2.1.0
     38         * @access private
    2839         * @todo Decouple this
    2940         * @var array
    3041         */
     
    3445         * Start the element output.
    3546         *
    3647         * @see Walker::start_el()
     48         *
    3749         * @since 2.1.0
     50         * @access public
    3851         *
    3952         * @param string $output   Passed by reference. Used to append additional content.
    4053         * @param object $category Category data object.
  • wp-includes/class-walker-category.php

     
    1010/**
    1111 * Core class used to create an HTML list of categories.
    1212 *
     13 * @package WordPress
     14 * @subpackage Template
    1315 * @since 2.1.0
    1416 *
    1517 * @see Walker
    1618 */
    1719class Walker_Category extends Walker {
     20
    1821        /**
    1922         * What the class handles.
    2023         *
    2124         * @see Walker::$tree_type
     25         *
    2226         * @since 2.1.0
     27         * @access private
    2328         * @var string
    2429         */
    2530        public $tree_type = 'category';
     
    2833         * Database fields to use.
    2934         *
    3035         * @see Walker::$db_fields
     36         *
    3137         * @since 2.1.0
     38         * @access private
    3239         * @todo Decouple this
    3340         * @var array
    3441         */
     
    4047         * @see Walker::start_lvl()
    4148         *
    4249         * @since 2.1.0
     50         * @access public
    4351         *
    4452         * @param string $output Passed by reference. Used to append additional content.
    4553         * @param int    $depth  Depth of category. Used for tab indentation.
     
    6068         * @see Walker::end_lvl()
    6169         *
    6270         * @since 2.1.0
     71         * @access public
    6372         *
    6473         * @param string $output Passed by reference. Used to append additional content.
    6574         * @param int    $depth  Depth of category. Used for tab indentation.
     
    8089         * @see Walker::start_el()
    8190         *
    8291         * @since 2.1.0
     92         * @access public
    8393         *
    8494         * @param string $output   Passed by reference. Used to append additional content.
    8595         * @param object $category Category data object.
     
    209219         * @see Walker::end_el()
    210220         *
    211221         * @since 2.1.0
     222         * @access public
    212223         *
    213224         * @param string $output Passed by reference. Used to append additional content.
    214225         * @param object $page   Not used.
  • wp-includes/class-walker-comment.php

     
    1010/**
    1111 * HTML comment list class.
    1212 *
     13 * @package WordPress
     14 * @subpackage Comments
     15 * @since 2.7.0
     16 *
    1317 * @uses Walker
    14  * @since 2.7.0
    1518 */
    1619class Walker_Comment extends Walker {
     20
    1721        /**
    1822         * What the class handles.
    1923         *
     
    2024         * @see Walker::$tree_type
    2125         *
    2226         * @since 2.7.0
     27         * @access private
    2328         * @var string
    2429         */
    2530        public $tree_type = 'comment';
    2631
    2732        /**
    28          * DB fields to use.
     33         * Database fields to use.
    2934         *
    3035         * @see Walker::$db_fields
    3136         *
    3237         * @since 2.7.0
     38         * @access private
     39         * @todo Decouple this
    3340         * @var array
    3441         */
    3542        public $db_fields = array ('parent' => 'comment_parent', 'id' => 'comment_ID');
     
    4047         * @see Walker::start_lvl()
    4148         *
    4249         * @since 2.7.0
     50         * @access public
    4351         *
    4452         * @global int $comment_depth
    4553         *
     
    6977         * @see Walker::end_lvl()
    7078         *
    7179         * @since 2.7.0
     80         * @access public
    7281         *
    7382         * @global int $comment_depth
    7483         *
     
    115124         * @see wp_list_comments()
    116125         *
    117126         * @since 2.7.0
     127         * @access public
    118128         *
    119129         * @param object $element           Data object.
    120130         * @param array  $children_elements List of elements to continue traversing.
     
    150160         * Start the element output.
    151161         *
    152162         * @since 2.7.0
     163         * @access public
    153164         *
    154165         * @see Walker::start_el()
    155166         * @see wp_list_comments()
     
    194205         * Ends the element output, if needed.
    195206         *
    196207         * @since 2.7.0
     208         * @access public
    197209         *
    198210         * @see Walker::end_el()
    199211         * @see wp_list_comments()
  • wp-includes/class-walker-page-dropdown.php

     
    1010/**
    1111 * Core class used to create an HTML drop-down list of pages.
    1212 *
     13 * @package WordPress
     14 * @subpackage Post
    1315 * @since 2.1.0
    1416 *
    1517 * @see Walker
    1618 */
    1719class Walker_PageDropdown extends Walker {
     20
    1821        /**
    19          * Walker tree type.
     22         * What the class handles.
    2023         *
     24         * @see Walker::$tree_type
     25         *
    2126         * @since 2.1.0
    22          * @see Walker::$tree_type
     27         * @access private
    2328         * @var string
    2429         */
    2530        public $tree_type = 'page';
    2631
    2732        /**
    28          * Database fields.
     33         * Database fields to use.
    2934         *
     35         * @see Walker::$db_fields
     36         *
    3037         * @since 2.1.0
    31          * @see Walker::$db_fields
     38         * @access private
    3239         * @todo Decouple this
    3340         * @var array
    3441         */
     
    3845         * Starts the element output.
    3946         *
    4047         * @since 2.1.0
     48         * @access public
    4149         *
    4250         * @see Walker::start_el()
    4351         *
  • wp-includes/class-walker-page.php

     
    1010/**
    1111 * Core walker class used to create an HTML list of pages.
    1212 *
     13 * @package WordPress
     14 * @subpackage Template
    1315 * @since 2.1.0
    1416 *
    1517 * @see Walker
    1618 */
    1719class Walker_Page extends Walker {
     20
    1821        /**
    19          * Walker tree type.
     22         * What the class handles.
    2023         *
     24         * @see Walker::$tree_type
     25         *
    2126         * @since 2.1.0
    22          * @see Walker::$tree_type
     27         * @access private
    2328         * @var string
    2429         */
    2530        public $tree_type = 'page';
    2631
    2732        /**
    28          * Database fields.
     33         * Database fields to use.
    2934         *
     35         * @see Walker::$db_fields
     36         *
    3037         * @since 2.1.0
    31          * @see Walker::$db_fields
     38         * @access private
    3239         * @todo Decouple this.
    3340         * @var array
    3441         */
     
    3845         * Outputs the beginning of the current level in the tree before elements are output.
    3946         *
    4047         * @since 2.1.0
     48         * @access public
    4149         *
    4250         * @see Walker::start_lvl()
    4351         *
     
    5563         * Outputs the end of the current level in the tree after elements are output.
    5664         *
    5765         * @since 2.1.0
     66         * @access public
    5867         *
    5968         * @see Walker::end_lvl()
    6069         *
     
    7382         *
    7483         * @see Walker::start_el()
    7584         * @since 2.1.0
     85         * @access public
    7686         *
    7787         * @param string $output       Passed by reference. Used to append additional content.
    7888         * @param object $page         Page data object.
     
    157167         * Outputs the end of the current element in the tree.
    158168         *
    159169         * @since 2.1.0
     170         * @access public
    160171         *
    161172         * @see Walker::end_el()
    162173         *