FacturaScripts

MenuItem
in package

Structure for each of the items in the FacturaScripts menu.

Tags
author

Carlos García Gómez [email protected]

author

Jose Antonio Cuello Principal [email protected]

Table of Contents

$active  : bool
Indicates whether it is activated or not.
$icon  : string
Fontawesome font icon of the menu option.
$menu  : array<string|int, MenuItem>
List of menu options for the item.
$name  : string
Identifying name of the element.
$title  : string
Title of the menu option.
$url  : string
URL for the href of the menu option.
__construct()  : mixed
Build and fill the main values of the Item.

Properties

$active

Indicates whether it is activated or not.

public bool $active

$icon

Fontawesome font icon of the menu option.

public string $icon

$menu

List of menu options for the item.

public array<string|int, MenuItem> $menu

$name

Identifying name of the element.

public string $name

$title

Title of the menu option.

public string $title

$url

URL for the href of the menu option.

public string $url

Methods

__construct()

Build and fill the main values of the Item.

public __construct(string $name, string $title, string $url[, string $icon = 'fas fa-file' ]) : mixed
Parameters
$name : string
$title : string
$url : string
$icon : string = 'fas fa-file'
Return values
mixed

Search results