Menu_Action_Links
in package
Provide buttons for menu post actions.
Tags
Table of Contents
Constants
- CONTAINER_DEFAULTS = array('aria_label' => 'actions menu', 'classes' => array('pnet-print-menu-links-list'))
- Print menu buttons list container attributes.
Properties
- $container_atts : array<string|int, mixed>
- The attributes of the list container.
- $instances : array<string|int, object>
- The array of instances of this class and sub-classes.
- $item_atts : array<string|int, mixed>
- Print menu buttons list item attributes.
- $link_buttons : Link_Buttons
- The instance of the Link_Buttons class.
- $pid : int
- The post id of the menu to print.
- $print_page_url : string
- The fully qualified url of the print menu page.
Methods
- get_instance() : object
- Creates and/or returns the instance of this class.
- render() : void
- Render the list of links.
- __construct() : void
- Initialise the class and set its properties.
- set_menu_items() : void
- Set links list item definitions.
Constants
CONTAINER_DEFAULTS
Print menu buttons list container attributes.
protected
array<string|int, mixed>
CONTAINER_DEFAULTS
= array('aria_label' => 'actions menu', 'classes' => array('pnet-print-menu-links-list'))
Tags
Properties
$container_atts
The attributes of the list container.
protected
array<string|int, mixed>
$container_atts
= array()
Tags
$instances
The array of instances of this class and sub-classes.
protected
static array<string|int, object>
$instances
= array()
Tags
$item_atts
Print menu buttons list item attributes.
protected
array<string|int, mixed>
$item_atts
= array()
Menu button list item attributes.
Tags
$link_buttons
The instance of the Link_Buttons class.
protected
Link_Buttons
$link_buttons
Tags
$pid
The post id of the menu to print.
protected
int
$pid
Tags
$print_page_url
The fully qualified url of the print menu page.
protected
string
$print_page_url
Tags
Methods
get_instance()
Creates and/or returns the instance of this class.
public
static get_instance() : object
Tags
Return values
object —The instance of this class.
render()
Render the list of links.
public
render(int $pid[, array<string|int, mixed> $attributes = array() ]) : void
Parameters
- $pid : int
-
The post ID of the menu post to print.
- $attributes : array<string|int, mixed> = array()
-
The display attributes for the menu action links container.
Tags
__construct()
Initialise the class and set its properties.
protected
__construct() : void
Tags
set_menu_items()
Set links list item definitions.
protected
set_menu_items() : void