dolibarr 21.0.0-beta
|
Class to manage UI documentation. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. | |
docHeader ($title='', $arrayofjs=[], $arrayofcss=[]) | |
Output header + body. | |
docFooter () | |
Output close body + html. | |
showSidebar () | |
Output sidebar. | |
showBreadcrumb () | |
Output breadcrumb. | |
showSummary ($showsubmenu=1, $showsubmenu_summary=1) | |
Output summary. | |
displaySummary ($menu, $level=0, $showsubmenu=1, $showsubmenu_summary=1) | |
Recursive function for Automatic Summary. | |
showCode ($lines=array()) | |
Output a View Code area. | |
Private Member Functions | |
setMenu () | |
Set Documentation Menu. | |
displayMenu ($menu, $level=0) | |
Recursive function to set Menu. | |
Class to manage UI documentation.
Definition at line 27 of file documentation.class.php.
Documentation::__construct | ( | DoliDB | $db | ) |
|
private |
Recursive function to set Menu.
array | $menu | $this->menu or submenus |
int | $level | level of menu |
Definition at line 258 of file documentation.class.php.
References displayMenu().
Referenced by displayMenu(), and showSidebar().
Documentation::displaySummary | ( | $menu, | |
$level = 0, | |||
$showsubmenu = 1, | |||
$showsubmenu_summary = 1 ) |
Recursive function for Automatic Summary.
array | $menu | $this->menu or submenus |
int | $level | level of menu |
int | $showsubmenu | Show Sub menus: 0 = No, 1 = Yes |
int | $showsubmenu_summary | Show summary of sub menus: 0 = No, 1 = Yes |
Definition at line 352 of file documentation.class.php.
References displaySummary().
Referenced by displaySummary(), and showSummary().
Documentation::docFooter | ( | ) |
Output close body + html.
Definition at line 206 of file documentation.class.php.
References dol_htmloutput_events().
Documentation::docHeader | ( | $title = '', | |
$arrayofjs = [], | |||
$arrayofcss = [] ) |
Output header + body.
string | $title | Title of page |
string[] | $arrayofjs | Array of complementary js files |
string[] | $arrayofcss | Array of complementary css files |
Definition at line 190 of file documentation.class.php.
References dol_escape_htmltag(), and top_htmlhead().
|
private |
Set Documentation Menu.
Definition at line 76 of file documentation.class.php.
References dol_buildpath().
Referenced by __construct().
Documentation::showBreadcrumb | ( | ) |
Documentation::showCode | ( | $lines = array() | ) |
Output a View Code area.
array | $lines | Lines of code to show |
Definition at line 389 of file documentation.class.php.
References dol_htmlentities().
Documentation::showSidebar | ( | ) |
Output sidebar.
Definition at line 229 of file documentation.class.php.
References displayMenu().
Documentation::showSummary | ( | $showsubmenu = 1, | |
$showsubmenu_summary = 1 ) |
Output summary.
int | $showsubmenu | Show Sub menus: 0 = No, 1 = Yes |
int | $showsubmenu_summary | Show summary of sub menus: 0 = No, 1 = Yes |
Definition at line 320 of file documentation.class.php.
References displaySummary().