menu

Adianti Solutions

API

Adianti, Framework, PHP, MVC, Active record, Front controller, IDE, RAD, Web, multiplataforma, geração de código, desenvolvimento rápido, relatórios, formulários, listagens, datagrids, gráficos, banco de dados, padrões de projeto, design patterns API do Adianti Framework.
API Docs
code
Selecione a classe

Class TMenuParser

Description

Menu Parser

Located in /widget/menu/TMenuParser.php (line 20)


	
			
Method Summary
__construct ($xml_file)
appendModule ($label, $icon, [$atend = true])
appendPage ($module, $label, $action, $icon)
getPath ($controller)
moduleExists ($module)
removePage ($action)
Methods
Constructor __construct (line 29)

Parse a menu XML file

  • access: public
__construct ($xml_file)
  • $xml_file: file path
appendModule (line 129)

Append module

  • access: public
appendModule ($label, $icon, [$atend = true])
  • $label
  • $icon
  • $atend
appendPage (line 227)

append page

  • access: public
appendPage ($module, $label, $action, $icon)
  • $module
  • $label
  • $action
  • $icon
getIndexedPrograms (line 108)

Return an indexed array of programs

  • access: public
getIndexedPrograms ()
getModules (line 196)

Get Modules

  • access: public
getModules ()
getPath (line 121)

Return the controller path

  • access: public
getPath ($controller)
  • $controller
moduleExists (line 169)

Check if a module exists

  • access: public
moduleExists ($module)
  • $module
removePage (line 277)

Remove page from menu

  • access: public
removePage ($action)
  • $action