[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/compat/php56/ -> class-bp-compat-walker-nav-menu.php (source)

   1  <?php
   2  /**
   3   * Walker_Nav_Menu Compat for PHP 5.6 and UP.
   4   *
   5   * @package BuddyPress
   6   * @subpackage Core
   7   * @since 5.1.0
   8   */
   9  
  10   // Exit if accessed directly.
  11  defined( 'ABSPATH' ) || exit;
  12  
  13  /**
  14   * Create HTML list of BP nav items.
  15   *
  16   * @since 1.7.0
  17   */
  18  class BP_Walker_Nav_Menu extends BP_Walker_Nav_Menu_Compat {
  19      /**
  20       * Compat method to extend Walker_Nav_Menu::walk() in PHP > 5.6.
  21       *
  22       * @since 5.1.0
  23       *
  24       * @param array $elements  See {@link Walker::walk()}.
  25       * @param int   $max_depth See {@link Walker::walk()}.
  26       * @param mixed ...$args   See {@link Walker::walk()}.
  27       */
  28  	public function walk( $elements, $max_depth, ...$args ) { // phpcs:ignore PHPCompatibility.LanguageConstructs.NewLanguageConstructs.t_ellipsisFound
  29          return $this->do_walk( $elements, $max_depth, $args );
  30      }
  31  }


Generated: Thu Feb 27 01:01:32 2020 Cross-referenced by PHPXref 0.7.1