|
| __construct (string $id, string $title) |
|
| addItem (string $title, string $url, $img, $active, bool $show=true, ?string $id=null, ?string $class=null, bool $pinned=false) |
|
| prependItem (string $title, string $url, $img, $active, bool $show=true, ?string $id=null, ?string $class=null, bool $pinned=false) |
|
| draw () |
|
|
| itemDef (string $title, string $url, $img, $active, ?string $id=null, ?string $class=null) |
|
◆ __construct()
__construct |
( |
string |
$id, |
|
|
string |
$title |
|
) |
| |
Constructs a new instance.
- Parameters
-
string | $id | The identifier |
string | $title | The title |
References $title.
◆ addItem()
addItem |
( |
string |
$title, |
|
|
string |
$url, |
|
|
|
$img, |
|
|
|
$active, |
|
|
bool |
$show = true , |
|
|
?string |
$id = null , |
|
|
?string |
$class = null , |
|
|
bool |
$pinned = false |
|
) |
| |
Adds an item.
- Parameters
-
string | $title | The title |
string | $url | The url |
mixed | $img | The image(s) |
mixed | $active | The active flag |
bool | $show | The show flag |
null | string | $id | The identifier |
null | string | $class | The class |
bool | $pinned | The pinned flag |
References $pinned, $title, and itemDef().
◆ prependItem()
prependItem |
( |
string |
$title, |
|
|
string |
$url, |
|
|
|
$img, |
|
|
|
$active, |
|
|
bool |
$show = true , |
|
|
?string |
$id = null , |
|
|
?string |
$class = null , |
|
|
bool |
$pinned = false |
|
) |
| |
Prepends an item.
- Parameters
-
string | $title | The title |
string | $url | The url |
mixed | $img | The image(s) |
mixed | $active | The active flag |
bool | $show | The show flag |
null | string | $id | The identifier |
null | string | $class | The class |
bool | $pinned | The pinned flag |
References $pinned, $title, and itemDef().
◆ draw()
◆ itemDef()
itemDef |
( |
string |
$title, |
|
|
string |
$url, |
|
|
|
$img, |
|
|
|
$active, |
|
|
?string |
$id = null , |
|
|
?string |
$class = null |
|
) |
| |
|
protected |
Get a menu item HTML code
- Parameters
-
string | $title | The title |
string | $url | The url |
mixed | $img | The image(s) |
mixed | $active | The active flag |
null | string | $id | The identifier |
null | string | $class | The class |
- Returns
- string
References $title, and dcAdminHelper\adminIcon().
Referenced by addItem(), and prependItem().
◆ $pinned
◆ $items
◆ $title
The documentation for this class was generated from the following file: