[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-templates/bp-nouveau/includes/classes/ -> class-bp-buttons-group.php (summary)

BP Buttons Group class.

Version: 10.0.0
File Size: 193 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

BP_Buttons_Group:: (5 methods):
  __construct()
  sort()
  get()
  update()
  add()


Class: BP_Buttons_Group  - X-Ref

Builds a group of BP_Button

__construct( $args = array()   X-Ref
Constructor

since: 3.0.0
param: array $args Optional array having the following parameters {

sort( $buttons )   X-Ref
Sort the Buttons of the group according to their position attribute

since: 3.0.0
return: array the list of buttons sorted.
param: array the list of buttons to sort.

get( $sort = true )   X-Ref
Get the BuddyPress buttons for the group

since: 3.0.0
return: array An array of HTML links.
param: bool $sort whether to sort the buttons or not.

update( $args = array()   X-Ref
Update the group of buttons

since: 3.0.0
param: array $args Optional. See the __constructor for a description of this argument.

add( $args )   X-Ref
Adds a button.

since: 9.0.0
return: bool true on success, false on failure to add.
param: array $args Required. See the __constructor for a description of this argument.



Generated: Fri Dec 6 01:00:58 2024 Cross-referenced by PHPXref 0.7.1