API Documentação da API
Inscrições abertas para nosso Webinar anual Adianti Framework 2024!
Clique aqui para saber mais
Pacote Dominando o Adianti 7
Curso + Livro + Apps exemplo
Curso completo em Video Aulas (114 aulas).
Livro completo em PDF (463 páginas).
Códigos-fontes de Apps de exemplo.
API
API do Framework
Documentation

Documentation

TMenu extends TElement
in package

Menu Widget

Tags
version
7.6
subpackage

menu

author

Pablo Dall'Oglio

copyright

Copyright (c) 2006 Adianti Solutions Ltd. (http://www.adianti.com.br)

license

https://adiantiframework.com.br/license

Table of Contents

Properties

$item_class  : mixed
$item_transformer  : mixed
$items  : mixed
$link_class  : mixed
$menu_class  : mixed
$menu_level  : mixed
$menu_transformer  : mixed

Methods

__construct()  : mixed
Class Constructor
addMenuItem()  : mixed
Add a MenuItem
getMenuItems()  : mixed
Return the menu items
parse()  : mixed
Parse a XMLElement reading menu entries
show()  : mixed
Shows the widget at the screen

Properties

$item_class

private mixed $item_class

$item_transformer

private mixed $item_transformer
private mixed $link_class

$menu_class

private mixed $menu_class

$menu_level

private mixed $menu_level

$menu_transformer

private mixed $menu_transformer

Methods

__construct()

Class Constructor

public __construct( $xml[, mixed $permission_callback = NULL ][, mixed $menu_level = 1 ][, mixed $menu_class = 'dropdown-menu' ][, mixed $item_class = '' ][, mixed $link_class = 'dropdown-toggle' ][, mixed $item_transformer = null ][, mixed $menu_transformer = null ]) : mixed
Parameters
$xml :

SimpleXMLElement parsed from XML Menu

$permission_callback : mixed = NULL
$menu_level : mixed = 1
$menu_class : mixed = 'dropdown-menu'
$item_class : mixed = ''
$link_class : mixed = 'dropdown-toggle'
$item_transformer : mixed = null
$menu_transformer : mixed = null

addMenuItem()

Add a MenuItem

public addMenuItem( $menuitem) : mixed
Parameters
$menuitem :

A TMenuItem Object

getMenuItems()

Return the menu items

public getMenuItems() : mixed

parse()

Parse a XMLElement reading menu entries

public parse( $xml[,  $permission_callback = NULL ]) : mixed
Parameters
$xml :

A SimpleXMLElement Object

$permission_callback : = NULL

check permission callback

show()

Shows the widget at the screen

public show() : mixed

        
On this page

Search results