pfeifferNet

Menu_Action_Links
in package

Provide buttons for menu post actions.

Tags
since
5.7.0
since
6.0.0

Make this a singleton class.

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
since
5.7.0
see
Link_Buttons::CONTAINER_DEFAULTS

Properties

$container_atts

The attributes of the list container.

protected array<string|int, mixed> $container_atts = array()
Tags
since
5.5.0
see
Menu_Action_links::CONTAINER_DEFAULTS

$instances

The array of instances of this class and sub-classes.

protected static array<string|int, object> $instances = array()
Tags
since
5.11.0

$item_atts

Print menu buttons list item attributes.

protected array<string|int, mixed> $item_atts = array()

Menu button list item attributes.

Tags
since
5.7.0
see
Link_Buttons::ITEM_DEFAULTS

$print_page_url

The fully qualified url of the print menu page.

protected string $print_page_url
Tags
since
5.7.0

Methods

get_instance()

Creates and/or returns the instance of this class.

public static get_instance() : object
Tags
since
6.0.0
Return values
object

The instance of this class.

set_menu_items()

Set links list item definitions.

protected set_menu_items() : void
Tags
since
5.7.0

        
On this page

Search results