|
dolibarr 21.0.0-beta
|
Class to manage generation of HTML components Only common components for WebPortal must be here. More...
Public Member Functions | |
| __construct ($db) | |
| Constructor. | |
| init ($elementEn, $id=0, $permissiontoread=0, $permissiontoadd=0, $permissiontodelete=0, $permissionnote=0, $permissiondellink=0) | |
| Init. | |
| doActions () | |
| Do actions. | |
| elementCard ($context) | |
| Card for an element in the page context. | |
Protected Member Functions | |
| header ($context) | |
| Html for header. | |
| bodyView ($keyforbreak='') | |
| Html for body (view mode) | |
| bodyEdit () | |
| Html for body (edit mode) | |
| footer () | |
| Html for footer. | |
Class to manage generation of HTML components Only common components for WebPortal must be here.
Definition at line 35 of file html.formcardwebportal.class.php.
| FormCardWebPortal::__construct | ( | $db | ) |
Constructor.
Definition at line 132 of file html.formcardwebportal.class.php.
|
protected |
Html for body (edit mode)
Definition at line 637 of file html.formcardwebportal.class.php.
References dol_print_date(), dol_sort_array(), GETPOST(), GETPOSTINT(), price2num(), and verifCond().
Referenced by elementCard().
|
protected |
Html for body (view mode)
| string | $keyforbreak | [=''] Key for break left block |
Definition at line 536 of file html.formcardwebportal.class.php.
References dol_sort_array(), and verifCond().
Referenced by elementCard().
| FormCardWebPortal::doActions | ( | ) |
Do actions.
Definition at line 226 of file html.formcardwebportal.class.php.
References $context, dol_mktime(), getDolGlobalInt(), getDolGlobalString(), Context\getInstance(), GETPOST(), GETPOSTINT(), header(), and price2num().
| FormCardWebPortal::elementCard | ( | $context | ) |
Card for an element in the page context.
Definition at line 745 of file html.formcardwebportal.class.php.
References $context, bodyEdit(), bodyView(), dol_escape_htmltag(), and header().
|
protected |
|
protected |
Html for header.
Definition at line 434 of file html.formcardwebportal.class.php.
References dol_escape_htmltag(), and dol_htmlentities().
Referenced by doActions(), and elementCard().
| FormCardWebPortal::init | ( | $elementEn, | |
| $id = 0, | |||
| $permissiontoread = 0, | |||
| $permissiontoadd = 0, | |||
| $permissiontodelete = 0, | |||
| $permissionnote = 0, | |||
| $permissiondellink = 0 ) |
Init.
| string | $elementEn | Element (english) : "member" (for adherent), "partnership" |
| int | $id | [=0] ID element |
| int | $permissiontoread | [=0] Permission to read (0 : access forbidden by default) |
| int | $permissiontoadd | [=0] Permission to add (0 : access forbidden by default), used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php |
| int | $permissiontodelete | [=0] Permission to delete (0 : access forbidden by default) |
| int | $permissionnote | [=0] Permission to note (0 : access forbidden by default) |
| int | $permissiondellink | [=0] Permission to delete links (0 : access forbidden by default) |
Definition at line 150 of file html.formcardwebportal.class.php.
References accessforbidden(), dol_include_once(), getDolGlobalString(), GETPOST(), and ref.