Documentation
class Documentation (View source)
Class to manage UI documentation
Properties
| array | $view | Views | |
| array | $menu | Menu - Set in setMenu in order to use dol_buildpath and called in constructor |
|
| array | $summary | Summary - Set in setSummary and called in constructor |
|
| DoliDB | $db | ||
| string | $baseUrl |
Methods
void
void
docHeader(string $title = '', string[] $arrayofjs = [], string[] $arrayofcss = [], string $hidenavmenu = '')
Output header + body
void
docFooter()
Output close body + html
void
showSidebar()
Output sidebar
void
showBreadcrumb()
Output breadcrumb
void
showSummary(int $showsubmenu = 1, int $showsubmenu_summary = 1)
Output summary
void
displaySummary(array $menu, int $level = 0, int $showsubmenu = 1, int $showsubmenu_summary = 1)
Recursive function for Automatic Summary
void
showCode(array $lines = array(), string $option = 'html')
Output a View Code area
Details
void
__construct(DoliDB $db)
Constructor
void
docHeader(string $title = '', string[] $arrayofjs = [], string[] $arrayofcss = [], string $hidenavmenu = '')
Output header + body
void
docFooter()
Output close body + html
void
showSidebar()
Output sidebar
void
showBreadcrumb()
Output breadcrumb
void
showSummary(int $showsubmenu = 1, int $showsubmenu_summary = 1)
Output summary
void
displaySummary(array $menu, int $level = 0, int $showsubmenu = 1, int $showsubmenu_summary = 1)
Recursive function for Automatic Summary
void
showCode(array $lines = array(), string $option = 'html')
Output a View Code area