◆ __construct()
__construct |
( |
|
$config = array() | ) |
|
◆ appendLink()
appendLink |
( |
|
$name, |
|
|
|
$link = null , |
|
|
|
$active = false , |
|
|
|
$icon = null , |
|
|
|
$parent = '' |
|
) |
| |
Append a link to the link bar
- Paramètres
-
string | $name | The text of the link |
string | null | $link | The link to render; set to null to render a separator |
boolean | $active | True if it's an active link |
string | null | $icon | Icon class (used by some renderers, like the Bootstrap renderer) |
string | null | $parent | The parent element (referenced by name)) This will create a dropdown list |
- Renvoie
- void
Références $active, $icon, $link, $name, et null.
◆ clearLinks()
Removes all links from the link bar
- Renvoie
- void
◆ getAnInstance()
static& getAnInstance |
( |
|
$option = null , |
|
|
|
$config = array() |
|
) |
| |
|
static |
Gets an instance of a component's toolbar
- Paramètres
-
string | $option | The name of the component |
array | $config | The configuration array for the component |
- Renvoie
- FOFToolbar The toolbar instance for the component
Références $className, $config, $hash, $input, $option, $path, elseif, et FOFPlatform\getInstance().
Référencé par FOFViewHtml\preRender(), FOFRenderStrapper\renderButtons(), FOFRenderJoomla\renderButtons(), FOFRenderAbstract\renderCategoryLinkbar(), FOFRenderJoomla\renderLinkbar(), FOFRenderStrapper\renderLinkbar_classic(), et FOFRenderStrapper\renderLinkbar_joomla().
◆ getLinks()
Get the link bar's link definitions
- Renvoie
- array
◆ getMyViews()
◆ getRenderFrontendButtons()
getRenderFrontendButtons |
( |
| ) |
|
Return the front-end toolbar rendering flag
- Renvoie
- boolean
◆ getRenderFrontendSubmenu()
getRenderFrontendSubmenu |
( |
| ) |
|
Return the front-end submenu rendering flag
- Renvoie
- boolean
◆ onAdd()
◆ onBrowse()
◆ onCpanelsBrowse()
◆ onEdit()
◆ onRead()
◆ prefixLink()
prefixLink |
( |
|
$name, |
|
|
|
$link = null , |
|
|
|
$active = false , |
|
|
|
$icon = null |
|
) |
| |
Prefixes (some people erroneously call this "prepend" – there is no such word) a link to the link bar
- Paramètres
-
string | $name | The text of the link |
string | null | $link | The link to render; set to null to render a separator |
boolean | $active | True if it's an active link |
string | null | $icon | Icon class (used by some renderers, like the Bootstrap renderer) |
- Renvoie
- void
Références $active, $icon, $link, et $name.
◆ renderFromConfig()
renderFromConfig |
( |
array |
$toolbar | ) |
|
|
private |
◆ renderSubmenu()
◆ renderToolbar()
◆ renderToolbarElement()
renderToolbarElement |
( |
|
$type, |
|
|
|
$value = null , |
|
|
array |
$attributes = array() |
|
) |
| |
|
private |
Render a toolbar element.
- Paramètres
-
string | $type | The element type. |
mixed | $value | The element value. |
array | $attributes | The element attributes. @return void
|
- Exceptions
-
Références $alt, $attributes, $check, $component, $height, $href, $icon, $path, $task, $type, $url, $value, $width, null, title, et FOFStringUtils\toBool().
◆ $config
◆ $input
◆ $linkbar
◆ $perms
◆ $renderFrontendButtons
$renderFrontendButtons = false |
|
protected |
◆ $renderFrontendSubmenu
$renderFrontendSubmenu = false |
|
protected |
La documentation de cette classe a été générée à partir du fichier suivant :